Skip to content

Commit 063e626

Browse files
authored
update doc tooling to Zensical (#44)
* update to Zensical * update CI
1 parent 656e40c commit 063e626

7 files changed

Lines changed: 57 additions & 46 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,22 @@ jobs:
1616
- name: Install requirements 📦
1717
run: |
1818
python3 -m pip install --upgrade pip
19-
pip3 install mkdocs
20-
- name: Deploy 📦
21-
run: mkdocs gh-deploy --force -m 'update website'
19+
pip3 install zensical
20+
- name: Build site 📦
21+
run: |
22+
zensical build --clean --strict
23+
mv site /tmp/
24+
- name: checkout gh-pages branch
25+
uses: actions/checkout@master
26+
with:
27+
ref: gh-pages
28+
- name: Deploy to GitHub Pages 📦
29+
run: |
30+
git checkout gh-pages
31+
git config --global user.email "tomkralidis@gmail.com"
32+
git config --global user.name "Tom Kralidis"
33+
ls | grep -v ".nojekyll"| xargs rm -fr
34+
mv -f /tmp/site/* .
35+
git add .
36+
git commit -am "update website via GitHub Actions"
37+
git push

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
name: Test website build
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-python@v2
13+
- uses: actions/checkout@master
14+
- uses: actions/setup-python@v5
1515
with:
1616
python-version: '3.x'
1717
- name: Install requirements 📦
1818
run: |
1919
python3 -m pip install --upgrade pip
20-
pip3 install mkdocs
20+
pip3 install zensical
2121
- name: Test build 📦
22-
run: mkdocs build --strict
22+
run: zensical build --clean --strict

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# pygeoapi.io website
55

66
The pygeoapi [website](https://pygeoapi.io) is powered
7-
by [MkDocs](https://www.mkdocs.org) which facilitates easy management
7+
by [Zensical](https://zensical.org) which facilitates easy management
88
of website content and publishing.
99

1010
## Setting up the website environment locally
@@ -19,9 +19,9 @@ cd pygeoapi.io
1919
# install required dependencies
2020
pip3 install -r requirements.txt
2121
# build the website
22-
mkdocs build
22+
zensical build --clean --strict
2323
# serve locally
24-
mkdocs serve # website is made available on http://localhost:8000/
24+
zensical serve # website is made available on http://localhost:8000/
2525
```
2626

2727
## Content management workflow
@@ -42,10 +42,10 @@ The basic workflow is as follows:
4242

4343
```bash
4444
vi docs/new-page.md # add content
45-
vi mkdocs.yml # add to navigation section
45+
vi zensical.toml # add to navigation section
4646
# edit any other files necessary which may want to link to the new page
4747
git add docs/new-page.md
48-
git commit -m 'add new page on topic x' docs/new-page.md mkdocs.yml
48+
git commit -m 'add new page on topic x' docs/new-page.md zensical.toml
4949
git push origin master
5050
```
5151

@@ -59,10 +59,4 @@ git push origin master
5959

6060
## Publishing updates to the live site
6161

62-
Website updates are automatically published via GitHub Actions, but just in case:
63-
64-
```bash
65-
# NOTE: you require access privileges to the GitHub repository
66-
# to publish live updates
67-
mkdocs gh-deploy -m 'add new page on topic x'
68-
```
62+
Website updates are automatically published via GitHub Actions.

mkdocs.yml

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

pygeoapi.io-theme/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<a rel="license" title="This work is licensed under a Creative Commons Attribution 4.0 International License" href="https://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a>
5050
{{ config.copyright }}
5151
<a title="Open Hub project report for pygeoapi" href="https://www.openhub.net/p/pygeoapi"><img src="https://www.openhub.net/p/pygeoapi/widgets/project_thin_badge.gif"/></a>
52-
<br/>Powered by <a href="https://www.mkdocs.org/">MkDocs</a>
52+
<br/>Powered by <a href="https://zensical.org/">Zensical</a>
5353
</footer>
5454
</body>
5555
</html>

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mkdocs
1+
zensical

zensical.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[project]
2+
site_name = "pygeoapi"
3+
site_description = "pygeoapi: an OGC API to geospatial data"
4+
site_author = "the pygeoapi community"
5+
copyright = "© 2019 - 2026 pygeoapi development team"
6+
site_url = "https://pygeoapi.io"
7+
repo_url = "https://github.com/geopython/pygeoapi.io"
8+
docs_dir = "docs"
9+
directory_urls = true
10+
11+
nav = [
12+
{ "Home" = "index.md"},
13+
{ "Community" = "community/index.md"},
14+
{ "Documentation" = "documentation.md"},
15+
{ "Demo" = "https://demo.pygeoapi.io"},
16+
{ "Code" = "https://github.com/geopython/pygeoapi"},
17+
{ "Download" = "download.md"},
18+
{ "Development" = "development/index.md"}
19+
]
20+
21+
22+
[project.theme]
23+
custom_dir = "pygeoapi.io-theme"
24+
25+
[project.extra]
26+
homepage = "https://pygeoapi.io"

0 commit comments

Comments
 (0)