Skip to content

Commit

Permalink
Fix markdown tables on docs.podman.io
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Paul Holzinger committed Nov 13, 2020
1 parent 0b1a60e commit 80b613d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

# use md instead of rst
recommonmark
# needed for markdown table support
sphinx-markdown-tables
7 changes: 6 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"recommonmark",
'sphinx_markdown_tables',
]

source_parsers = {
'.md': 'recommonmark.parser.CommonMarkParser',
}


# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

Expand Down

0 comments on commit 80b613d

Please sign in to comment.