mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 19:36:47 +00:00
chore: 更新sphinx相关配置,适应read the docs的更新 (#850)
根据read the docs在7月15日blog,进行此修改 https://about.readthedocs.com/blog/2024/07/addons-by-default/
This commit is contained in:
parent
9a4832f8bc
commit
ef2a79be60
13
docs/conf.py
13
docs/conf.py
@ -10,15 +10,14 @@
|
|||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
# import os
|
import os
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
project = 'DragonOS'
|
project = 'DragonOS'
|
||||||
copyright = '2022-2023, DragonOS Community'
|
copyright = '2022-2024, DragonOS Community'
|
||||||
author = 'longjin'
|
author = 'longjin'
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
@ -74,3 +73,11 @@ myst_enable_extensions = [
|
|||||||
"substitution",
|
"substitution",
|
||||||
"tasklist",
|
"tasklist",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# Define the canonical URL if you are using a custom domain on Read the Docs
|
||||||
|
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
|
||||||
|
|
||||||
|
# Tell Jinja2 templates the build is running on Read the Docs
|
||||||
|
if os.environ.get("READTHEDOCS", "") == "True":
|
||||||
|
html_context["READTHEDOCS"] = True
|
Loading…
x
Reference in New Issue
Block a user