Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Switcher Part 3 #47019

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ table.autosummary tr > td:first-child > p > a > code > span {

/* Prevent the the PyData theme Version Switcher from getting too large */
.version-switcher__menu {
max-height: 496px;
overflow: scroll;
max-height: 40rem;
overflow-y: scroll;
}

/* Hide the RTD version switcher since we are using PyData theme one */
Expand Down
15 changes: 7 additions & 8 deletions doc/source/custom_directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,14 +1256,6 @@ def pregenerate_example_rsts(
)


ray_prefix = "ray-"
min_version = "1.11.0"
repo_url = "https://github.com/ray-project/ray.git"
static_dir_name = "_static"
version_json_filename = "versions.json"
dereference_suffix = "^{}"


def generate_version_url(version):
return f"https://docs.ray.io/en/{version}/"

Expand All @@ -1273,6 +1265,13 @@ def generate_versions_json():
and generates the JSON needed for the version switcher
"""

ray_prefix = "ray-"
min_version = "1.11.0"
repo_url = "https://github.com/ray-project/ray.git"
static_dir_name = "_static"
version_json_filename = "versions.json"
dereference_suffix = "^{}"

version_json_data = []

# Versions that should always appear at the top
Expand Down
Loading