Add back API docs merge to Makefile

I guess we can't do it as part of the crate, so we do it separately.
This commit is contained in:
Felix Krull 2018-10-18 21:58:56 +02:00 committed by Colin Walters
parent 587c6d4778
commit 2b76bf8330
3 changed files with 12 additions and 1 deletions

View File

@ -42,8 +42,9 @@ libostree_nightly:
docs:
stage: docs
script:
- make merge-lgpl-docs
- cd libostree
- cargo doc --verbose --features "dox lgpl-docs"
- cargo doc --verbose --features dox
artifacts:
paths:
- target/doc

View File

@ -21,6 +21,15 @@ generate-libostree-sys: gir/libostree-sys
generate-libostree: gir/libostree
# -- LGPL docs generation --
tools/bin/rustdoc-stripper:
cargo install --root tools -- rustdoc-stripper
merge-lgpl-docs: tools/bin/gir tools/bin/rustdoc-stripper
tools/bin/gir -c conf/libostree.toml -m doc
tools/bin/rustdoc-stripper -g -o target/vendor.md
# -- gir file management --
update-gir-files: \
remove-gir-files \

View File

@ -3,6 +3,7 @@ work_mode = "normal"
library = "OSTree"
version = "1.0"
target_path = "../libostree"
doc_target_path = "../target/vendor.md"
deprecate_by_min_version = true
girs_dir = "../gir-files"