CI: use the generator script to embed docs
@@ -24,17 +24,8 @@ jobs:
override: true
- working-directory: gir
run: cargo build --release
- - run: "./gir/target/release/gir -c ./gsk4/Gir.toml -d ./gir-files --doc-target-path docs.md -m doc"
- - run: "./gir/target/release/gir -c ./gdk4/Gir.toml -d ./gir-files --doc-target-path docs.md -m doc"
- - run: "./gir/target/release/gir -c ./gtk4/Gir.toml -d ./gir-files --doc-target-path docs.md -m doc"
- - run: "./gir/target/release/gir -c ./gdk4-x11/Gir.toml -d ./gir-files --doc-target-path docs.md -m doc"
- - run: "./gir/target/release/gir -c ./gdk4-wayland/Gir.toml -d ./gir-files --doc-target-path docs.md -m doc"
- run: cargo install rustdoc-stripper
- - run: rustdoc-stripper -g -o ./gdk4/docs.md
- - run: rustdoc-stripper -g -o ./gsk4/docs.md
- - run: rustdoc-stripper -g -o ./gtk4/docs.md
- - run: rustdoc-stripper -g -o ./gdk4-x11/docs.md
- - run: rustdoc-stripper -g -o ./gdk4-wayland/docs.md
+ - run: python3 ./gir/generator.py --embed-docs --no-fmt --yes ../
- run: echo "DEST=$(if [ "$GITHUB_EVENT_NAME" == "release" ]; then echo 'stable'; else echo 'git'; fi)" >> ${GITHUB_ENV}
- uses: actions-rs/cargo@v1
env:
@@ -50,7 +41,7 @@ jobs:
--extern-html-root-url=x11=https://docs.rs/x11/latest/
with:
command: doc
- args: -p gdk4 -p gdk4-sys -p gdk4-wayland -p gdk4-wayland-sys -p gdk4-x11 -p gdk4-x11-sys -p gsk4 -p gsk4-sys -p gtk4 -p gtk4-sys -p gtk4-macros --features "embed-lgpl-docs,dox,v4_2" --no-deps
+ args: -p gdk4 -p gdk4-sys -p gdk4-wayland -p gdk4-wayland-sys -p gdk4-x11 -p gdk4-x11-sys -p gsk4 -p gsk4-sys -p gtk4 -p gtk4-sys -p gtk4-macros --features "dox" --no-deps
- name: deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
