Generate docs artifact for gir-doc

This commit is contained in:
Sophie Herold 2021-05-25 16:37:04 +02:00
parent 4ef15e5499
commit 56f6b9e727
3 changed files with 14 additions and 6 deletions

View file

@ -337,18 +337,22 @@ outdated:
script: script:
- cargo outdated --root-deps-only --exit-code 1 -v - cargo outdated --root-deps-only --exit-code 1 -v
pages: docs:
extends: .img-stable extends: .img-nightly
stage: 'deploy' stage: 'deploy'
script: script:
- curl --proto '=https' --tlsv1.2 -sSf -o gir-docs.py
https://gitlab.gnome.org/World/Rust/gir-docs/-/raw/main/gir-docs.py
- chmod +x gir-docs.py
- | - |
eval $(./gir-docs.py pre-docs)
for crate in gstreamer*; do for crate in gstreamer*; do
cd $crate cd $crate
cargo doc --features --features=dox,embed-lgpl-docs cargo doc --features --features=dox,embed-lgpl-docs --no-deps
cd .. cd ..
done done
- mv target/doc public/ - rm -rf docs/
when: 'manual' - mv target/doc docs/
artifacts: artifacts:
paths: paths:
- 'public' - 'docs'

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate array_init; extern crate array_init;
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;

View file

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate libc; extern crate libc;