From 480659724ca69f55f552277b1c9c6808112dc8e4 Mon Sep 17 00:00:00 2001 From: Jawad Qureshi Date: Mon, 2 Dec 2024 11:49:28 -0600 Subject: [PATCH] Merge in master --- .github/workflows/docs-ci.yaml | 29 +++++++++++++++++++++++++++++ gen3/mkdocs.yml | 18 ++++++++++++------ 2 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/docs-ci.yaml diff --git a/.github/workflows/docs-ci.yaml b/.github/workflows/docs-ci.yaml new file mode 100644 index 00000000..9c3bca33 --- /dev/null +++ b/.github/workflows/docs-ci.yaml @@ -0,0 +1,29 @@ +name: ci +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 mkdocs-encryptcontent-plugin + - run: mkdocs gh-deploy --force diff --git a/gen3/mkdocs.yml b/gen3/mkdocs.yml index ab39929b..af80b1a4 100644 --- a/gen3/mkdocs.yml +++ b/gen3/mkdocs.yml @@ -79,7 +79,14 @@ theme: name: material features: - navigation.footer + - navigation.indexes + - navigation.tracking + - navigation.path custom_dir: overrides + - navigation.indexes + - navigation.tracking + - navigation.path + palette: - primary: black @@ -97,10 +104,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 +127,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