From dcff96ed27146109dd24f3ad9795a8586c1ab95c Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Sun, 21 Jun 2020 23:49:22 -0700 Subject: [PATCH] [Doc] Fix rendering of Markdown docs, e.g. R doc (#5821) --- doc/conf.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index f07678f38..d17f9594a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -15,7 +15,6 @@ from subprocess import call from sh.contrib import git import urllib.request from urllib.error import HTTPError -from recommonmark.parser import CommonMarkParser import sys import re import os @@ -89,7 +88,8 @@ extensions = [ 'sphinx.ext.napoleon', 'sphinx.ext.mathjax', 'sphinx.ext.intersphinx', - 'breathe' + 'breathe', + 'recommonmark' ] graphviz_output_format = 'png' @@ -104,10 +104,6 @@ breathe_default_project = "xgboost" # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] -source_parsers = { - '.md': CommonMarkParser, -} - # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: source_suffix = ['.rst', '.md']