From 416fafae180a338c2e25490799256444f64fd6cb Mon Sep 17 00:00:00 2001 From: kraptor Date: Wed, 13 Jan 2021 18:21:33 +0100 Subject: [PATCH] Add mkdocs build action/workflow --- .github/mkdocs.yml | 22 ++++++++++++++++++++++ _config.yml | 5 +---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .github/mkdocs.yml diff --git a/.github/mkdocs.yml b/.github/mkdocs.yml new file mode 100644 index 0000000..dd3580e --- /dev/null +++ b/.github/mkdocs.yml @@ -0,0 +1,22 @@ +name: Publish docs via GitHub Pages +on: + push: + branches: + - main + +jobs: + build: + name: Deploy docs + runs-on: ubuntu-latest + steps: + - name: Checkout main + uses: actions/checkout@v1 + + - name: Deploy docs + uses: mhausenblas/mkdocs-deploy-gh-pages@master + # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CUSTOM_DOMAIN: optionaldomain.com + CONFIG_FILE: mkdocs.yml + EXTRA_PACKAGES: build-base \ No newline at end of file diff --git a/_config.yml b/_config.yml index a08f2c7..086e0f3 100644 --- a/_config.yml +++ b/_config.yml @@ -1,6 +1,3 @@ site_name: PlayStation Specifications -theme: jekyll-theme-minimal - -- name: Deploy MkDocs - uses: mhausenblas/mkdocs-deploy-gh-pages@1.16 \ No newline at end of file +theme: jekyll-theme-minimal \ No newline at end of file