Skip to content

Commit

Permalink
publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dpdani committed Oct 29, 2024
1 parent e20aeb2 commit 729a9df
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 8 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: publish-docs

on:
push:
branches:
- dev

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x

- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install .[docs]

- run: mkdocs gh-deploy --force
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This package provides atomic versions of common data structures:
- `AtomicRef`
- …and more to come

[Visit the docs for more information.](http://dpdani.github.io/cereggii)
[Visit the docs for more information.](https://dpdani.github.io/cereggii)


## Cereus greggii
Expand Down
16 changes: 9 additions & 7 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
site_name: cereggii
repo_url: https://github.com/dpdani/cereggii
site_url: https://dpdani.github.io/cereggii/

copyright: |
© 2023- Daniele Parmeggiani
nav:
- 'index.md'
Expand All @@ -22,8 +27,6 @@ nav:
- 'News':
- 'blog/index.md'

repo_url: https://github.com/dpdani/cereggii

theme:
name: material
icon:
Expand Down Expand Up @@ -87,8 +90,10 @@ extra:
link: https://github.com/dpdani/cereggii
- icon: material/license
link: https://github.com/dpdani/cereggii/blob/main/LICENSE
version:
provider: mike
# version:
# provider: mike
# default: stable
# alias: true

plugins:
- search
Expand All @@ -109,8 +114,5 @@ extra_javascript:
- js/mathjax.js
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js

copyright: |
© 2023- Daniele Parmeggiani
watch:
- ./src/cereggii/_cereggii.pyi

0 comments on commit 729a9df

Please sign in to comment.