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: docs:
stage: docs stage: docs
script: script:
- make merge-lgpl-docs
- cd libostree - cd libostree
- cargo doc --verbose --features "dox lgpl-docs" - cargo doc --verbose --features dox
artifacts: artifacts:
paths: paths:
- target/doc - target/doc

View File

@ -21,6 +21,15 @@ generate-libostree-sys: gir/libostree-sys
generate-libostree: gir/libostree 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 -- # -- gir file management --
update-gir-files: \ update-gir-files: \
remove-gir-files \ remove-gir-files \

View File

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