From 7d4a142acd41a7499d930dbeed1536e2074d8070 Mon Sep 17 00:00:00 2001 From: Salma Date: Thu, 16 Mar 2023 06:19:14 +0200 Subject: [PATCH 1/2] Added docs requirements --- docs/requirements.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 000000000..2cbd20262 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,3 @@ +mkdocs-material +pymdown-extensions +mkdocs From fd4eb647f1faff8e27d85f61a7d57c3a07fcd796 Mon Sep 17 00:00:00 2001 From: Salma Date: Thu, 16 Mar 2023 06:22:38 +0200 Subject: [PATCH 2/2] Added CI action --- .github/workflows/deploy-mkdocs.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/deploy-mkdocs.yml diff --git a/.github/workflows/deploy-mkdocs.yml b/.github/workflows/deploy-mkdocs.yml new file mode 100644 index 000000000..cd8b9fcfa --- /dev/null +++ b/.github/workflows/deploy-mkdocs.yml @@ -0,0 +1,24 @@ +name: "Push MkDocs to gh-pages" +on: + push: + branches: [ "master" ] + + workflow_dispatch: + +jobs: + deploy-mkdocs: + runs-on: ubuntu-latest + defaults: + run: + working-directory: docs + steps: + - uses: actions/checkout@v3 + - name: Install python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + cache: 'pip' + - name: Install dependencies + run: pip install -r requirements.txt + - name: Build and push + run: mkdocs gh-deploy --force