mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:45:08 +08:00
[docs] Add link master <-> latest via sphinx version warnings (#8010)
This commit is contained in:
@@ -63,8 +63,21 @@ extensions = [
|
||||
'sphinx-jsonschema',
|
||||
'sphinx_gallery.gen_gallery',
|
||||
'sphinx_copybutton',
|
||||
'versionwarning.extension',
|
||||
]
|
||||
|
||||
versionwarning_messages = {
|
||||
"master": (
|
||||
"This document is for the master branch. "
|
||||
'Visit the <a href="/en/latest/">latest pip release documentation here</a>.'
|
||||
),
|
||||
"latest": (
|
||||
"This document is for the latest pip release. "
|
||||
'Visit the <a href="/en/master/">master branch documentation here</a>.'
|
||||
),
|
||||
}
|
||||
|
||||
versionwarning_body_selector = "div.document"
|
||||
sphinx_gallery_conf = {
|
||||
"examples_dirs": ["../examples", "tune/guides"], # path to example scripts
|
||||
# path where to save generated examples
|
||||
|
||||
Reference in New Issue
Block a user