Skip to content
Snippets Groups Projects
Commit 13efa19e authored by Anthony Borghi's avatar Anthony Borghi
Browse files

activation du highlight pour le code php

parent 83c8daf8
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ deploy-gtf-fr-documentation-dev :
# - pip install sphinx-markdown-parser
# - pip install myst-parser
# - pip install pymdown-extensions
- pip install sphinxcontrib-phpdomain
- sphinx-build -b html source build
- aws s3 cp build/ s3://$S3_BUCKET_NAME_DEV_fr/ --recursive
tags:
......
......@@ -10,6 +10,7 @@ pip install sphinx_rtd_theme==0.5.2
pip install sphinx-markdown-parser
pip install myst-parser
pip install pymdown-extensions
pip install sphinxcontrib-phpdomain
sphinx-build -b html source build
```
......
......@@ -3,6 +3,8 @@ import os
from sphinx_markdown_parser.parser import MarkdownParser
from datetime import datetime
#from recommonmark.transform import AutoStructify
from sphinx.highlighting import lexers
from pygments.lexers.web import PhpLexer
source_parsers = {
'.md': 'CommonMarkParser',
......@@ -139,3 +141,8 @@ html_theme_options = {
'includehidden': True,
'titles_only': False
}
lexers['php'] = PhpLexer(startinline=True, linenos=1)
lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1)
primary_domain = 'php'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment