From 29798caad18c3dce3d9ba44e62ae1007887ad3f4 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Mon, 6 Nov 2023 23:22:11 -0500 Subject: [PATCH] remove mike --- .github/workflows/mkdocs.yml | 20 +++----------------- mkdocs.yml | 6 ------ 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index 7917def..c89e23d 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -15,8 +15,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Setup Python uses: actions/setup-python@v4 @@ -35,6 +33,7 @@ jobs: restore-keys: | mkdocs-material- + - name: Install Requirements run: | sudo apt-get update && @@ -44,18 +43,5 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_TOKEN }} - - name: Fetch documentation branch - run: git fetch origin gh-pages --depth=1 - - - name: Configure Git User - run: | - git config user.name "ci-bot" - git config user.email "ci-bot@example.com" - - - name: Get current tag - run: echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - - - name: Build and deploy with mike - run: mike deploy --push --update-aliases ${{ env.version }} latest - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file + - name: Build and deploy MkDocs + run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index b7fb30f..4613851 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -91,9 +91,6 @@ nav: plugins: - - mike: - alias_type: symlink - canonical_version: latest - social - search - mkdocstrings: @@ -108,7 +105,6 @@ plugins: plugins: - optimize - minify - - mike - blog: enabled: !ENV CI blog_dir: "blog" @@ -118,8 +114,6 @@ plugins: post_url_format: "{date}/{slug}" authors_file: "{blog}/.authors.yml" extra: - version: - provider: mike analytics: provider: google property: G-5CR8QXF5CN