diff --git a/.github/workflows/docs-ci.yaml b/.github/workflows/docs-ci.yaml new file mode 100644 index 00000000..de7ee316 --- /dev/null +++ b/.github/workflows/docs-ci.yaml @@ -0,0 +1,30 @@ +name: docs-ci +on: + push: + branches: + - master + - main + - feat/staging-docs +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 mkdocs-encryptcontent-plugin + - run: cd gen3 && mkdocs gh-deploy --force diff --git a/gen3/mkdocs.yml b/gen3/mkdocs.yml index ab39929b..2254c361 100644 --- a/gen3/mkdocs.yml +++ b/gen3/mkdocs.yml @@ -79,7 +79,12 @@ theme: name: material features: - navigation.footer + - navigation.indexes + - navigation.tracking + - navigation.path + custom_dir: overrides + palette: - primary: black @@ -97,10 +102,8 @@ theme: toggle: icon: material/eye-outline name: Switch to light mode - features: - - navigation.indexes - - navigation.tracking - - navigation.path +extra_css: + - stylesheets/extra.css use_directory_urls: true markdown_extensions: - admonition @@ -122,8 +125,9 @@ plugins: blog_toc: true - mkdocs-video: is_video: True -extra_css: - - stylesheets/extra.css + - encryptcontent: + password_inventory: + _global: 'gen3' extra: social: - icon: fontawesome/brands/linkedin