Skip to content

Commit

Permalink
temporary test job
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Dec 7, 2024
1 parent 2f96430 commit 266f600
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test_doc_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: "TEMP"

on:
push:
branches:
- "doc-upload"

jobs:
upload-docs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies for documentation upload
run: pip install requests
- uses: actions/checkout@v4
- run: mkdir dist
- run: wget https://github.com/biotite-dev/biotite/releases/download/v1.0.1/doc.zip -O dist/doc.zip
- name: Unzip documentation
run: unzip dist/doc.zip -d build
- name: Assemble multi-version documentation
run: >
python .github/workflows/multiversion_docs.py
build/doc/_static/switcher.json
dist/assembled_doc
- name: Upload documentation to website
uses: easingthemes/[email protected]
with:
SSH_PRIVATE_KEY: ${{ secrets.DOCS_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.DOCS_HOST }}
REMOTE_USER: ${{ secrets.DOCS_USER }}
SOURCE: "dist/assembled_doc/*"
TARGET: "html"
SCRIPT_BEFORE: "rm -r html/*"
2 changes: 1 addition & 1 deletion doc/404.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

This page does not exist (anymore).

.. button-link:: https://www.biotite-python.org
.. button-link:: https://kunzmann.uber.space
:color: primary
:shadow:

Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from sphinx_gallery.sorting import ExplicitOrder, FileNameSortKey
import biotite

BIOTITE_DOMAIN = "www.biotite-python.org"
BIOTITE_DOMAIN = "kunzmann.uber.space"
DOC_PATH = dirname(realpath(__file__))
PACKAGE_PATH = join(dirname(DOC_PATH), "src")

Expand Down
2 changes: 1 addition & 1 deletion doc/switcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import biotite

RELEASE_REQUEST = "https://api.github.com/repos/biotite-dev/biotite/releases"
BIOTITE_URL = "https://www.biotite-python.org"
BIOTITE_URL = "https://kunzmann.uber.space"
SEMVER_TAG_REGEX = r"^v?(\d+)\.(\d+)\.(\d+)"


Expand Down

0 comments on commit 266f600

Please sign in to comment.