mirror of
https://github.com/Noratrieb/std-internal-docs.git
synced 2026-01-14 09:35:01 +01:00
big
This commit is contained in:
parent
839cf3de1a
commit
d4a3023535
3 changed files with 21 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
/doc
|
||||
/rust
|
||||
/www-root
|
||||
|
|
|
|||
14
build.sh
14
build.sh
|
|
@ -10,9 +10,11 @@ cd rust
|
|||
|
||||
./configure \
|
||||
--set llvm.download-ci-llvm=true \
|
||||
--set rust.download-rustc=true
|
||||
--set rust.llvm-tools=false \
|
||||
--set rust.llvm-bitcode-linker=false \
|
||||
--set build.optimized-compiler-builtins=false # necessary to make cross-doc work for all targets
|
||||
|
||||
targets=(x86_64-unknown-linux-gnu x86_64-pc-windows-gnu aarch64-apple-darwin)
|
||||
targets=(x86_64-unknown-linux-gnu x86_64-pc-windows-msvc aarch64-apple-darwin)
|
||||
|
||||
# bootstrap uses this var to perform CI detection :(
|
||||
unset CI
|
||||
|
|
@ -27,10 +29,10 @@ for target in "${targets[@]}"; do
|
|||
export RUSTDOCFLAGS="--document-private-items \
|
||||
--document-hidden-items \
|
||||
--html-before-content=$root/before.html \
|
||||
--extend-css=$root/style.css"
|
||||
--extend-css=$root/style.css \
|
||||
--cap-lints=warn"
|
||||
|
||||
./x doc library --target "$target"
|
||||
./x doc library --target "$target" --stage 1
|
||||
|
||||
mkdir "$root/www-root/$target"
|
||||
cp -r "./build/$target/doc" "$root/www-root/$target"
|
||||
cp -rT "./build/$target/doc/" "$root/www-root/$target"
|
||||
done
|
||||
|
|
|
|||
12
index.html
Normal file
12
index.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>std internal docs</title>
|
||||
<meta http-equiv="refresh" content="0; url=/x86_64-unknown-linux-gnu" >
|
||||
</head>
|
||||
<body>
|
||||
<div>redirecting to <a href="/x86_64-unknown-linux-gnu">/x86_64-unknown-linux-gnu</a></div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue