|
28 | 28 | # Add any Sphinx extension module names here, as strings. They can be |
29 | 29 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
30 | 30 | # ones. |
31 | | -extensions = ['chinese_search','sphinx.ext.mathjax', 'sphinx_sitemap'] |
| 31 | +extensions = ['chinese_search','sphinx.ext.mathjax', 'sphinx_sitemap', 'sphinx_multiversion'] |
32 | 32 |
|
33 | 33 | # Add any paths that contain templates here, relative to this directory. |
34 | 34 | templates_path = ['_templates'] |
|
127 | 127 | sys.path.append(os.path.abspath(_exts)) |
128 | 128 |
|
129 | 129 | html_js_files = [ |
130 | | - 'js/readmore.js', |
| 130 | + 'js/readmore.js', |
131 | 131 | 'js/baidutongji.js', |
132 | 132 | ] |
133 | 133 |
|
134 | | -# General configuration. |
135 | | -with open("/home/docs/checkouts/readthedocs.org/user_builds/pythoncodingtime/envs/latest/lib/python3.7/site-packages/sphinxcontrib/disqus.py", "r") as file: |
136 | | - content = file.read() |
137 | | - content=content.replace("sphinx.application", "sphinx.errors") |
138 | | - |
139 | | -with open("/home/docs/checkouts/readthedocs.org/user_builds/pythoncodingtime/envs/latest/lib/python3.7/site-packages/sphinxcontrib/disqus.py", "w") as file: |
140 | | - file.write(content) |
141 | 134 |
|
142 | 135 | author = '王炳明' |
143 | | -copyright = '2020, Python编程时光' |
| 136 | +copyright = '2020-2024, Python编程时光' |
144 | 137 | exclude_patterns = ['_build'] |
145 | | -extensions = ['sphinxcontrib.disqus'] # Add to this list. |
146 | 138 | master_doc = 'index' |
147 | 139 | project = 'Python编程时光' |
148 | | -release = '1.0' |
149 | | -version = '1.0' |
150 | 140 |
|
151 | 141 | # Options for extensions. |
152 | | -disqus_shortname = 'iswbm' # Add this line to conf.py. |
153 | | -html_baseurl = 'http://pythontime.iswbm.com' |
| 142 | +html_baseurl = 'https://magic.iswbm.com' |
154 | 143 | html_extra_path = ["robots.txt"] |
| 144 | + |
| 145 | +html_sidebars = { |
| 146 | + '**': [ |
| 147 | + 'versioning.html', |
| 148 | + ], |
| 149 | +} |
| 150 | +smv_latest_version = 'master' |
| 151 | +sitemap_url_scheme = "{link}" |
0 commit comments