@@ -84,19 +84,7 @@ def setup(app):
84
84
copyright = f"{ copyright_year } , VMware, Inc."
85
85
author = "VMware, Inc."
86
86
87
- # Variables to pass into the docs from sitevars.txt for rst substitution
88
- with open ("sitevars.rst" ) as site_vars_file :
89
- site_vars = site_vars_file .read ().splitlines ()
90
-
91
- rst_prolog = """
92
- {}
93
- """ .format (
94
- "\n " .join (site_vars [:])
95
- )
96
-
97
- # Pull release from "release" in sitevars.rst
98
- release = [s for s in site_vars if "|release|" in s ][0 ].split (":: " )[1 ]
99
- version = release
87
+ version = "latest"
100
88
101
89
# -- General configuration ---------------------------------------------------
102
90
@@ -113,7 +101,6 @@ def setup(app):
113
101
'sphinx_sitemap' , # Required for the sitemap
114
102
]
115
103
116
-
117
104
source_suffix = ".rst"
118
105
119
106
# Add any paths that contain templates here, relative to this directory.
@@ -125,8 +112,7 @@ def setup(app):
125
112
exclude_patterns = [
126
113
"_build" ,
127
114
"Thumbs.db" ,
128
- ".DS_Store" ,
129
- "sitevars.rst" ,
115
+ ".DS_Store"
130
116
]
131
117
132
118
@@ -140,7 +126,9 @@ def setup(app):
140
126
html_show_sourcelink = True # False on private repos; True on public repos
141
127
html_theme = 'furo'
142
128
html_title = project
143
- html_baseurl = 'https://docs.saltproject.io/salt/user-guide/en/latest/'
129
+ html_baseurl = 'https://docs.saltproject.io/salt/user-guide/'
130
+ # Extends baseurl, in combination with version value
131
+ sitemap_locales = ['en' ]
144
132
145
133
html_theme_options = {
146
134
"dark_css_variables" : {
@@ -170,23 +158,3 @@ def setup(app):
170
158
# pixels large. Favicons can be up to at least 228x228. PNG
171
159
# format is supported as well, not just .ico'
172
160
html_favicon = "_static/img/SaltProject_Logomark_teal.png"
173
-
174
- ###
175
- # PDF Generation / LaTeX configuration
176
- ###
177
- # If generating PDFs in the future, should ensure external logo is copied local
178
- # https://gitlab.com/saltstack/open/salt-branding-guide/-/raw/master/logos/SaltProject_altlogo_teal.png?inline=true
179
- #latex_logo = "docs/_static/img/SaltProject_verticallogo_black.png"
180
-
181
- # Linux Biolinum, Linux Libertine: https://en.wikipedia.org/wiki/Linux_Libertine
182
- # Source Code Pro: https://github.com/adobe-fonts/source-code-pro/releases
183
- latex_elements = {
184
- "inputenc" : "" ,
185
- "utf8extra" : "" ,
186
- "preamble" : r"""
187
- \usepackage{fontspec}
188
- \setsansfont{Linux Biolinum O}
189
- \setromanfont{Linux Libertine O}
190
- \setmonofont{Source Code Pro}
191
- """ ,
192
- }
0 commit comments