Skip to content

Commit d41b3ff

Browse files
committed
Merge branch '6-dev' into classic-ui-myst-fixes
2 parents 905c4a9 + 10fe6de commit d41b3ff

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

docs/conf.py

Lines changed: 15 additions & 6 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

@@ -115,7 +114,7 @@
115114
"**/README.rst",
116115
"plone.restapi/.*",
117116
"plone.restapi/bin",
118-
"plone.restapi/docs/source/ideas",
117+
"plone.restapi/ideas",
119118
"plone.restapi/include",
120119
"plone.restapi/lib",
121120
"plone.restapi/news",
@@ -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)