Skip to content

Commit

Permalink
ci: begin integrating gir-rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Sep 2, 2024
1 parent 6e50963 commit a503f29
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
dnf5 config-manager addrepo --from-repofile='https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo'
dnf5 install -y libhelium-devel libbismuth-devel sass git rust cargo rustdoc rustfmt meson ninja vala 'pkgconfig(gnome-desktop-4)' 'pkgconfig(accountsservice)' 'pkgconfig(udisks2)' 'pkgconfig(gudev-1.0)' 'pkgconfig(libgtop-2.0)' 'pkgconfig(gexiv2)' 'pkgconfig(gweather4)' 'pkgconfig(libpulse)' 'pkgconfig(ibus-1.0)' 'pkgconfig(gl)' desktop-file-utils
- name: Install git-rustdoc
run: |
curl --proto '=https' --tlsv1.2 -sSf -o gir-rustdoc.py https://gitlab.gnome.org/World/Rust/gir-rustdoc/-/raw/main/gir-rustdoc.py
chmod +x gir-rustdoc.py
- uses: actions/checkout@v4
with:
submodules: "recursive"
Expand All @@ -50,7 +55,8 @@ jobs:
- name: Generate docs
run: cargo install rustdoc-stripper
- run: PATH="$HOME/.cargo/bin:$PATH" ./generator.py --embed-docs
- run: cargo doc --no-deps
- run: eval $(./gir-rustdoc.py pre-docs)
- run: cargo doc --all-features --no-deps
- run: mv target/doc/ docs

- name: Setup Pages
Expand Down

0 comments on commit a503f29

Please sign in to comment.