mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Update formatter to not include orange blocks all over docsite page
This commit is contained in:
parent
7e542d78a7
commit
6d2f003ceb
3 changed files with 11 additions and 6 deletions
|
@ -90,7 +90,8 @@ def html_ify(text):
|
|||
t = _BOLD.sub("<b>" + r"\1" + "</b>", t)
|
||||
t = _MODULE.sub("<span class='module'>" + r"\1" + "</span>", t)
|
||||
t = _URL.sub("<a href='" + r"\1" + "'>" + r"\1" + "</a>", t)
|
||||
t = _CONST.sub("<code>" + r"\1" + "</code>", t)
|
||||
#t = _CONST.sub("<code>" + r"\1" + "</code>", t)
|
||||
t = _CONST.sub(r"\1", t)
|
||||
return t
|
||||
|
||||
def json_ify(text):
|
||||
|
@ -123,9 +124,13 @@ def rst_ify(text):
|
|||
|
||||
t = _ITALIC.sub(r'*' + r"\1" + r"*", text)
|
||||
t = _BOLD.sub(r'**' + r"\1" + r"**", t)
|
||||
t = _MODULE.sub(r'``' + r"\1" + r"``", t)
|
||||
# mdehaan is disabling because he finds all the Sphinx orange distracting
|
||||
#t = _MODULE.sub(r'``' + r"\1" + r"``", t)
|
||||
t = _MODULE.sub(r"\1", t)
|
||||
t = _URL.sub(r"\1", t)
|
||||
t = _CONST.sub(r'``' + r"\1" + r"``", t)
|
||||
# ditto
|
||||
# t = _CONST.sub(r'``' + r"\1" + r"``", t)
|
||||
t = _CONST.sub(r"\1", t)
|
||||
|
||||
return t
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue