mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-28 20:41:31 +00:00
Generate docs artifact for gir-doc
This commit is contained in:
parent
4ef15e5499
commit
56f6b9e727
3 changed files with 14 additions and 6 deletions
|
@ -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'
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue