Skip to content

Commit

Permalink
Check with updated action
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 21, 2023
1 parent 2888cec commit 213113c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
echo "::group::Install dependencies"
python3 -m pip install -r doc/requirements.txt
export PATH=/root/.local/bin:$PATH
# Newer versions of git are more cautious around the github runner
# environment and without this git rev-parse --show-cdup in pre-commit
# fails
git config --global --add safe.directory $(pwd)
echo -e "::endgroup::\n::group::Build podio"
cmake -B build . --install-prefix=$(pwd)/install \
Expand All @@ -51,7 +47,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: doc_output
path: doc_output/html

publish-doc:
needs: build-doc
Expand Down
8 changes: 7 additions & 1 deletion doc/_templates/versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
<div class="rst-other-versions">
<dl>
<dt>Versions</dt>
<object type="text/html" data="../version_list.html"></object>
<dd><a href="../{{ current_version }}/index.html">master</a></dd>
<!-- VERSION_CHANGE START -->

{%- for version in versions %}
<dd><a href="../{{ version }}/index.html">{{ version }}</a></dd>
{%- endfor %}
<!-- VERSION_CHANGE END -->
</dl>
</div>
</div>
8 changes: 7 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,11 @@
except NameError:
html_context = {}

# html_context["display_lower_left"] = True
html_context["current_version"] = os.environ.get("GIT_CURRENT_REF", "master")

html_context["versions"] = []
with open("versions.txt", "r") as vfile:
for ver in vfile.readlines():
html_context["versions"].append(ver.strip())

html_context["versions"].remove(html_context["current_version"])
2 changes: 2 additions & 0 deletions doc/versions.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
master
docs-on-gh-pages
v99-99-99

0 comments on commit 213113c

Please sign in to comment.