Skip to content

Commit 0430dac

Browse files
committed
Doc: fix Sphinx config
There is no more "/doc" path prefix: every version is published on the root. Signed-off-by: Davide Bettio <davide@uninstall.it>
1 parent 553980f commit 0430dac

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)