File tree Expand file tree Collapse file tree 3 files changed +95
-0
lines changed
Expand file tree Collapse file tree 3 files changed +95
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Send to gh pages branch
2+ on :
3+ push :
4+ branches :
5+ - automated_mkdocs
6+ -
7+ permissions :
8+ contents : write
9+ jobs :
10+ deploy :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Configure Git Credentials
16+ run : |
17+ git config user.name github-actions[bot]
18+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
19+
20+ - uses : actions/setup-python@v5
21+ with :
22+ python-version : 3.x
23+
24+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
25+
26+ - uses : actions/cache@v4
27+ with :
28+ key : mkdocs-material-${{ env.cache_id }}
29+ path : ~/.cache
30+ restore-keys : |
31+ mkdocs-material-
32+
33+ - run : pip install mkdocs-material
34+ - run : mkdocs gh-deploy --force
Original file line number Diff line number Diff line change 4444 run : |
4545 git reset HEAD -- .
4646 git add docs/*.md
47+ git add mkdocs.yml
4748 git commit -m "automated docs"
4849 git push --set-upstream origin automated_mkdocs --force
Original file line number Diff line number Diff line change 1+ site_name : GDSL Automated docs
2+
3+ # site_url: https://mydomain.org/mysite
4+ # mostly copied from https://github.com/aspizu/goboscript/blob/main/mkdocs.yml
5+ theme :
6+ name : material
7+ features :
8+ - navigation.instant
9+ - navigation.instant.prefetch
10+ - navigation.instant.progress
11+ - navigation.instant.preview
12+ - navigation.tracking
13+ - navigation.tabs
14+ - navigation.tabs.sticky
15+ - navigation.expand
16+ - content.code.annotate
17+ - toc.follow
18+ - navigation.path
19+ - navigation.top
20+ - content.code.copy
21+ - content.tabs.link
22+ font :
23+ text : Inter Tight
24+ code : Cascadia Code
25+ palette :
26+ # Note: Using the system theme works with the insiders version
27+ # https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#automatic-light-dark-mode
28+ - media : " (prefers-color-scheme)"
29+ toggle :
30+ icon : material/brightness-auto
31+ name : Switch to light mode
32+ - media : " (prefers-color-scheme: light)"
33+ toggle :
34+ icon : material/brightness-7
35+ name : Switch to dark mode
36+ - media : " (prefers-color-scheme: dark)"
37+ scheme : slate
38+ toggle :
39+ icon : material/brightness-4
40+ name : Switch to system preference
41+
42+ markdown_extensions :
43+ - admonition
44+ - pymdownx.details
45+ - toc :
46+ permalink : " #"
47+ - pymdownx.snippets
48+ - pymdownx.magiclink
49+ - attr_list
50+ - md_in_html
51+ - pymdownx.highlight :
52+ anchor_linenums : true
53+ - pymdownx.inlinehilite
54+ - pymdownx.superfences
55+ - markdown.extensions.attr_list
56+ - pymdownx.keys
57+ - pymdownx.tasklist :
58+ custom_checkbox : true
59+ - pymdownx.tabbed :
60+ alternate_style : true
You can’t perform that action at this time.
0 commit comments