# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
on_rtd=os.environ.get('READTHEDOCS',None)=='True'
...
...
@@ -131,14 +109,6 @@ html_js_files = [
'js/baidutongji.js',
]
# General configuration.
#with open("/home/docs/checkouts/readthedocs.org/user_builds/pythoncodingtime/envs/latest/lib/python3.7/site-packages/sphinxcontrib/disqus.py", "r") as file:
#with open("/home/docs/checkouts/readthedocs.org/user_builds/pythoncodingtime/envs/latest/lib/python3.7/site-packages/sphinxcontrib/disqus.py", "w") as file:
# file.write(content)
author='王炳明'
copyright='2020, Python编程时光'
exclude_patterns=['_build']
...
...
@@ -149,7 +119,7 @@ version = '1.0'
# Options for extensions.
disqus_shortname='iswbm'# Add this line to conf.py.