Skip to content

Commit 62ccff6

Browse files
authored
Merge pull request #1816 from JohnTitor/fix-docs
2 parents 73e8838 + c4c4526 commit 62ccff6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Diff for: README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
[![Azure Status]][Azure] [![Cirrus CI Status]][Cirrus CI] [![Latest Version]][crates.io] [![Documentation]][docs.rs] ![License]
1+
# libc - Raw FFI bindings to platforms' system libraries
22

3-
libc - Raw FFI bindings to platforms' system libraries
4-
====
3+
[![Azure Status]][Azure] [![Cirrus CI Status]][Cirrus CI] [![Latest Version]][crates.io] [![Documentation]][docs.rs] ![License]
54

65
`libc` provides all of the definitions necessary to easily interoperate with C
76
code (or "C-like" code) on each of the platforms that Rust supports. This

Diff for: ci/dox.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ while read -r target; do
5252

5353
# If cargo doc fails, then try xargo:
5454
if ! cargo doc --target "${target}" \
55-
--no-default-features --features extra_traits ; then
55+
--no-default-features --features extra_traits ; then
5656
cargo xdoc --target "${target}" \
57-
--no-default-features --features extra_traits
57+
--no-default-features --features extra_traits
5858
fi
5959

6060
cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}"
@@ -70,5 +70,7 @@ set +x
7070
{ head -n "$((line-1))" $README; cat $PLATFORM_SUPPORT; tail -n "+$((line+1))" $README; } > $TARGET_DOC_DIR/$README
7171
set -x
7272

73+
RUSTDOCFLAGS="--enable-index-page --index-page=${TARGET_DOC_DIR}/${README} -Zunstable-options" cargo doc
74+
7375
# Copy the licenses
7476
cp LICENSE-* $TARGET_DOC_DIR/

0 commit comments

Comments
 (0)