Skip to content

Commit

Permalink
ci: Install doc dependencies via pip
Browse files Browse the repository at this point in the history
Ubuntu provides an older furo version with an incompatible sphinx
version that results in https://flatpak.github.io/xdg-desktop-portal/
loosing dark theme. And generally managing via pip gives more control
over the versions needed as Ubuntu does not preserve older packages
  • Loading branch information
bbhtt authored and GeorgesStavracas committed Oct 22, 2024
1 parent 25ee11e commit ddef51e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ RUN apt install -y --no-install-recommends \
python3-dbus

# Install doc dependencies
RUN apt install -y --no-install-recommends \
python3-sphinx-copybutton \
python3-sphinxext-opengraph \
furo \
python3-sphinx
RUN apt install -y --no-install-recommends python3-pip
RUN pip install --user --break-system-packages furo">=2024.04.27" \
sphinx-copybutton sphinxext-opengraph matplotlib
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env:
IMAGE_TAG: 20241016-2
IMAGE_TAG: 20241022-0

on:
workflow_call:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:

- name: Build docs
run: |
export PYTHONPATH="/root/.local/lib/python$(python3 -c 'import sys; print("{}.{}".format(*sys.version_info))')/site-packages:$PYTHONPATH"
export PATH="/root/.local/bin:$PATH"
meson setup builddir -Ddocumentation=enabled
ninja -C builddir doc/html
Expand Down

0 comments on commit ddef51e

Please sign in to comment.