mirror of https://github.com/0xERR0R/blocky.git
chore(docs): use docs versioning
This commit is contained in:
parent
2c108dabb8
commit
e482eb43e9
|
@ -2,15 +2,31 @@ name: docs
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- docs
|
|
||||||
- main
|
- main
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- run: pip install mkdocs-material
|
|
||||||
- run: mkdocs gh-deploy --force
|
- name: install tools
|
||||||
|
- run: pip install mkdocs-material mike
|
||||||
|
|
||||||
|
- name: Setup doc deploy
|
||||||
|
run: |
|
||||||
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git config --local user.name "github-actions[bot]"
|
||||||
|
|
||||||
|
- name: Deploy version for tag/branch
|
||||||
|
run: mike deploy --push --update-aliases ${GITHUB_REF_NAME}
|
||||||
|
- name: Deploy latest version for tag only
|
||||||
|
if: ${{ github.ref != 'refs/heads/main' }}
|
||||||
|
run: mike deploy --push --update-aliases latest
|
||||||
|
- run: mike set-default --push latest
|
||||||
|
|
|
@ -3,10 +3,11 @@ site_description: blocky Documentation
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
# scheme: slate
|
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: teal
|
accent: teal
|
||||||
extra:
|
extra:
|
||||||
|
version:
|
||||||
|
provider: mike
|
||||||
social:
|
social:
|
||||||
- icon: fontawesome/brands/github
|
- icon: fontawesome/brands/github
|
||||||
link: https://github.com/0xERR0R/blocky
|
link: https://github.com/0xERR0R/blocky
|
||||||
|
|
Loading…
Reference in New Issue