diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 69c2cf2..ac4e982 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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" @@ -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