From fe9a20432beefebd566b237a547ab791381c7d89 Mon Sep 17 00:00:00 2001 From: Ingo Wolf <0358381@schoolsnet.act.edu.au> Date: Mon, 13 May 2024 12:41:08 +1000 Subject: [PATCH] add mkdocs base --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ docs/index.md | 1 + index.html | 1 - mkdocs.yml | 4 ++++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml create mode 100644 docs/index.md delete mode 100644 index.html create mode 100644 mkdocs.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..007523e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: build +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@v5 + with: + python-version: 3.x + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - uses: actions/cache@v4 + 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/docs/index.md b/docs/index.md new file mode 100644 index 0000000..ce31d28 --- /dev/null +++ b/docs/index.md @@ -0,0 +1 @@ +# Home \ No newline at end of file diff --git a/index.html b/index.html deleted file mode 100644 index 8b13789..0000000 --- a/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..5dc28ad --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,4 @@ +site_name: SMAStudios +site_url: https://smastudiosau.github.io +theme: + name: material \ No newline at end of file