|
29 | 29 | "sphinx.ext.doctest", |
30 | 30 | "sphinx_click", |
31 | 31 | "sphinx_substitution_extensions", |
32 | | - "sphinx_multiversion", |
33 | 32 | "sphinx_copybutton" |
34 | 33 | ] |
35 | 34 |
|
@@ -99,44 +98,13 @@ def get_index_url(): |
99 | 98 | "sidebar/scroll-start.html", |
100 | 99 | "sidebar/navigation.html", |
101 | 100 | "sidebar/scroll-end.html", |
102 | | - "sidebar/versions.html", |
103 | 101 | ] |
104 | 102 | } |
105 | 103 | html_theme_options = { |
106 | 104 | "sidebar_hide_name": True, |
107 | 105 | "top_of_page_button": "edit", |
108 | 106 | } |
109 | 107 |
|
110 | | -# -- sphinx-multiversion configuration ------------------------------------- |
111 | | -# This replaces the custom bash script approach with built-in functionality |
112 | | - |
113 | | -# Tags pattern for html_context["versions"] |
114 | | -smv_tag_whitelist = r"$^" # Ignore all tags |
115 | | -smv_branch_whitelist = r"^(main|release-\d+\.\d+)$" # Include all release branches and main |
116 | | -smv_remote_whitelist = r'^(origin|upstream)$' # Include branches from origin and upstream |
117 | | -smv_prefer_remote_refs = True |
118 | | -# smv_released_pattern = r"^v[0-9]+\.[0-9]+\.[0-9]+$" # Tags that are considered releases |
119 | | -smv_outputdir_format = "{ref.name}" # Directory name format |
120 | | - |
121 | | -# Ensure static files are copied to all versions |
122 | | -smv_static_files = [ |
123 | | - "_static/**", |
124 | | - "_templates/**", |
125 | | -] |
126 | | - |
127 | | -# Ensure RST directives are processed |
128 | | -smv_include_patterns = [ |
129 | | - "*.md", |
130 | | - "*.rst", |
131 | | - "*.txt", |
132 | | -] |
133 | | - |
134 | | -# Patterns for the versions panel |
135 | | -html_context = { |
136 | | - "display_lower": True, # Display lower versions at the bottom of the menu |
137 | | - "deploy_url": os.getenv("DEPLOY_URL", "https://docs.jumpstarter.dev"), # Get Netlify URL from environment variable |
138 | | -} |
139 | | - |
140 | 108 | # sphinx-copybutton config |
141 | 109 | copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: " |
142 | 110 | copybutton_prompt_is_regexp = True |
|
0 commit comments