@@ -84,19 +84,7 @@ def setup(app):
8484copyright = f"{ copyright_year } , VMware, Inc."
8585author = "VMware, Inc."
8686
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"
10088
10189# -- General configuration ---------------------------------------------------
10290
@@ -113,7 +101,6 @@ def setup(app):
113101 'sphinx_sitemap' , # Required for the sitemap
114102]
115103
116-
117104source_suffix = ".rst"
118105
119106# Add any paths that contain templates here, relative to this directory.
@@ -125,8 +112,7 @@ def setup(app):
125112exclude_patterns = [
126113 "_build" ,
127114 "Thumbs.db" ,
128- ".DS_Store" ,
129- "sitevars.rst" ,
115+ ".DS_Store"
130116]
131117
132118
@@ -140,7 +126,9 @@ def setup(app):
140126html_show_sourcelink = True # False on private repos; True on public repos
141127html_theme = 'furo'
142128html_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' ]
144132
145133html_theme_options = {
146134 "dark_css_variables" : {
@@ -170,23 +158,3 @@ def setup(app):
170158# pixels large. Favicons can be up to at least 228x228. PNG
171159# format is supported as well, not just .ico'
172160html_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