From 6b3c2516529fcc7a6117ab9c6f330105fe986e8d Mon Sep 17 00:00:00 2001 From: Builditluc <37375448+Builditluc@users.noreply.github.com> Date: Thu, 16 Mar 2023 21:28:13 +0100 Subject: [PATCH] Add versioning to the documentation (#166) --- .github/workflows/ci.yml | 9 --------- docs/.overrides/main.html | 8 ++++++++ mkdocs.yml | 4 ++++ 3 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 docs/.overrides/main.html diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 899a2452..bbe043cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/docs/.overrides/main.html b/docs/.overrides/main.html new file mode 100644 index 00000000..abd75691 --- /dev/null +++ b/docs/.overrides/main.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block outdated %} + Vou're not viewing the latest version. + + Clock here to go to the latest. + +{% endblock %} diff --git a/mkdocs.yml b/mkdocs.yml index 1680e0ba..cd27a8b6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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 @@ -72,6 +74,8 @@ plugins: - tags extra: + version: + provider: mike social: - icon: fontawesome/brands/github link: https://github.com/builditluc/