diff --git a/.ci/mkdocs/mkdocs.yml b/.ci/mkdocs/mkdocs.yml
new file mode 100644
index 00000000..1c08fc43
--- /dev/null
+++ b/.ci/mkdocs/mkdocs.yml
@@ -0,0 +1,82 @@
+---
+# Project information
+site_name: bjw-s Helm Charts
+site_url: https://bjw-s.github.io/helm-charts/
+site_author: bjw-s
+
+# Repository
+repo_name: bjw-s/helm-charts
+repo_url: https://github.com/bjw-s/helm-charts
+
+# Configuration
+docs_dir: ../../docs
+site_dir: ../../site
+
+theme:
+ name: material
+ custom_dir: ../../docs/overrides
+ features:
+ - announce.dismiss
+ - content.code.annotate
+ - content.code.copy
+ - navigation.expand
+ - navigation.indexes
+ - navigation.path
+ - navigation.sections
+ - navigation.tabs
+ - navigation.top
+ - search.suggest
+ palette:
+ scheme: slate
+ primary: black
+ accent: indigo
+ font:
+ text: Roboto
+ code: Roboto Mono
+ icon:
+ logo: material/kubernetes
+
+# Plugins
+plugins:
+ - search:
+ separator: '[\s\u200b\-_,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
+ - minify:
+ minify_html: true
+
+# Extensions
+markdown_extensions:
+ - admonition
+ - pymdownx.highlight:
+ anchor_linenums: true
+ line_spans: __span
+ pygments_lang_class: true
+ - pymdownx.inlinehilite
+ - pymdownx.snippets:
+ check_paths: true
+ - pymdownx.superfences
+ - toc:
+ permalink: true
+ toc_depth: 3
+
+# Page tree
+nav:
+ - index.md
+ - Common Library:
+ - common-library/index.md
+ - Storage:
+ - Permissions: common-library/storage/permissions.md
+ - Global options: common-library/storage/globalOptions.md
+ - Types-specific options:
+ - configMap: common-library/storage/types/configmap.md
+ - Custom: common-library/storage/types/custom.md
+ - emptyDir: common-library/storage/types/emptyDir.md
+ - hostPath: common-library/storage/types/hostPath.md
+ - NFS share: common-library/storage/types/nfs-share.md
+ - persistentVolumeClaim: common-library/storage/types/persistentVolumeClaim.md
+ - Secret: common-library/storage/types/secret.md
+ - How To...:
+ - common-library/howto/index.md
+ - Helm templates: common-library/howto/helm-templates.md
+ - Multiple subPaths for 1 volume: common-library/howto/multiple-subpath.md
+ - App Template:
+ - app-template/index.md
diff --git a/.github/workflows/docs-release.yaml b/.github/workflows/docs-release.yaml
index 17df1a17..6211e7be 100644
--- a/.github/workflows/docs-release.yaml
+++ b/.github/workflows/docs-release.yaml
@@ -7,8 +7,12 @@ on:
- main
paths:
- ".github/workflows/docs-release.yaml"
+ - ".ci/mkdocs/mkdocs.yml"
- "docs/**"
+permissions:
+ contents: write
+
jobs:
release-docs:
name: Release documentation
@@ -24,22 +28,27 @@ jobs:
private_key: ${{ secrets.BJWS_APP_PRIVATE_KEY }}
- name: Checkout main branch
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
+ uses: actions/checkout@v4
with:
token: ${{ steps.get-app-token.outputs.token }}
fetch-depth: 0
- - name: Build docs
- uses: docker://ghcr.io/bjw-s/mdbook:0.4.35@sha256:ce016bc119d7501dd59e8f5f2491b0ccd6cbbb328f18ca4d6a0365ef4926e8d6
+ - uses: actions/setup-python@v4
with:
- args: bash -c "cd docs && mdbook build"
+ python-version: 3.x
+
+ - name: Install requirements
+ run: pip install -r docs/requirements.txt
+
+ - name: Build and publish docs
+ run: mkdocs build -f .ci/mkdocs/mkdocs.yml
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.9.3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ steps.get-app-token.outputs.token }}
- publish_dir: ./docs/book/html
+ publish_dir: ./site
destination_dir: docs
- user_name: 'bjw-s-bot[bot]'
- user_email: 'bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>'
+ user_name: "bjw-s-bot[bot]"
+ user_email: "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>"
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 5c288705..29d0be13 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,3 +1,23 @@
{
- "prettier.configPath": ".ci/prettier/.prettierrc.yaml"
+ "prettier.configPath": ".ci/prettier/.prettierrc.yaml",
+ "prettier.ignorePath": ".ci/prettier/.prettierignore",
+ "yaml.schemas": {
+ "https://json.schemastore.org/taskfile.json": [
+ "Taskfile.yaml",
+ ".taskfiles/*.yaml"
+ ],
+ "http://json.schemastore.org/github-workflow.json": [
+ ".github/workflows/*.yaml"
+ ],
+ "https://squidfunk.github.io/mkdocs-material/schema.json": [
+ "mkdocs.yml"
+ ]
+ },
+ "yaml.customTags": [
+ "!ENV scalar",
+ "!ENV sequence",
+ "tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg",
+ "tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji",
+ "tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
+ ]
}
diff --git a/README.md b/README.md
index 0495ff26..05b0bd2b 100644
--- a/README.md
+++ b/README.md
@@ -2,13 +2,13 @@
-## helm-charts
+