Skip to content

Commit

Permalink
New sphinx workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkeSchomann committed Oct 10, 2024
1 parent a77e59b commit 27f0f3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/online_doc_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,14 @@ on: push
# - main

jobs:
build:
pages:
runs-on: ubuntu-latest
environment:
name: github-pages
permissions:
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update dependencies
run: |
sudo apt-get update -qq
sudo apt-get install texlive-latex-base texlive-latex-recommended \
texlive-fonts-recommended texlive-latex-extra dvipng
- name: Build and Commit
- id: deployment
uses: sphinx-notes/pages@v3
with:
documentation_path: docs/source
- name: Push changes
uses: ad-m/[email protected]
publish: false
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
publish_dir: ${{ steps.deployment.outputs.artifact }}
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('../../src'))
sys.path.insert(0, os.path.abspath(os.path.join("../..", "src")))
print(sys.path)

from mslice import version_info

# -- General configuration ------------------------------------------------
Expand Down

0 comments on commit 27f0f3c

Please sign in to comment.