Skip to content

Commit

Permalink
Second attempt to fix doc generation errors in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
victorreijgwart committed Aug 16, 2024
1 parent 35d7566 commit d7c61f5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@ jobs:
container:
image: ${{ needs.build-image.outputs.image }}
steps:
- name: Fetch the package's repository
uses: actions/checkout@v4

- name: Install dependencies (doxygen+sphinx+breathe+exhale toolchain)
run: |
apt-get update
apt-get install -q -y --no-install-recommends python3-pip doxygen
apt-get install -q -y --no-install-recommends python3-pip doxygen git
apt-get install -q -y --no-install-recommends latexmk texlive-latex-extra tex-gyre texlive-fonts-recommended texlive-latex-recommended
pip3 install exhale sphinx-sitemap sphinx-design gitpython
pip3 install sphinxawesome-theme --pre
pip3 install "sphinx<7,>6"
- name: Fetch the package's repository
uses: actions/checkout@v4

- name: Parse C++ library with Doxygen
working-directory: ${{ env.CATKIN_WS_PATH }}/src/${{ env.REPOSITORY_NAME }}/docs
shell: bash
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,18 @@ jobs:
container:
image: ${{ needs.workspace-container.outputs.image }}
steps:
- name: Fetch the package's repository
uses: actions/checkout@v4

- name: Install dependencies (doxygen+sphinx+breathe+exhale toolchain)
run: |
apt-get update
apt-get install -q -y --no-install-recommends python3-pip doxygen
apt-get install -q -y --no-install-recommends python3-pip doxygen git
apt-get install -q -y --no-install-recommends latexmk texlive-latex-extra tex-gyre texlive-fonts-recommended texlive-latex-recommended
pip3 install exhale sphinx-sitemap sphinx-design gitpython
pip3 install sphinxawesome-theme --pre
pip3 install "sphinx<7,>6"
- name: Fetch the package's repository
uses: actions/checkout@v4

- name: Parse C++ library with Doxygen
working-directory: ${{ env.CATKIN_WS_PATH }}/src/${{ env.REPOSITORY_NAME }}/docs
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
highlight_language = 'cpp'

# Provide a short syntax to link to files in the repository
repo = git.Repo(os.path.abspath(__file__), search_parent_directories=True)
repo_path = os.path.abspath(os.path.join(__file__, *[os.pardir] * 2))
repo = git.Repo(repo_path)
sha = repo.head.object.hexsha
extlinks = {
"gh_file": (f"https://github.com/ethz-asl/wavemap/tree/{sha}/%s", "%s"),
Expand Down

0 comments on commit d7c61f5

Please sign in to comment.