Skip to content

Commit

Permalink
📝 (add mike): Add mike
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan committed May 21, 2024
1 parent 478fbb6 commit 734896f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- develop
- master

jobs:
Expand All @@ -21,9 +22,9 @@ jobs:
- name: Build documentation
working-directory: ./documentation
run: |
git config --global user.email "trident@ackeeblockchain.com"
git config --global user.email "trident@ackee.xyz"
git config --global user.name "Trident bot"
mike deploy -b documentation latest
mike deploy -b documentation dev
- name: Checkout documentation branch
run: git checkout -f documentation
- name: Push documentation
Expand Down
8 changes: 8 additions & 0 deletions documentation/docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "base.html" %}

{% block outdated %}
You're not viewing the latest version.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}
2 changes: 2 additions & 0 deletions documentation/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ extra:
link: https://discord.gg/x7qXXnGCsa
- icon: fontawesome/brands/twitter
link: https://twitter.com/ackeeblockchain
version:
provider: mike

# https://www.mkdocs.org/user-guide/configuration/#plugins
plugins:
Expand Down

0 comments on commit 734896f

Please sign in to comment.