Skip to content

Commit f91cee2

Browse files
authored
Chore/zensical (#2784)
* Update theme so we can switch to zensical * Update build environment * Add back in some customization and add new code colors for light mode * Rework admonition coloring and tab controls nested in them * No blur on tab controls * Adjust tab control colors * More style cleanup * Update table theme * Add tab accents back * Docs: Update JS deps and rename mkdocs.yml to zensical.yml * Update dev instructions to mention Zensical and not Mkdocs * Update JS deps and tweak Mermaid diagrams
1 parent 7272a2d commit f91cee2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+760
-1515
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ on:
66
- '*'
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
914
jobs:
15+
1016
documents:
1117
strategy:
1218
max-parallel: 4
@@ -15,23 +21,19 @@ jobs:
1521

1622
runs-on: ubuntu-latest
1723

24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
1828
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 build
29-
python -m pip install -r requirements/docs.txt
30-
- name: Deploy documents
31-
run: |
32-
git config user.name ${{ secrets.GH_USER }}
33-
git config user.email "${{ secrets.GH_EMAIL }}"
34-
git remote add gh-token "https://${{ secrets.GH_TOKEN }}@github.com/facelessuser/pymdown-extensions.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
29+
- uses: actions/configure-pages@v5
30+
- uses: actions/checkout@v5
31+
- uses: actions/setup-python@v5
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
- run: pip install zensical
35+
- run: zensical -f zensical.yml build --clean
36+
- uses: actions/upload-pages-artifact@v4
37+
with:
38+
path: site
39+
- uses: actions/deploy-pages@v4

.pyspelling.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ matrix:
1212
- '.md-social__link'
1313
- 'span.keys'
1414
- '.arithmatex, .md-nav__link, .md-footer-custom-text, .md-source__repository, .headerlink, .md-icon'
15+
- pyspelling.filters.context:
16+
context_visible_first: true
17+
delimiters:
18+
- open: '(?<=\w)''s(?!\w)'
19+
close: '\b'
1520
- pyspelling.filters.url:
1621
sources:
1722
- site/**/*.html
@@ -44,6 +49,11 @@ matrix:
4449
- alt
4550
ignores:
4651
- ':matches(code, pre)'
52+
- pyspelling.filters.context:
53+
context_visible_first: true
54+
delimiters:
55+
- open: '(?<=\w)''s(?!\w)'
56+
close: '\b'
4757
- pyspelling.filters.url:
4858

4959
- name: javascript
@@ -63,6 +73,11 @@ matrix:
6373
# Ignore text between inline back ticks
6474
- open: '(?P<open>`+)'
6575
close: '(?P=open)'
76+
- pyspelling.filters.context:
77+
context_visible_first: true
78+
delimiters:
79+
- open: '(?<=\w)''s(?!\w)'
80+
close: '\b'
6681
- pyspelling.filters.url:
6782
default_encoding: utf-8
6883
sources:
@@ -105,6 +120,11 @@ matrix:
105120
# Ignore text between inline back ticks
106121
- open: '(?P<open>`+)'
107122
close: '(?P=open)'
123+
- pyspelling.filters.context:
124+
context_visible_first: true
125+
delimiters:
126+
- open: '(?<=\w)''s(?!\w)'
127+
close: '\b'
108128
- pyspelling.filters.url:
109129

110130
- name: python
@@ -136,6 +156,11 @@ matrix:
136156
# Ignore Python encoding string -*- encoding stuff -*-
137157
- open: '^ *-\*-'
138158
close: '-\*-$'
159+
- pyspelling.filters.context:
160+
context_visible_first: true
161+
delimiters:
162+
- open: '(?<=\w)''s(?!\w)'
163+
close: '\b'
139164
- pyspelling.filters.context:
140165
context_visible_first: true
141166
escapes: '\\[\\`]'

docs/src/dictionary/en-custom.txt

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ API
22
Accessors
33
Apr
44
Arithmatex
5-
Arithmatex's
65
Aspell
76
AttrList
87
Backoff
@@ -16,7 +15,6 @@ CVE
1615
Changelog
1716
Cloudflare
1817
CodeHilite
19-
CodeHilite's
2018
CodePen
2119
CommonMark
2220
CriticMarkup
@@ -31,7 +29,6 @@ ElementTree
3129
Emmet
3230
Emoji
3331
EmojiOne
34-
EmojiOne's
3532
Esc
3633
EscapeAll
3734
ExtraRawHTML
@@ -42,21 +39,15 @@ GFM
4239
GIF
4340
Gantt
4441
Gemoji
45-
Gemoji's
4642
Gendered
4743
GitHub
48-
GitHub's
4944
GitHubEmoji
5045
GitLab
51-
GitLab's
5246
Gitter
53-
Gruber's
5447
HeaderAnchor
55-
HeaderAnchor's
5648
Hunspell
5749
Inline
5850
InlineHilite
59-
InlineHilite's
6051
JPEG
6152
JSON
6253
Jan
@@ -69,7 +60,6 @@ LaTeX
6960
Limberg
7061
MERCHANTABILITY
7162
MagicLink
72-
MagicLink's
7363
Malus
7464
Mar
7565
MathJax
@@ -87,21 +77,20 @@ PHP
8777
PNG
8878
PNGs
8979
Pandoc
90-
Pandoc's
9180
Parsers
9281
PathConverter
93-
PathConverter's
9482
PathLike
9583
PlainHTML
9684
Pomaceous
9785
Postprocessor
9886
ProgressBar
87+
EmojiOne
9988
PyMdown
10089
PyPI
10190
PyYAML
10291
PyYaml
103-
PyYaml's
10492
Pygments
93+
Gruber
10594
Pymdownx
10695
Reindent
10796
Rosaceae
@@ -126,8 +115,6 @@ Tox
126115
Treeprocessor
127116
Treeprocessors
128117
Twemoji
129-
Twemoji's
130-
Twitter's
131118
UML
132119
UTF
133120
Uml
@@ -136,6 +123,7 @@ Validators
136123
Virtualenv
137124
Waylan
138125
YAML
126+
Zensical
139127
accessor
140128
backoff
141129
backrefs
@@ -171,15 +159,13 @@ eslint
171159
etree
172160
facelessuser
173161
formatter
174-
formatter's
175162
formatters
176163
frontmatter
177164
gantt
178165
gemoji
179166
gfm
180167
gforcada
181168
github
182-
highlighter's
183169
hostnames
184170
html
185171
incrementing
@@ -195,7 +181,6 @@ jQuery
195181
js
196182
kbd
197183
keymap
198-
lexer's
199184
linkafies
200185
linter
201186
lowercased
@@ -213,7 +198,6 @@ ned
213198
nl
214199
octocat
215200
online
216-
parser's
217201
parsers
218202
plugin
219203
plugins
@@ -278,7 +262,6 @@ tooltips
278262
tox
279263
uc
280264
un
281-
underscore's
282265
unescaping
283266
unicode
284267
unindented

docs/src/html/footer.html

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

0 commit comments

Comments
 (0)