Skip to content

Commit 94f417d

Browse files
docs: added a deploy to github pages workflow
This workflow builds the documentation using `mkdocs` and then publishes it onto the github pages site.
1 parent a080aa7 commit 94f417d

File tree

3 files changed

+92
-12
lines changed

3 files changed

+92
-12
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Deploy to GitHub Pages
2+
# Updates the GitHub pages website with the changes made in the last push.
3+
# Takes in all markdown files and images of the repository and turns that
4+
# into HTML to present on the GitHub pages website. Used for documentation.
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches: [main, master, release, development]
10+
paths: [".github/workflows/push--deploy-github-pages.yaml", "mkdocs.yml", "docs/**"]
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: github-pages
19+
cancel-in-progress: false
20+
21+
jobs:
22+
23+
build:
24+
name: Build site
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/[email protected]
29+
- name: Setup Pages
30+
uses: actions/[email protected]
31+
- name: Set up Python
32+
uses: actions/setup-python@v4
33+
with: { python-version: '3.x' }
34+
- name: Install pip
35+
run: python -m pip install --upgrade pip
36+
# - name: Install MkDocs and dependencies
37+
# run: pip install mkdocs mkdocs-shadcn mkdocstrings-python Pygments pymdown-extensions
38+
- name: Install MkDocs and dependencies
39+
run: >
40+
pip install mkdocs==1.6.1 mkdocs-shadcn==0.9.8 Pygments==2.19.2
41+
mkdocstrings-python==2.0.1 pymdown-extensions==10.19.1
42+
click==8.3.1 ghp-import==2.1.0 jinja2==3.1.6 markdown==3.10
43+
markupsafe==3.0.3 mergedeep==1.3.4 mkdocs-get-deps==0.2.0
44+
pathspec==0.12.1 pyyaml-env-tag==1.1 pyyaml==6.0.3 bottle==0.13.4
45+
watchdog==6.0.0 gitpython==3.1.45 mkdocstrings==1.0.0 griffe==1.15.0
46+
mkdocs-autorefs==1.4.3 python-dateutil==2.9.0.post0 gitdb==4.0.12
47+
smmap==5.0.2 colorama==0.4.6 platformdirs==4.5.1 six==1.17.0
48+
- name: Build site with MkDocs
49+
run: mkdocs --verbose --color build --site-dir ./_site
50+
- name: Upload artifact
51+
uses: actions/[email protected]
52+
with: { path: ./_site }
53+
54+
deploy:
55+
name: Deploy site
56+
environment:
57+
name: github-pages
58+
url: ${{ steps.deployment.outputs.page_url }}
59+
runs-on: ubuntu-latest
60+
needs: build
61+
steps:
62+
- name: Deploy to GitHub Pages
63+
id: deployment
64+
uses: actions/[email protected]

mkdocs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
site_name: Slyde
2+
site_author: Tygo van den Hurk
3+
site_url: https://tygo-van-den-hurk.github.io/Slyde/
4+
site_description: Make beautifully animated Slydes and presentations from XML with ease!
5+
6+
repo_url: https://github.com/Tygo-van-den-Hurk/Slyde
7+
8+
theme:
9+
name: shadcn
10+
icon: assets/logo-standalone.svg
11+
favicon: assets/logo-standalone.svg
12+
show_title: true
13+
show_stargazers: false
14+
pygments_style:
15+
light: github-light
16+
dark: github-dark
17+
highlightjs: false
18+
show_datetime: true
19+
color_mode: auto
20+
21+
plugins:
22+
- search
23+
- mkdocstrings
24+
25+
markdown_extensions:
26+
- fenced_code
27+
- codehilite
28+
- attr_list

typedoc.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)