Skip to content

Commit 9cbb563

Browse files
committed
Improve syntax highlighting in MkDocs pages
The syntax of PHP code was not showing with different colors, but shown as plain/text.
1 parent 0fbe5d5 commit 9cbb563

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ build:
55
tools:
66
python: "3.12"
77

8+
python:
9+
install:
10+
- requirements: docs/requirements.txt
11+
812
mkdocs:
913
configuration: mkdocs.yml

docs/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mkdocs>=1.5.0
2+
pymdown-extensions>=10.0
3+

mkdocs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
site_name: Respect\Validation
22
theme: readthedocs
3+
4+
markdown_extensions:
5+
- pymdownx.highlight:
6+
anchor_linenums: true
7+
line_spans: __span
8+
pygments_lang_class: true
9+
- pymdownx.inlinehilite
10+
- pymdownx.superfences

0 commit comments

Comments
 (0)