From b5aedf533459b25ec32d02703f1b76082c3c0db1 Mon Sep 17 00:00:00 2001 From: Furior Date: Tue, 21 Nov 2023 18:08:21 +0700 Subject: [PATCH] mkdocs base --- .github/workflows/deploy_mkdocs.yml | 29 +++++++++++++++++++++++++++++ mkdocs.yml | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/deploy_mkdocs.yml create mode 100644 mkdocs.yml diff --git a/.github/workflows/deploy_mkdocs.yml b/.github/workflows/deploy_mkdocs.yml new file mode 100644 index 000000000..63a29ffcd --- /dev/null +++ b/.github/workflows/deploy_mkdocs.yml @@ -0,0 +1,29 @@ +name: Deploy mkdocs +on: + push: + branches: + - master + - main +permissions: + contents: write +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Configure Git Credentials + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - uses: actions/cache@v3 + with: + key: mkdocs-material-${{ env.cache_id }} + path: .cache + restore-keys: | + mkdocs-material- + - run: pip install mkdocs-material + - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 000000000..b2d06842c --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,3 @@ +site_name: NoitaMP Documentation +theme: + name: material \ No newline at end of file