From 1632f8f111dafc50cebd3964cbac22886e4a7daf Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 3 Aug 2023 23:27:01 -0400 Subject: [PATCH] Add docs CI --- .github/workflows/docs.yml | 31 +++++++++++++++++++++++++++++++ .vscode/settings.json | 8 +++++++- CODEOWNERS | 1 + 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docs.yml create mode 100644 CODEOWNERS diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..e9b3395 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,31 @@ +name: Documentation + +on: + pull_request: + push: + paths: + - ".github/workflows/docs.yml" + - "docs/**" + - "book.toml" + +jobs: + build: + name: Build Docs + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v1 + with: + mdbook-version: "latest" + + - name: Build Book + run: mdbook build + + - name: Build Website + uses: shalzz/zola-deploy-action@v0.17.2 + env: + BUILD_DIR: ./docs/website + BUILD_ONLY: true diff --git a/.vscode/settings.json b/.vscode/settings.json index 17b3803..95c1b16 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,11 @@ "pnet", "Protomask", "rtnetlink" - ] + ], + "[yaml]": { + "editor.insertSpaces": true, + "editor.tabSize": 2, + "editor.autoIndent": "advanced", + "diffEditor.ignoreTrimWhitespace": false + } } \ No newline at end of file diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..546a104 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @ewpratten \ No newline at end of file