-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
136 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ name: CD - Publish Docs | |
|
||
on: | ||
release: | ||
types: [ published ] | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
|
@@ -29,29 +29,29 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '${{ env.DEFAULT_PYTHON }}' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt -r dev-requirements.txt | ||
pip install -e ".[dev]" | ||
- name: Get current version | ||
run: echo "PYUFP_VERSION=$(git describe --tags --abbrev=0 | sed "s/\(v[0-9]\+\.[0-9]\+\.\)[0-9]\+/\1x/")" >> $GITHUB_ENV | ||
|
||
- name: Setup Git | ||
run: | | ||
git config --global user.name "GitHub Action" | ||
git config --global user.email "[email protected]" | ||
- name: Build and deploy docs | ||
run: mike deploy --push --update-aliases ${{ env.PYUFP_VERSION }} latest | ||
- name: Check repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "${{ env.DEFAULT_PYTHON }}" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt -r dev-requirements.txt | ||
pip install -e ".[dev]" | ||
- name: Get current version | ||
run: echo "PYUFP_VERSION=$(git describe --tags --abbrev=0 | sed "s/\(v[0-9]\+\.[0-9]\+\.\)[0-9]\+/\1x/")" >> $GITHUB_ENV | ||
|
||
- name: Setup Git | ||
run: | | ||
git config --global user.name "GitHub Action" | ||
git config --global user.email "[email protected]" | ||
- name: Build and deploy docs | ||
run: mike deploy --push --update-aliases ${{ env.PYUFP_VERSION }} latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block outdated %} | ||
You're not viewing the latest version. | ||
<a href="{{ '../' ~ base_url }}"> | ||
<strong>Click here to go to latest.</strong> | ||
</a> | ||
{% extends "base.html" %} {% block outdated %} You're not viewing the latest | ||
version. | ||
<a href="{{ '../' ~ base_url }}"> | ||
<strong>Click here to go to latest.</strong> | ||
</a> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
{% if not page.meta.toc_depth or toc_item.level <= page.meta.toc_depth %} | ||
<li class="md-nav__item"> | ||
<a href="{{ toc_item.url }}" class="md-nav__link"> | ||
{{ toc_item.title }} | ||
</a> | ||
<a href="{{ toc_item.url }}" class="md-nav__link"> {{ toc_item.title }} </a> | ||
{% if toc_item.children %} | ||
<nav class="md-nav" aria-label="{{ toc_item.title }}"> | ||
<ul class="md-nav__list"> | ||
{% for toc_item in toc_item.children %} | ||
{% include "partials/toc-item.html" %} | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
<nav class="md-nav" aria-label="{{ toc_item.title }}"> | ||
<ul class="md-nav__list"> | ||
{% for toc_item in toc_item.children %} {% include | ||
"partials/toc-item.html" %} {% endfor %} | ||
</ul> | ||
</nav> | ||
{% endif %} | ||
</li> | ||
{% endif %} |
Oops, something went wrong.