Skip to content

Commit

Permalink
Add doc versioning via mike
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronzila committed Sep 11, 2023
1 parent ca8b1c9 commit 05a9ea9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,11 @@ jobs:
with:
key: ${{ github.ref }}
path: .cache
- uses: SebRollen/[email protected]
id: read_toml
with:
file: 'pyproject.toml'
field: 'project.version'
- run: pip install ".[dev]"
- run: mkdocs gh-deploy --force
- run: mike deploy --push --update-aliases ${{ steps.read_toml.outputs.value }} latest
- run: mike set-default --push latest
6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,8 @@ plugins:
members_order: "source"
show_signature: true
separate_signature: false
show_signature_annotations: false
show_signature_annotations: false

extra:
version:
provider: mike
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ dev = [
"mkdocs-material",
"mkdocstrings[python]",
"markdown-exec[ansi]",
"mike",
# Others
"ruff",
"black",
Expand Down

0 comments on commit 05a9ea9

Please sign in to comment.