Build docs more smartly
This commit is contained in:
parent
15c8e6376d
commit
ebbf285f28
|
|
@ -50,6 +50,7 @@ ostree_default_features:
|
||||||
- cargo/
|
- cargo/
|
||||||
- target/
|
- target/
|
||||||
|
|
||||||
|
# canary until Debian Backports gets updated libostree
|
||||||
ostree_all_features:
|
ostree_all_features:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
|
@ -79,9 +80,19 @@ publish_ostree:
|
||||||
# docs
|
# docs
|
||||||
docs:
|
docs:
|
||||||
stage: build
|
stage: build
|
||||||
|
image: rustlang/rust:nightly
|
||||||
|
variables:
|
||||||
|
RUSTDOC_OPTS: >-
|
||||||
|
-Z unstable-options
|
||||||
|
--extern-html-root-url glib_sys=https://gtk-rs.org/docs
|
||||||
|
--extern-html-root-url gobject_sys=https://gtk-rs.org/docs
|
||||||
|
--extern-html-root-url gio_sys=https://gtk-rs.org/docs
|
||||||
|
--extern-html-root-url glib=https://gtk-rs.org/docs
|
||||||
|
--extern-html-root-url gio=https://gtk-rs.org/docs
|
||||||
script:
|
script:
|
||||||
- make merge-lgpl-docs
|
- make merge-lgpl-docs
|
||||||
- cargo doc --verbose --features dox
|
- cargo rustdoc --verbose --package ostree-sys --features dox -- ${RUSTDOC_OPTS}
|
||||||
|
- cargo rustdoc --verbose --package ostree --features dox -- ${RUSTDOC_OPTS}
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- cargo/
|
- cargo/
|
||||||
|
|
@ -92,6 +103,7 @@ docs:
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: publish
|
stage: publish
|
||||||
|
image: alpine
|
||||||
script:
|
script:
|
||||||
- cp -r target/doc public
|
- cp -r target/doc public
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue