Browse Source

doc: note to self: look at the diff before commiting.

pull/454/head
Vladimír Vondruš 6 years ago
parent
commit
d4f4f845d9
  1. 3
      doc/conf.py

3
doc/conf.py

@ -41,9 +41,6 @@ VERSION_LABELS = True
_magnum_colors_src = re.compile(r"""<span class="mh">0x(?P<hex>[0-9a-f]{6})(?P<alpha>[0-9a-f]{2})?(?P<literal>_s?rgba?f?)</span>""") _magnum_colors_src = re.compile(r"""<span class="mh">0x(?P<hex>[0-9a-f]{6})(?P<alpha>[0-9a-f]{2})?(?P<literal>_s?rgba?f?)</span>""")
_magnum_colors_dst = r"""<span class="mh">0x\g<hex>\g<alpha>\g<literal><span class="m-code-color" style="background-color: #\g<hex>;"></span></span>""" _magnum_colors_dst = r"""<span class="mh">0x\g<hex>\g<alpha>\g<literal><span class="m-code-color" style="background-color: #\g<hex>;"></span></span>"""
#def _add_color_swatch(str):
#return
M_CODE_FILTERS_POST = { M_CODE_FILTERS_POST = {
'C++': lambda str: _magnum_colors_src.sub(_magnum_colors_dst, str) 'C++': lambda str: _magnum_colors_src.sub(_magnum_colors_dst, str)
} }

Loading…
Cancel
Save