-
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.
feature/mx-1347 Configure gh pages (#11)
# Added - sphinx configuration and documentation workflow
- Loading branch information
1 parent
2fe5723
commit 5231b37
Showing
10 changed files
with
723 additions
and
0 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,80 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
|
||
env: | ||
PIP_NO_OPTION: on | ||
PIP_NO_CLEAN: on | ||
PIP_PREFER_BINARY: on | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Cache requirements | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-requirements | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ env.cache-name }}-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ env.cache-name }}- | ||
- name: Cache poetry | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-poetry | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ env.cache-name }}-${{ hashFiles('poetry.lock') }} | ||
restore-keys: | | ||
${{ env.cache-name }}- | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Setup pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Install requirements | ||
run: make install | ||
|
||
- name: Run sphinx | ||
run: make docs | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ./docs/dist | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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 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,7 @@ | ||
# sphinx configuration | ||
|
||
extensions = ["myst_parser"] | ||
html_theme = "alabaster" | ||
project = "mex-model" | ||
source_suffix = {".md": "markdown"} | ||
templates_path = ["."] |
File renamed without changes.
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,18 @@ | ||
{% extends '!layout.html' %} | ||
|
||
{% block footer %} | ||
<div class="footer"> | ||
<a href="https://www.rki.de/DE/Content/Forsch/MEx/MEx_inhalt.html" rel="nofollow"> | ||
MEx Project | ||
</a> | | ||
<a href="https://www.rki.de/DE/Service/Impressum/impressum_node.html" rel="nofollow"> | ||
RKI Imprint | ||
</a> | | ||
<a href="https://docs.github.com/site-policy/privacy-policies/github-privacy-statement" rel="nofollow"> | ||
GitHub Privacy | ||
</a> | | ||
<a href="https://docs.github.com/en/site-policy/privacy-policies/github-cookies" rel="nofollow"> | ||
GitHub Cookies | ||
</a> | ||
</div> | ||
{% 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
Large diffs are not rendered by default.
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,2 @@ | ||
[virtualenvs] | ||
in-project = 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