diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ff170144..a72e9c64 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,18 +10,22 @@ on: schedule: - cron: '0 0 * * 1' -permissions: - contents: write +permissions: write-all jobs: deploy: runs-on: ubuntu-latest + permissions: write-all + # contents: 'write' + # pull-requests: 'write' + # issues: 'write' + # id-token: 'write' env: PR_PATH: pull/${{github.event.number}} BASE_URL: https://dipy.github.io/dipy.org steps: - name: Comment on PR - uses: hasura/comment-progress@v2.2.0 + uses: hasura/comment-progress@v2.3.0 if: github.ref != 'refs/heads/master' with: github-token: ${{ secrets.GITHUB_TOKEN }} @@ -77,7 +81,7 @@ jobs: commit_message: ${{ github.event.head_commit.message }} - name: Update comment - uses: hasura/comment-progress@v2.2.0 + uses: hasura/comment-progress@v2.3.0 if: github.ref != 'refs/heads/master' with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/conf.py b/conf.py index cbb8e485..8f1ee2d8 100644 --- a/conf.py +++ b/conf.py @@ -113,7 +113,7 @@ # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. -html_theme = "pydata_sphinx_theme" +html_theme = "grg_sphinx_theme" # The style sheet to use for HTML and HTML Help pages. A file of that name # must exist either in Sphinx' static/ path, or in one of the custom paths @@ -125,7 +125,141 @@ # documentation. html_theme_options = { "secondary_sidebar_items": ["page-toc"], - "show_toc_level": 2 + "show_toc_level": 2, + "navbar_center": ["components/navbar-links.html"], + "navbar_links": [ + { + "name": "Docs", + "children": [ + { + "name": "Quick Start", + "url": "https://docs.dipy.org", + }, + { + "name": "Tutorials", + "url": "https://docs.dipy.org/tutorials", + }, + { + "name": "Recipes", + "url": "https://docs.dipy.org/recipes", + }, + { + "name": "CLI / Workflows", + "url": "https://docs.dipy.org/cli", + }, + { + "name": "API", + "url": "https://docs.dipy.org/reference", + }, + { + "name": "CLI API", + "url": "https://docs.dipy.org/cli/reference", + } + ] + }, + { + "name": "Workshops", + "children": [ + { + "name": "DIPY Workshop 2024", + "url": "https://dipy.org/workshops/dipy-workshop-2024", + "external": True + }, + { + "name": "DIPY Workshop 2023", + "url": "https://dipy.org/workshops/dipy-workshop-2023", + "external": True + }, + { + "name": "DIPY Workshop 2022", + "url": "https://dipy.org/workshops/dipy-workshop-2022", + "external": True + }, + { + "name": "DIPY Workshop 2021", + "url": "https://dipy.org/workshops/dipy-workshop-2021", + "external": True + }, + { + "name": "DIPY Workshop 2020", + "url": "https://dipy.org/workshops/dipy-workshop-2020", + "external": True + }, + { + "name": "DIPY Workshop 2019", + "url": "https://dipy.org/workshops/dipy-workshop-2019", + "external": True + }, + ] + }, + { + "name": "Community", + "sections": [ + { + "name": "News", + "children": [ + { + "name": "Newsletters", + "url": "", + "external": True + }, + { + "name": "Blog", + "url": "blog" + }, + { + "name": "Youtube", + "url": "blog", + "external": True + } + ] + }, + { + "name": "Help", + "children": [ + { + "name": "Live Chat (Gitter)", + "url": "" + }, + { + "name": "Github Discussions", + "url": "", + "external": True + } + ] + } + ] + }, + { + "name": "About", + "children": [ + { + "name": "Team", + "url": "team", + }, + { + "name": "FAQ", + "url": "faq", + }, + { + "name": "Mission Statement", + "url": "mission", + }, + { + "name": "Releases", + "url": "releases", + }, + { + "name": "Cite", + "url": "cite", + }, + { + "name": "Glossary", + "url": "glossary", + }, + ] + }, + ] } # Add any paths that contain custom themes here, relative to this directory.