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:
- cargo outdated --root-deps-only --exit-code 1 -v
pages:
extends: .img-stable
docs:
extends: .img-nightly
stage: 'deploy'
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
cd $crate
cargo doc --features --features=dox,embed-lgpl-docs
cargo doc --features --features=dox,embed-lgpl-docs --no-deps
cd ..
done
- mv target/doc public/
when: 'manual'
- rm -rf docs/
- mv target/doc docs/
artifacts:
paths:
- 'public'
- 'docs'

View file

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

View file

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