mirror of
https://github.com/Noratrieb/std-internal-docs.git
synced 2026-03-16 07:26:06 +01:00
Compare commits
No commits in common. "eedc32147720486f091aef65293ee37708fcf3b5" and "1478e4387f803e354a6a8d5bd36d98578d1e3172" have entirely different histories.
eedc321477
...
1478e4387f
2 changed files with 1 additions and 30 deletions
9
build.sh
9
build.sh
|
|
@ -9,11 +9,6 @@ cp index.html "$root/www-root"
|
||||||
# use a higher depth because bootstrap might be broken with depth 1?
|
# use a higher depth because bootstrap might be broken with depth 1?
|
||||||
if [ ! -d 'rust' ]; then
|
if [ ! -d 'rust' ]; then
|
||||||
git clone --depth 50 https://github.com/rust-lang/rust.git
|
git clone --depth 50 https://github.com/rust-lang/rust.git
|
||||||
pushd rust
|
|
||||||
git ls-files -z -- ':(glob)library/**/*.rs' \
|
|
||||||
| xargs -0 sed -i'' -E 's@^[[:space:]]*#!?\[doc\(cfg.*$@// & // commented out for std.noratrieb.dev@'
|
|
||||||
git apply ../disable-cfg-doc.patch
|
|
||||||
popd
|
|
||||||
fi
|
fi
|
||||||
cd rust
|
cd rust
|
||||||
|
|
||||||
|
|
@ -48,9 +43,7 @@ for target in "${targets[@]}"; do
|
||||||
--document-hidden-items \
|
--document-hidden-items \
|
||||||
--html-before-content=$root/before.html \
|
--html-before-content=$root/before.html \
|
||||||
--extend-css=$root/style.css \
|
--extend-css=$root/style.css \
|
||||||
--cap-lints=allow \
|
--cap-lints=allow"
|
||||||
--generate-link-to-definition \
|
|
||||||
--generate-macro-expansion"
|
|
||||||
|
|
||||||
./x doc library --target "$target" --stage 1
|
./x doc library --target "$target" --stage 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs
|
|
||||||
index 375f833831..942dba29e6 100644
|
|
||||||
--- a/src/librustdoc/core.rs
|
|
||||||
+++ b/src/librustdoc/core.rs
|
|
||||||
@@ -202,7 +202,7 @@ pub(crate) fn create_config(
|
|
||||||
diagnostic_width,
|
|
||||||
libs,
|
|
||||||
externs,
|
|
||||||
- mut cfgs,
|
|
||||||
+ cfgs,
|
|
||||||
check_cfgs,
|
|
||||||
codegen_options,
|
|
||||||
unstable_opts,
|
|
||||||
@@ -220,7 +220,7 @@ pub(crate) fn create_config(
|
|
||||||
render_options: &RenderOptions,
|
|
||||||
) -> rustc_interface::Config {
|
|
||||||
// Add the doc cfg into the doc build.
|
|
||||||
- cfgs.push("doc".to_string());
|
|
||||||
+ // cfgs.push("doc".to_string());
|
|
||||||
|
|
||||||
// By default, rustdoc ignores all lints.
|
|
||||||
// Specifically unblock lints relevant to documentation or the lint machinery itself.
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue