Improve syntax highlighting in MkDocs pages

The syntax of PHP code was not showing with different colors, but shown
as plain/text.
This commit is contained in:
Henrique Moody 2026-01-05 14:44:52 +01:00
commit 9cbb563a84
No known key found for this signature in database
GPG key ID: 221E9281655813A6
3 changed files with 15 additions and 0 deletions

View file

@ -5,5 +5,9 @@ build:
tools:
python: "3.12"
python:
install:
- requirements: docs/requirements.txt
mkdocs:
configuration: mkdocs.yml

3
docs/requirements.txt Normal file
View file

@ -0,0 +1,3 @@
mkdocs>=1.5.0
pymdown-extensions>=10.0

View file

@ -1,2 +1,10 @@
site_name: Respect\Validation
theme: readthedocs
markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.superfences