Skip to content

Commit a6f91a9

Browse files
authored
Use Zensical instead of MkDocs (#213)
1 parent 1993186 commit a6f91a9

File tree

16 files changed

+169
-86
lines changed

16 files changed

+169
-86
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,28 +100,54 @@ jobs:
100100
token: ${{ secrets.CODECOV_TOKEN }} # required
101101
fail_ci_if_error: false
102102

103-
docs_and_lint:
103+
lint:
104104
strategy:
105-
max-parallel: 2
105+
max-parallel: 1
106106
matrix:
107-
tox-env: [documents, lint]
107+
python-version: ['3.13']
108+
109+
env:
110+
TOXENV: lint
108111

109112
runs-on: ubuntu-latest
110113

111114
steps:
112115
- uses: actions/checkout@v4
113-
- name: Set up Python
116+
- name: Set up Python ${{ matrix.python-version }}
114117
uses: actions/setup-python@v5
115118
with:
116-
python-version: '3.13'
119+
python-version: ${{ matrix.python-version }}
120+
- name: Install dependencies
121+
run: |
122+
python -m pip install --upgrade pip setuptools tox
123+
- name: Lint
124+
run: |
125+
python -m tox
126+
127+
documents:
128+
strategy:
129+
max-parallel: 1
130+
matrix:
131+
python-version: ['3.13']
132+
133+
env:
134+
TOXENV: documents
135+
136+
runs-on: ubuntu-latest
137+
138+
steps:
139+
- uses: actions/checkout@v4
140+
- name: Set up Python ${{ matrix.python-version }}
141+
uses: actions/setup-python@v5
142+
with:
143+
python-version: ${{ matrix.python-version }}
117144
- name: Install Aspell
118-
if: matrix.tox-env == 'documents'
119145
run: |
120146
sudo apt-get install aspell aspell-en
121147
- name: Install dependencies
122148
run: |
123149
python -m pip install --upgrade pip
124-
python -m pip install --upgrade build setuptools tox
125-
- name: ${{ matrix.tox-env }}
150+
python -m pip install --upgrade build tox
151+
- name: Build documents
126152
run: |
127-
python -m tox -e ${{ matrix.tox-env }}
153+
python -m tox

.github/workflows/deploy.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,6 @@ on:
66
- '*'
77

88
jobs:
9-
10-
documents:
11-
strategy:
12-
max-parallel: 4
13-
matrix:
14-
python-version: [3.13]
15-
16-
runs-on: ubuntu-latest
17-
18-
steps:
19-
- uses: actions/checkout@v4
20-
with:
21-
fetch-depth: 0
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v5
24-
with:
25-
python-version: ${{ matrix.python-version }}
26-
- name: Install dependencies
27-
run: |
28-
python -m pip install --upgrade pip setuptools build
29-
python -m pip install -r requirements/docs.txt
30-
- name: Deploy documents
31-
run: |
32-
git config user.name facelessuser
33-
git config user.email "${{ secrets.GH_EMAIL }}"
34-
git remote add gh-token "https://${{ secrets.GH_TOKEN }}@github.com/facelessuser/pyspelling.git"
35-
git fetch gh-token && git fetch gh-token gh-pages:gh-pages
36-
python -m mkdocs gh-deploy -v --clean --remote-name gh-token
37-
git push gh-token gh-pages
38-
399
build:
4010
runs-on: ubuntu-latest
4111

.github/workflows/publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
documents:
11+
strategy:
12+
max-parallel: 4
13+
matrix:
14+
python-version: ['3.13']
15+
16+
runs-on: ubuntu-latest
17+
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
environment:
24+
name: github-pages
25+
url: ${{ steps.deployment.outputs.page_url }}
26+
27+
steps:
28+
- uses: actions/configure-pages@v5
29+
- uses: actions/checkout@v5
30+
- uses: actions/setup-python@v5
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- run: |
34+
python -m pip install --upgrade pip build
35+
python -m pip install -r requirements/docs.txt
36+
- run: |
37+
python -m zensical.main build -f zensical.yml --clean
38+
- uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: site
41+
- uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ __pycache__/
44
*.py[cod]
55
*$py.class
66

7+
manifest-css.json
8+
manifest-js.json
9+
710
# C extensions
811
*.so
912

.pyspelling.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ matrix:
2121
- title
2222
- alt
2323
ignores:
24-
- 'code, pre'
25-
- 'a:is(.magiclink-compare, .magiclink-commit, .magiclink-repository)'
26-
- 'span.keys'
24+
- 'code, pre, a.magiclink, span.keys, textarea, sub, sup'
2725
- '.MathJax_Preview, .md-nav__link, .md-footer-custom-text, .md-source__repository, .headerlink, .md-icon'
2826
- '.md-social__link'
2927
- pyspelling.filters.context:

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[![Donate via PayPal][donate-image]][donate-link]
2-
[![Build][github-ci-image]][github-ci-link]
32
[![Coverage Status][codecov-image]][codecov-link]
43
[![PyPI Version][pypi-image]][pypi-link]
54
[![PyPI - Python Version][python-image]][pypi-link]
@@ -32,8 +31,6 @@ MIT
3231
[aspell]: http://aspell.net/
3332
[hunspell]: https://hunspell.github.io/
3433

35-
[github-ci-image]: https://github.com/facelessuser/pyspelling/workflows/build/badge.svg
36-
[github-ci-link]: https://github.com/facelessuser/pyspelling/actions?query=workflow%3Abuild+branch%3Amaster
3734
[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/pyspelling/master.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333
3835
[codecov-link]: https://codecov.io/github/facelessuser/pyspelling
3936
[pypi-image]: https://img.shields.io/pypi/v/pyspelling.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333

docs/src/dictionary/en-custom.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Unescape
4444
Virtualenv
4545
XHTML
4646
YAML
47+
Zensical
4748
accessor
4849
backticks
4950
blockish

docs/theme/announce.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
<a href="{{ 'about/contributing/#contributing--support' | url }}">Sponsorship</a>
1+
<span class="twemoji">
2+
{% set icon = "material/alert-decagram" %}
3+
{% include ".icons/" ~ icon ~ ".svg" %}
4+
</span>
5+
<a href="{{ 'about/contributing/#become-a-sponsor' | url }}">Sponsorship</a>
26
is now available!
37
<span class="twemoji heart-throb">
4-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M7.655 14.916L8 14.25l.345.666a.752.752 0 01-.69 0zm0 0L8 14.25l.345.666.002-.001.006-.003.018-.01a7.643 7.643 0 00.31-.17 22.08 22.08 0 003.433-2.414C13.956 10.731 16 8.35 16 5.5 16 2.836 13.914 1 11.75 1 10.203 1 8.847 1.802 8 3.02 7.153 1.802 5.797 1 4.25 1 2.086 1 0 2.836 0 5.5c0 2.85 2.045 5.231 3.885 6.818a22.075 22.075 0 003.744 2.584l.018.01.006.003h.002z"/></svg>
8+
{% set icon = "octicons/heart-fill-16" %}
9+
{% include ".icons/" ~ icon ~ ".svg" %}
510
</span>

docs/theme/assets/pymdownx-extras/extra-835c322b67.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/theme/assets/pymdownx-extras/extra-835c322b67.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)