mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Fix markdown tables on docs.podman.io
Sphinx with recommonmark cannot render markdown tables at all. There is a python package called `sphinx-markdown-tables` which adds the markdown table support to recommonmark. https://pypi.org/project/sphinx-markdown-tables/ By utilising this package we don't have to change our doc format. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
@ -2,3 +2,5 @@
|
|||||||
|
|
||||||
# use md instead of rst
|
# use md instead of rst
|
||||||
recommonmark
|
recommonmark
|
||||||
|
# needed for markdown table support
|
||||||
|
sphinx-markdown-tables
|
||||||
|
@ -28,9 +28,14 @@ author = "team"
|
|||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||||
# ones.
|
# ones.
|
||||||
extensions = [
|
extensions = [
|
||||||
"recommonmark",
|
'sphinx_markdown_tables',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
source_parsers = {
|
||||||
|
'.md': 'recommonmark.parser.CommonMarkParser',
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ["_templates"]
|
templates_path = ["_templates"]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user