Skip to content

Commit 10fe6de

Browse files
authored
Merge pull request plone#1237 from plone/restapi-maintenance
plone.restapi maintenance
2 parents 8e1cca2 + 2a1b55f commit 10fe6de

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

docs/conf.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@
4848
"sphinx.ext.todo",
4949
"sphinx_copybutton",
5050
"sphinx_sitemap",
51-
"sphinxcontrib.httpdomain",
52-
"sphinxcontrib.httpexample",
51+
"sphinxcontrib.httpdomain", # plone.restapi
52+
"sphinxcontrib.httpexample", # plone.restapi
5353
"sphinxcontrib.spelling",
5454
"sphinxext.opengraph",
55-
# plone.api
56-
'sphinx.ext.viewcode',
57-
'sphinx.ext.autosummary',
55+
"sphinx.ext.viewcode", # plone.api
56+
"sphinx.ext.autosummary", # plone.api
5857
]
5958

6059

@@ -141,8 +140,18 @@
141140
"linkify", # Identify “bare” web URLs and add hyperlinks.
142141
"colon_fence", # You can also use ::: delimiters to denote code fences,\
143142
# instead of ```.
143+
"substitution", # plone.restapi \
144+
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#substitutions-with-jinja2
144145
]
145146

147+
myst_substitutions = {
148+
"postman_basic_auth": "![](_static/img/postman_basic_auth.png)",
149+
"postman_headers": "![](_static/img/postman_headers.png)",
150+
"postman_request": "![](_static/img/postman_request.png)",
151+
"postman_response": "![](_static/img/postman_response.png)",
152+
"postman_retain_headers": "![](_static/img/postman_retain_headers.png)",
153+
"fawrench": '<span class="fa fa-wrench" style="font-size: 1.6em;"></span>',
154+
}
146155

147156
# -- Intersphinx configuration ----------------------------------
148157

0 commit comments

Comments
 (0)