Skip to content

Commit

Permalink
Merge pull request kapicorp#1089 from kapicorp/fix-docs-build
Browse files Browse the repository at this point in the history
Fix docs
  • Loading branch information
ademariag authored Nov 11, 2023
2 parents 6ba3b7f + d7827a4 commit 2404456
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,20 @@ concurrency:
cancel-in-progress: true

on:
pull_request:
paths:
- 'docs/**'
- '.github/worklows/documentation.yml'
- 'requirements.docs.txt'
- 'Dockerfile.docs'
- 'mkdocs.yml'
- 'CNAME'
push:
branches:
- master
paths:
- 'docs/**'
- '.github/worklows/documentation.yml'
- 'requirements.docs.txt'
- 'Dockerfile.docs'
- 'mkdocs.yml'
Expand All @@ -22,8 +31,11 @@ jobs:
steps:
- name: Checkout kapitan recursively
uses: actions/checkout@v4

- uses: actions/setup-python@v2
- run: pip install --upgrade pip && pip install -r requirements.docs.txt
- run: mkdocs build
- name: Deploy docs
if: github.event_name != 'pull_request' && github.ref == github.event.repository.default_branch
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- test/*
paths-ignore:
- 'docs/**'
- '.github/worklows/documentation.yml'
- 'requirements.docs.txt'
- 'mkdocs.yml'
- 'CNAME'
Expand All @@ -25,6 +26,7 @@ on:
pull_request:
paths-ignore:
- 'docs/**'
- '.github/worklows/documentation.yml'
- 'requirements.docs.txt'
- 'mkdocs.yml'
- 'CNAME'
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ markdown_extensions:
base_path: examples
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_generator: !!python/name:material.extensions.emoji.to_svg
options:
custom_icons:
- overrides/.icons
Expand Down
6 changes: 3 additions & 3 deletions requirements.docs.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
markdown-include==0.8.1
mkdocs-material-extensions==1.3
mkdocs-material==9.3.1
mkdocs==1.5.2
pymdown-extensions==10.3
mkdocs-material==9.4.8
mkdocs==1.5.3
pymdown-extensions==10.4

0 comments on commit 2404456

Please sign in to comment.