File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 22gitpython
33linkify-it-py
44lxd-sphinx-extensions
5- myst-parser < 3.0.0
5+ myst-parser
66pyspelling
77sphinx
88sphinx-autobuild
Original file line number Diff line number Diff line change 5353
5454 with open (os .path .join ('.sphinx/deps/manpages/' , pagepath ), 'w' ) as mdfile :
5555 mdfile .write ('(' + page + ')=\n ' )
56+ line_block = False
5657 for line in content :
5758 if line .startswith ('###### Auto generated' ):
5859 continue
60+ elif line .startswith ('### Synopsis' ):
61+ mdfile .write ('## Synopsis\n ' )
62+ mdfile .write ('```{line-block}\n ' )
63+ line_block = True
5964 elif line .startswith ('## ' ):
6065 mdfile .write ('# `' + line [3 :].rstrip () + '`\n ' )
66+ elif line .startswith ('```' ):
67+ if line_block :
68+ mdfile .write ('```\n ' )
69+ line_block = False
70+ mdfile .write (line )
6171 elif line .startswith ('##' ):
72+ if line_block :
73+ mdfile .write ('```\n ' )
74+ line_block = False
6275 mdfile .write (line [1 :])
6376 else :
6477 mdfile .write (line )
You can’t perform that action at this time.
0 commit comments