Skip to content

Commit cd141fa

Browse files
authored
Merge pull request #10 from geographika/zensical
Switch from mkdocs to zensical
2 parents 436faab + 8356977 commit cd141fa

11 files changed

Lines changed: 194 additions & 670 deletions

File tree

.github/workflows/deploy.app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Build and Deploy JavaScript application
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v6
2121
- name: Build website
2222
run: |
2323
npm install

.github/workflows/deploy.docs.yml

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
1-
name: Deploy documentation ⚙️
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
paths:
8-
- 'workshop/content/**'
9-
10-
defaults:
11-
run:
12-
working-directory: workshop/content
13-
14-
jobs:
15-
build:
16-
name: Build and Deploy Documentation
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-python@v2
21-
with:
22-
python-version: '3.x'
23-
- name: Install requirements 📦
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install -r requirements.txt
27-
- name: Deploy 📦
28-
run: mkdocs gh-deploy --strict --force --message 'update website via GitHub Actions'
1+
name: Deploy documentation ⚙️
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'workshop/content/**'
9+
10+
jobs:
11+
build:
12+
name: Build and Deploy Documentation
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-python@v6
17+
with:
18+
python-version: '3.x'
19+
- name: Install requirements 📦
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r workshop/content/requirements.txt
23+
- name: Build site 📦
24+
run: |
25+
zensical build --clean --strict
26+
mv site /tmp/
27+
- name: checkout gh-pages branch
28+
uses: actions/checkout@master
29+
with:
30+
ref: gh-pages
31+
- name: Deploy to GitHub Pages 📦
32+
run: |
33+
git checkout gh-pages
34+
git config --local user.email "action@github.com"
35+
git config --local user.name "GitHub Action"
36+
ls | grep -v ".nojekyll"| xargs rm -fr
37+
mv -f /tmp/site/* .
38+
git add .
39+
git commit -am "update website via GitHub Actions"
40+
git push

.github/workflows/tests.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: Test documentation ⚙️
2-
3-
on:
4-
pull_request:
5-
paths:
6-
- 'workshop/content/**'
7-
8-
defaults:
9-
run:
10-
working-directory: workshop/content
11-
12-
jobs:
13-
build:
14-
name: Test documentation build
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-python@v2
19-
with:
20-
python-version: '3.x'
21-
- name: Install requirements 📦
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install -r requirements.txt
25-
- name: Deploy 📦
26-
run: mkdocs build --strict
1+
name: Test documentation ⚙️
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'workshop/content/**'
7+
8+
defaults:
9+
run:
10+
working-directory: workshop/content
11+
12+
jobs:
13+
build:
14+
name: Test documentation build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v6
18+
- uses: actions/setup-python@v6
19+
with:
20+
python-version: '3.x'
21+
- name: Install requirements 📦
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
- name: Deploy 📦
26+
run: zensical build --clean --strict

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ the [Workshop environment setup](https://mapserver.github.io/getting-started-wit
2727

2828
### Building the workshop content locally
2929

30-
The workshop manual is powered by [MkDocs](https://www.mkdocs.org) which facilitates easy management
30+
The workshop manual is powered by [Zensical](https://zensical.org) which facilitates easy management
3131
of content and publishing. Workshop content is written in Markdown.
3232

3333

@@ -43,9 +43,9 @@ cd getting-started-with-mapserver/workshop/content
4343
# install required dependencies
4444
pip install -r requirements.txt
4545
# build the website
46-
mkdocs build
46+
zensical build
4747
# serve locally
48-
mkdocs serve # website is made available on http://localhost:8000
48+
zensical serve # website is made available on http://localhost:8000
4949
```
5050

5151
## Contributing updates
@@ -56,10 +56,4 @@ Changes to the GitHub repository result in an automated build and deploy of the
5656

5757
## Deploying to live site
5858

59-
Website updates are automatically published via GitHub Actions. To publish manually:
60-
61-
```bash
62-
# NOTE: you require access privileges to the GitHub repository
63-
# to publish live updates
64-
mkdocs gh-deploy -m 'add new page on topic x'
65-
```
59+
Website updates are automatically published via GitHub Actions.

workshop/content/docs/assets/javascripts/custom.js

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

0 commit comments

Comments
 (0)