Skip to content

Commit f02d191

Browse files
committed
Merge pull request #1709 from bettio/fix-doc
Doc: fix Sphinx config These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 553980f + 0430dac commit f02d191

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/conf.py.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ html_context['version'] = current_version
205205
html_context['versions'] = list()
206206
for version in versions:
207207
if ((version) == ('main')):
208-
html_context['versions'].append( (version + ' branch (unstable)', '/doc/' +version+ '/') )
208+
html_context['versions'].append( (version + ' branch (unstable)', '/' +version+ '/') )
209209
else:
210210
if (version not in release_list):
211-
html_context['versions'].append( (version + ' branch (unreleased)', '/doc/' +version+ '/') )
211+
html_context['versions'].append( (version + ' branch (unreleased)', '/' +version+ '/') )
212212
else:
213-
html_context['versions'].append( (version, '/doc/' +version+ '/') )
213+
html_context['versions'].append( (version, '/' +version+ '/') )
214214

215215
html_sidebars = {
216216
'**': [
@@ -220,8 +220,8 @@ html_sidebars = {
220220

221221
# POPULATE LINKS TO OTHER FORMATS/DOWNLOADS
222222
html_context['downloads'] = list()
223-
html_context['downloads'].append( ('pdf', '/doc/' +download_version+ '/pdf/' +project+ '-' +download_version+ '.pdf') )
224-
html_context['downloads'].append( ('epub', '/doc/' +download_version+ '/epub/' +project+ '-' +download_version+ '.epub') )
223+
html_context['downloads'].append( ('pdf', '/' +download_version+ '/pdf/' +project+ '-' +download_version+ '.pdf') )
224+
html_context['downloads'].append( ('epub', '/' +download_version+ '/epub/' +project+ '-' +download_version+ '.epub') )
225225

226226
# -- Options for PDF output -------------------------------------------------
227227

0 commit comments

Comments
 (0)