Skip to content

Commit

Permalink
Merge pull request #91 from quaternionmedia/docs
Browse files Browse the repository at this point in the history
📑 Docs versioning
  • Loading branch information
mrharpo authored Sep 2, 2022
2 parents 4ebc821 + 7faaa2b commit 7097e89
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 32 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,38 @@ on:
branches:
- main
- dev
- docs
pull_request:
branches:
- main
- dev
- docs
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: 📰 Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 🐍 Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install mkdocs-material #
- run: mkdocs gh-deploy --force

- name: 🚧 Install dependencies
run: pip install mkdocs-material mkdocs-git-revision-date-localized-plugin mike

- name: 🤖 Configure git user
uses: oleksiyrudenko/gha-git-credentials@v2.1
with:
global: true
name: qm-bot
token: ${{ secrets.GITHUB_TOKEN }}

- name: 🧵 Set version string
run: echo VERSION_TITLE=$(mike list | grep latest) >> $GITHUB_ENV

- name: 🏗️ Deploy
run: mike deploy --push --update-aliases ${VERSION_TITLE%\[latest\]} latest
58 changes: 30 additions & 28 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@ site_name: Alfred
side_description: automatic video editing
site_url: https://alfred.quaternion.media/docs/
# repo_url: /~https://github.com/quaternionmedia/alfred
edit_uri: ""
edit_uri: ''

nav:
- Home: index.md
- About:
- about/index.md
- about/concepts.md
- about/clip.md
- about/template.md
- about/edl.md
- about/project.md
- about/render.md
- about/index.md
- about/concepts.md
- about/clip.md
- about/template.md
- about/edl.md
- about/project.md
- about/render.md
- Examples:
- examples/index.md
- examples/login.md
- examples/media.md
- examples/preview.md
- examples/render.md
- examples/trim.md
- examples/combine.md
- examples/adjust.md
- examples/fade.md
- examples/text.md
- examples/animation.md
- examples/project.md
- examples/index.md
- examples/login.md
- examples/media.md
- examples/preview.md
- examples/render.md
- examples/trim.md
- examples/combine.md
- examples/adjust.md
- examples/fade.md
- examples/text.md
- examples/animation.md
- examples/project.md
# - examples/advanced.md
- API:
- api/index.md
- api/auth.md
- api/otto.md
- api/render.md
- api/index.md
- api/auth.md
- api/otto.md
- api/render.md

markdown_extensions:
- pymdownx.highlight
Expand All @@ -56,12 +56,12 @@ theme:
logo: assets/al-white.png
favicon: assets/al-white.png
palette:
- media: "(prefers-color-scheme: dark)" #
- media: '(prefers-color-scheme: dark)'
scheme: slate
toggle:
icon: material/toggle-switch
name: Switch to light mode
- media: "(prefers-color-scheme: light)" #
- media: '(prefers-color-scheme: light)'
scheme: default
toggle:
icon: material/toggle-switch-off-outline
Expand All @@ -82,5 +82,7 @@ extra:
social:
- icon: fontawesome/brands/github
link: /~https://github.com/quaternionmedia/alfred
# - icon: fontawesome/brands/website
# link: https://alfred.quaternion.media
- icon: material/web
link: https://alfred.quaternion.media
version:
provider: mike

0 comments on commit 7097e89

Please sign in to comment.