Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,13 @@
sys.path.insert(0, os.path.abspath('.'))

import sphinx_markdown_tables
import recommonmark
from recommonmark.transform import AutoStructify
from recommonmark.parser import CommonMarkParser

source_suffix = {
'.rst': 'restructuredtext',
'.txt': 'restructuredtext',
'.md': 'markdown',
}

source_parsers = {
'.md': CommonMarkParser,
}

# -- Project information -----------------------------------------------------

project = 'Kyuubi'
Expand All @@ -76,7 +69,7 @@
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx.ext.mathjax',
'recommonmark',
'myst_parser',
'sphinx_copybutton',
'sphinx_markdown_tables',
'sphinx_togglebutton',
Expand Down Expand Up @@ -126,13 +119,5 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_css_files = ["css/custom.css"]
htmlhelp_basename = 'Recommonmarkdoc'

github_doc_root = 'https://github.com/apache/kyuubi/tree/master/docs/'
def setup(app):
app.add_config_value('recommonmark_config', {
'url_resolver': lambda url: github_doc_root + url,
'auto_toc_tree_section': 'Contents',
'enable_eval_rst': True,
}, True)
app.add_transform(AutoStructify)
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

markdown==3.7
recommonmark==0.7.1
myst-parser==4.0.1
sphinx==8.1.3
sphinx-book-theme==1.1.3
sphinx-markdown-tables==0.0.17
Expand Down