提交 f462b4b5 编写于 作者: 写代码的明哥's avatar 写代码的明哥

支持多版本构建

上级 908ce691
......@@ -32,3 +32,4 @@ tornado==6.0.3
urllib3==1.25.3
watchdog==0.9.0
sphinx-sitemap==2.2.0
sphinx-multiversion==0.2.4
......@@ -28,7 +28,7 @@ import os
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['chinese_search','sphinx.ext.mathjax', 'sphinx_sitemap']
extensions = ['chinese_search','sphinx.ext.mathjax', 'sphinx_sitemap', 'sphinx_multiversion']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
......@@ -133,3 +133,12 @@ html_js_files = [
html_baseurl = 'http://golang.iswbm.com'
html_extra_path = ["robots.txt"]
html_sidebars = {
'**': [
'versioning.html',
],
}
smv_latest_version = 'master'
sitemap_url_scheme = "{link}"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册