Skip to content

Commit

Permalink
chore(ci): enable mkdocs in ci (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Mar 25, 2024
1 parent 0734549 commit 14f3235
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Release

on:
pull_request:
push:
branches: [main]
tags:
- 'v*.*.*'
pull_request:

jobs:
release-container:
Expand All @@ -14,6 +15,8 @@ jobs:
name: 'catpage'
display-name: 'Cat Page'
tags: 'minimal rhel9 rabe s2i python python311 catpage'
release-mkdocs:
uses: radiorabe/actions/.github/workflows/[email protected]
helm-chart:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ __pycache__
/.coverage
/node_modules/
venv/
.venv/
5 changes: 5 additions & 0 deletions docs/gen_ref_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@
"w",
) as index_file:
index_file.writelines(readme.read())

with Path("docs/screenshot.png").open("rb") as orig, mkdocs_gen_files.open(
"docs/screenshot.png", "wb"
) as screenshot:
screenshot.write(orig.read())
2 changes: 2 additions & 0 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ theme:
palette:
# Palette toggle for dark mode
- scheme: slate
primary: '#00c9bf'
toggle:
icon: material/brightness-4
name: Switch to light mode
# Palette toggle for light mode
- scheme: default
primary: '#00c9bf'
toggle:
icon: material/brightness-7
name: Switch to dark mode
Expand Down

0 comments on commit 14f3235

Please sign in to comment.