Skip to content

Commit 26b03f6

Browse files
committed
docs: try python superfences for better code blocks
1 parent 6e45c2b commit 26b03f6

3 files changed

Lines changed: 40 additions & 2 deletions

File tree

.readthedocs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ build:
1111
tools:
1212
python: "3.11"
1313

14+
python:
15+
install:
16+
- requirements: ./requirements.txt
17+
1418
# Build documentation in the docs/ directory with mkdocs
1519
mkdocs:
1620
configuration: mkdocs.yml

mkdocs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ theme:
1313
docs_dir: docs
1414

1515
markdown_extensions:
16-
- fenced_code
1716
- tables
18-
17+
- pymdownx.highlight:
18+
anchor_linenums: true
19+
line_spans: __span
20+
pygments_lang_class: true
21+
- pymdownx.inlinehilite
22+
- pymdownx.snippets
23+
- pymdownx.superfences

requirements.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
babel==2.16.0
2+
certifi==2024.8.30
3+
charset-normalizer==3.4.0
4+
click==8.1.7
5+
colorama==0.4.6
6+
ghp-import==2.1.0
7+
idna==3.10
8+
Jinja2==3.1.4
9+
Markdown==3.7
10+
MarkupSafe==3.0.2
11+
mergedeep==1.3.4
12+
mkdocs==1.6.1
13+
mkdocs-get-deps==0.2.0
14+
mkdocs-material==9.5.44
15+
mkdocs-material-extensions==1.3.1
16+
packaging==24.2
17+
paginate==0.5.7
18+
pathspec==0.12.1
19+
platformdirs==4.3.6
20+
Pygments==2.18.0
21+
pymdown-extensions==10.12
22+
python-dateutil==2.9.0.post0
23+
PyYAML==6.0.2
24+
pyyaml_env_tag==0.1
25+
regex==2024.11.6
26+
requests==2.32.3
27+
six==1.16.0
28+
urllib3==2.2.3
29+
watchdog==6.0.0

0 commit comments

Comments
 (0)