File tree Expand file tree Collapse file tree 4 files changed +473
-8
lines changed Expand file tree Collapse file tree 4 files changed +473
-8
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ platforms in which `libc` tests are run.
70
70
This project is licensed under either of
71
71
72
72
* [ Apache License, Version 2.0] ( https://www.apache.org/licenses/LICENSE-2.0 )
73
- ([ LICENSE-APACHE] ( LICENSE-APACHE ) )
73
+ ([ LICENSE-APACHE] ( https://github.com/rust-lang/libc/blob/master/ LICENSE-APACHE) )
74
74
75
75
* [ MIT License] ( https://opensource.org/licenses/MIT )
76
- ([ LICENSE-MIT] ( LICENSE-MIT ) )
76
+ ([ LICENSE-MIT] ( https://github.com/rust-lang/libc/blob/master/ LICENSE-MIT) )
77
77
78
78
at your option.
79
79
@@ -82,7 +82,7 @@ at your option.
82
82
We welcome all people who want to contribute. Please see the [ contributing
83
83
instructions] for more information.
84
84
85
- [ contributing instructions ] : CONTRIBUTING.md
85
+ [ contributing instructions ] : https://github.com/rust-lang/libc/blob/master/ CONTRIBUTING.md
86
86
87
87
Contributions in any form (issues, pull requests, etc.) to this project
88
88
must adhere to Rust's [ Code of Conduct] .
Original file line number Diff line number Diff line change @@ -72,9 +72,18 @@ steps:
72
72
where gcc
73
73
condition: eq( variables['Agent.OS'], 'Windows_NT' )
74
74
displayName: Query gcc path
75
+ # This often fails fetching. Let's try several times.
75
76
- bash : |
76
77
set -ex
77
78
cargo generate-lockfile
78
- cargo generate-lockfile --manifest-path libc-test/Cargo.toml
79
+ N=5
80
+ n=0
81
+ until [ $n -ge $N ]
82
+ do
83
+ if cargo generate-lockfile ; then
84
+ break
85
+ fi
86
+ n=$((n+1))
87
+ sleep 1
88
+ done
79
89
displayName: Generate lockfiles
80
-
Original file line number Diff line number Diff line change @@ -66,11 +66,16 @@ done < targets
66
66
cp $README $TARGET_DOC_DIR
67
67
line=$( grep -n ' <div class="platform_docs"></div>' $README | cut -d " :" -f 1)
68
68
69
- set +x
70
69
{ head -n " $(( line- 1 )) " $README ; cat $PLATFORM_SUPPORT ; tail -n " +$(( line+ 1 )) " $README ; } > $TARGET_DOC_DIR /$README
71
- set -x
72
70
73
- RUSTDOCFLAGS=" --enable-index-page --index-page=${TARGET_DOC_DIR} /${README} -Zunstable-options" cargo doc
71
+ cp $TARGET_DOC_DIR /$README $TARGET_DOC_DIR /index.md
72
+
73
+ RUSTDOCFLAGS=" --enable-index-page --index-page=${TARGET_DOC_DIR} /index.md -Zunstable-options" cargo doc
74
+
75
+ # Tweak style
76
+ cp ci/rust.css $TARGET_DOC_DIR
77
+ sed -ie " 8i <link rel=\" stylesheet\" type=\" text/css\" href=\" normalize.css\" >" $TARGET_DOC_DIR /index.html
78
+ sed -ie " 9i <link rel=\" stylesheet\" type=\" text/css\" href=\" rust.css\" >" $TARGET_DOC_DIR /index.html
74
79
75
80
# Copy the licenses
76
81
cp LICENSE-* $TARGET_DOC_DIR /
You can’t perform that action at this time.
0 commit comments