[doc] Support markdown tables in document website by myst-parser

pull/294/head
Leonard Xu 4 years ago committed by Leonard Xu
parent b6ee80862e
commit 846665a44c

@ -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 pygments sphinx-rtd-theme recommonmark sphinx-markdown-tables
python3 -m pip install myst-parser pygments sphinx-rtd-theme
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
export REPO_NAME="${GITHUB_REPOSITORY##*/}"

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

Loading…
Cancel
Save