[doc] Support markdown tables in document website by recommonmark

pull/294/head
Leonard Xu 4 years ago committed by Leonard Xu
parent 698c0ccad0
commit b6ee80862e

@ -22,7 +22,7 @@ set -x
# step-1: install dependencies
apt-get update
apt-get -y install git rsync python3-pip python3-sphinx python3-git python3-stemmer python3-virtualenv python3-setuptools
python3 -m pip install myst-parser pygments sphinx-rtd-theme
python3 -m pip install pygments sphinx-rtd-theme recommonmark sphinx-markdown-tables
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
export REPO_NAME="${GITHUB_REPOSITORY##*/}"

@ -61,7 +61,8 @@ extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'myst_parser'
'recommonmark',
'sphinx-markdown-tables',
]
# Add any paths that contain templates here, relative to this directory.
@ -72,10 +73,10 @@ templates_path = ['_templates']
#
html_theme = 'sphinx_rtd_theme'
import myst_parser
from recommonmark.parser import CommonMarkParser
source_parsers = {
'.md': myst_parser
'.md': CommonMarkParser
}
source_suffix = ['.md']

Loading…
Cancel
Save