-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from AP6YC/release/v0.6.0
Release/v0.6.0
- Loading branch information
Showing
19 changed files
with
401 additions
and
117 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
tags: '*' | ||
pull_request: | ||
|
||
# sphinx-build doc _build | ||
permissions: | ||
contents: write | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: 'true' | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v3 | ||
|
||
- name: Install dependencies | ||
run: | | ||
# pip install -r docs/requirements.txt | ||
pip install -e .[docs] | ||
- name: Sphinx Build Develop | ||
run: | | ||
git checkout develop | ||
git fetch --all | ||
git pull --all | ||
cd ${{ github.workspace }}/docs | ||
# make html | ||
sphinx-multiversion source build/html | ||
- name: Sphinx Build Main | ||
run: | | ||
git checkout main | ||
cd ${{ github.workspace }}/docs | ||
sphinx-multiversion source build/html | ||
- name: Make symlinks | ||
run: | | ||
ln -sf build/html/main build/html/stable | ||
ln -sf build/html/develop build/html/dev | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: ${{ github.event_name == 'push' && ((github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/develop'))}} | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# publish_dir: docs/build/ | ||
publish_dir: docs/build/html/ | ||
# publish_dir: _build/ | ||
# force_orphan: true |
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
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends "!page.html" %} | ||
{% block body %} | ||
{% if current_version and latest_version and current_version != latest_version %} | ||
<p> | ||
<strong> | ||
{% if current_version.is_released %} | ||
You're reading an old version of this documentation. | ||
If you want up-to-date information, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name}}</a>. | ||
{% else %} | ||
You're reading the documentation for a development version. | ||
For the latest released version, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name}}</a>. | ||
{% endif %} | ||
</strong> | ||
</p> | ||
{% endif %} | ||
{{ super() }} | ||
{% 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% if versions %} | ||
<div class="sidebar-tree"> | ||
<p class="caption" role="heading"> | ||
<span class="caption-text">{{ _('Docs Versions') }}</span> | ||
</p> | ||
<ul class="current"> | ||
{%- for item in versions %} | ||
<li class="toctree-l1"><a class="reference internal" href="{{ item.url }}">{{ item.name }}</a></li> | ||
{%- endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} |
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
Oops, something went wrong.