Skip to content

Commit 9a99fb6

Browse files
authored
chore: migrate to Zensical static site generator (#744)
1 parent 556920a commit 9a99fb6

File tree

5 files changed

+35
-36
lines changed

5 files changed

+35
-36
lines changed

.github/contributing.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
Your feedback and pull requests are very welcome!
44

5-
We use MkDocs + Material for MkDocs to build the website.
5+
We use [Zensical](https://zensical.org/) to build the website.
66

7-
If you find a typo or other small textual error on a published page, select the "Edit this page" link at the bottom of the affected page.
8-
This link will take you to the right file on GitHub to make the edit and open a pull request.
7+
If you find a typo or other small textual error on a published page, select the "Edit this page" button near the top right of the page.
8+
This button takes you to the right file on GitHub to make the edit and open a pull request.
99

1010
For larger edits we recommend that you create a development environment, so that you can preview your work.
1111

@@ -25,25 +25,25 @@ To build the site locally on your workstation you'll need:
2525

2626
Follow these steps to setup your local development environment:
2727

28-
1. Install the latest version of Python 3.8
29-
1. Install Node 24 (npm 11 is bundled with Node 24)
30-
1. Install Git, if you haven't already
31-
1. Make a fork of this repository via GitHub (select the "Fork" button)
32-
1. Clone your fork repository with `git clone link_to_fork`
33-
1. Tell Git that `HonkingGoose/git-gosling` is the `upstream` remote: `git remote add upstream https://github.com/HonkingGoose/git-gosling.git`
34-
1. Make sure you have all the data from the `upstream` remote by doing a `git fetch --all --prune`
35-
1. Do `git merge upstream/main main` to update your local `main` branch
36-
1. Make you're sure on the local main branch with `git switch main` (do not make your own commits on the local `main` branch!)
37-
1. Create a new branch to do your work on with `git switch -c descriptive_name_for_branch`
38-
1. Run `npm ci` to download and install all the dependencies for this project with npm
39-
1. Run `make smoketest` to ensure everything works before you start your work
40-
1. You can get a live preview with `make serve`, this starts a local development server and opens a browser window, most changes can be seen live without having to restart the server
41-
1. Make your changes
42-
1. When you're done, run the Prettier formatter with `npm run prettier-fix`
43-
1. Use the `git add` command to stage your work and commit with `git commit -v`
44-
1. Run the smoketest with `make smoketest`
45-
1. Push your local feature branch to your GitHub fork with `git push --set-upstream origin descriptive_name_for_branch`
46-
1. Open a pull request by going to this projects repository and going to the "Pull requests" tab
47-
1. GitHub will show your recently pushed branches here, and suggest you make a pull request, if your branch does not show up, select the "New pull request" button
28+
1. Install the latest version of Python `3.8`.
29+
1. Install Node 24 (npm 11 is bundled with Node 24).
30+
1. Install Git, if you haven't already.
31+
1. Make a fork of this repository via GitHub (select the "Fork" button).
32+
1. Clone your fork repository with `git clone link_to_fork`.
33+
1. Tell Git that `HonkingGoose/git-gosling` is the `upstream` remote: `git remote add upstream https://github.com/HonkingGoose/git-gosling.git`.
34+
1. Make sure you have all the data from the `upstream` remote by doing a `git fetch --all --prune`.
35+
1. Do `git merge upstream/main main` to update your local `main` branch.
36+
1. Make you're sure on the local main branch with `git switch main` (do not make your own commits on the local `main` branch!).
37+
1. Create a new branch to do your work on with `git switch -c descriptive_name_for_branch`.
38+
1. Run `npm ci` to download and install all the dependencies for this project with npm.
39+
1. Run `make smoketest` to ensure everything works before you start your work.
40+
1. You can get a live preview with `make serve`, this starts a local development server and opens a browser window. Most changes can be seen live without having to restart the server.
41+
1. Make your changes.
42+
1. When you're done, run the Prettier formatter with `npm run prettier-fix`.
43+
1. Use the `git add` command to stage your work and commit with `git commit -v`.
44+
1. Run the smoketest with `make smoketest`.
45+
1. Push your local feature branch to your GitHub fork with `git push --set-upstream origin descriptive_name_for_branch`.
46+
1. Open a pull request by going to this projects repository and going to the "Pull requests" tab.
47+
1. GitHub will show your recently pushed branches here, and suggest you make a pull request, if your branch does not show up, select the "New pull request" button.
4848
1. Your pull request will get reviewed, and if the maintainers like it, it will get merged.
49-
1. After your pull request is merged, you can remove your local branch with `git branch -D branch_name`
49+
1. After your pull request is merged, you can remove your local branch with `git branch -D branch_name`.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ prepare:
88
npm run prepare
99

1010
build:
11-
mkdocs build --strict
11+
zensical build --strict
1212

1313
serve:
14-
mkdocs serve
14+
zensical serve
1515

1616
smoketest:
17-
mkdocs build --strict
17+
zensical build --strict
1818
npm run prettier

includes/abbreviations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- This file lists all abbreviations in the guide. -->
2-
<!-- https://squidfunk.github.io/mkdocs-material/reference/tooltips/?h=abbre#adding-abbreviations -->
2+
<!-- https://zensical.org/docs/setup/extensions/python-markdown/#abbreviations -->
33
<!-- Keep this list sorted from A-Z. -->
44

55
*[2FA]: Two-factor authentication

mkdocs.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,24 @@ theme:
3939
- navigation.prune
4040

4141
palette:
42+
# Palette toggle for automatic mode
4243
- media: "(prefers-color-scheme)"
4344
toggle:
44-
icon: material/brightness-auto
45+
icon: lucide/sun-moon
4546
name: Switch to light mode
4647

48+
# Palette toggle for light mode
4749
- media: "(prefers-color-scheme: light)"
4850
scheme: default
49-
primary: indigo
50-
accent: indigo
5151
toggle:
52-
icon: material/weather-night
52+
icon: lucide/sun
5353
name: Switch to dark mode
5454

55+
# Palette toggle for dark mode
5556
- media: "(prefers-color-scheme: dark)"
5657
scheme: slate
57-
primary: light blue
58-
accent: light blue
5958
toggle:
60-
icon: material/weather-sunny
59+
icon: lucide/moon
6160
name: Switch to system preference
6261

6362
markdown_extensions:

requirements.txt

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

0 commit comments

Comments
 (0)