Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
doc_interne_developpement
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Documentation
doc_interne_developpement
Commits
13efa19e
Commit
13efa19e
authored
2 years ago
by
Anthony Borghi
Browse files
Options
Downloads
Patches
Plain Diff
activation du highlight pour le code php
parent
83c8daf8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
README.md
+1
-0
1 addition, 0 deletions
README.md
source/conf.py
+7
-0
7 additions, 0 deletions
source/conf.py
with
9 additions
and
0 deletions
.gitlab-ci.yml
+
1
−
0
View file @
13efa19e
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
13efa19e
...
...
@@ -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
```
...
...
This diff is collapsed.
Click to expand it.
source/conf.py
+
7
−
0
View file @
13efa19e
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment