Skip to content

Commit fa1f6e2

Browse files
chore: setup gh pages
1 parent 5e6d04a commit fa1f6e2

4 files changed

Lines changed: 90 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: 3.x
20+
- uses: actions/cache@v4
21+
with:
22+
key: ${{ github.ref }}
23+
path: .cache
24+
- run: pip install -r mkdocs-requirements.txt
25+
- run: mkdocs gh-deploy --force

index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Test

mkdocs-requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Dependencies for doc generation
2+
mkdocs
3+
mkdocs-awesome-pages-plugin
4+
mkdocs-git-authors-plugin
5+
mkdocs-material[imaging]

mkdocs.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
site_name: Code Vault - DevOps Handbook
2+
theme:
3+
name: material
4+
features:
5+
- navigation.tabs
6+
- navigation.sections
7+
- toc.integrate
8+
- navigation.top
9+
- search.suggest
10+
- search.highlight
11+
- content.tabs.link
12+
- content.code.annotation
13+
- content.code.copy
14+
language: en
15+
palette:
16+
- scheme: default
17+
toggle:
18+
icon: material/toggle-switch-off-outline
19+
name: Switch to Dark Mode
20+
primary: teal
21+
accent: purple
22+
- scheme: slate
23+
toggle:
24+
icon: material/toggle-switch
25+
name: Switch to Light Mode
26+
primary: teal
27+
accent: lime
28+
29+
extra:
30+
social:
31+
- icon: fontawesome/brands/github-alt
32+
link: https://github.com/TheNewThinkTank-gh-pages/code-vault
33+
34+
plugins:
35+
- search
36+
- git-authors
37+
- awesome-pages:
38+
collapse_single_pages: true
39+
40+
markdown_extensions:
41+
- pymdownx.superfences:
42+
custom_fences:
43+
- name: mermaid
44+
class: mermaid
45+
format: !!python/name:pymdownx.superfences.fence_code_format
46+
- pymdownx.highlight:
47+
anchor_linenums: true
48+
- pymdownx.inlinehilite
49+
- pymdownx.snippets
50+
- admonition
51+
- pymdownx.arithmatex:
52+
generic: true
53+
- footnotes
54+
- pymdownx.details
55+
- pymdownx.superfences
56+
- pymdownx.mark
57+
- attr_list
58+
- pymdownx.tabbed:
59+
alternate_style: true

0 commit comments

Comments
 (0)