From 27f0f3c5c960209952d8348bdc7ec4a82c625964 Mon Sep 17 00:00:00 2001 From: Silke Schomann Date: Thu, 10 Oct 2024 09:34:47 +0100 Subject: [PATCH] New sphinx workflow --- .github/workflows/online_doc_update.yml | 25 +++++-------------------- docs/source/conf.py | 2 +- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/.github/workflows/online_doc_update.yml b/.github/workflows/online_doc_update.yml index fb111ac3..52d60cb5 100644 --- a/.github/workflows/online_doc_update.yml +++ b/.github/workflows/online_doc_update.yml @@ -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/github-push-action@v0.6.0 + publish: false + - uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages + publish_dir: ${{ steps.deployment.outputs.artifact }} \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 7b950fbf..d123d822 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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 ------------------------------------------------