1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update formatter to not include orange blocks all over docsite page

This commit is contained in:
Michael DeHaan 2012-10-10 21:25:19 -04:00
parent 7e542d78a7
commit 6d2f003ceb
3 changed files with 11 additions and 6 deletions

View file

@ -2,12 +2,12 @@
.\" Title: ansible .\" Title: ansible
.\" Author: [see the "AUTHOR" section] .\" Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/> .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 10/08/2012 .\" Date: 10/10/2012
.\" Manual: System administration commands .\" Manual: System administration commands
.\" Source: Ansible 0.8 .\" Source: Ansible 0.8
.\" Language: English .\" Language: English
.\" .\"
.TH "ANSIBLE" "1" "10/08/2012" "Ansible 0\&.8" "System administration commands" .TH "ANSIBLE" "1" "10/10/2012" "Ansible 0\&.8" "System administration commands"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * set default formatting .\" * set default formatting
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------

File diff suppressed because one or more lines are too long

View file

@ -90,7 +90,8 @@ def html_ify(text):
t = _BOLD.sub("<b>" + r"\1" + "</b>", t) t = _BOLD.sub("<b>" + r"\1" + "</b>", t)
t = _MODULE.sub("<span class='module'>" + r"\1" + "</span>", t) t = _MODULE.sub("<span class='module'>" + r"\1" + "</span>", t)
t = _URL.sub("<a href='" + r"\1" + "'>" + r"\1" + "</a>", 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 return t
def json_ify(text): def json_ify(text):
@ -123,9 +124,13 @@ def rst_ify(text):
t = _ITALIC.sub(r'*' + r"\1" + r"*", text) t = _ITALIC.sub(r'*' + r"\1" + r"*", text)
t = _BOLD.sub(r'**' + r"\1" + r"**", t) 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 = _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 return t