Skip to content

Commit

Permalink
Add versioning to the documentation (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Builditluc authored Mar 16, 2023
1 parent d305698 commit 6b3c251
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,3 @@ jobs:
with:
command: fmt
args: --all -- --check
documentation:
name: Rebuild Documentation
if: ${{ (github.event.pull_request.merged == true) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions docs/.overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "base.html" %}

{% block outdated %}
Vou're not viewing the latest version.
<a href="{{ '../' ~ base_url }}">
<strong>Clock here to go to the latest.</strong>
</a>
{% endblock %}
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

site_name: wiki-tui
site_url: https://builditluc.github.io/wiki-tui
site_author: Builditluc

repo_name: builditluc/wiki-tui
repo_url: https://github.com/builditluc/wiki-tui

theme:
name: material
custom_dir: docs/.overrides
icon:
logo: material/console
repo: fontawesome/brands/github
Expand Down Expand Up @@ -72,6 +74,8 @@ plugins:
- tags

extra:
version:
provider: mike
social:
- icon: fontawesome/brands/github
link: https://github.com/builditluc/
Expand Down

0 comments on commit 6b3c251

Please sign in to comment.