diff website/www/conf.py @ 7502:5bac0a0afb7f

Eliminate error w/ permalink setting for sphinx 5+; enable opesearch opensearch enabled for website build only. Not local docs.
author John Rouillard <rouilj@ieee.org>
date Tue, 20 Jun 2023 00:53:39 -0400
parents 06a2f79389b6
children 4376d8c19b2a
line wrap: on
line diff
--- a/website/www/conf.py	Sun Jun 18 18:40:25 2023 -0400
+++ b/website/www/conf.py	Tue Jun 20 00:53:39 2023 -0400
@@ -169,8 +169,11 @@
 #html_additional_pages = {}
 
 # disable permalinks
-html_add_permalinks = ''
-html_permalinks = False  # when sphinx > 3.5 is used.
+from sphinx import version_info
+if version_info < (3,5,0):
+    html_add_permalinks = ''
+else:
+    html_permalinks = False  # when sphinx > 3.5 is used.
 
 # If false, no module index is generated.
 #html_use_modindex = True
@@ -187,7 +190,7 @@
 # If true, an OpenSearch description file will be output, and all pages will
 # contain a <link> tag referring to it.  The value of this option must be the
 # base URL from which the finished HTML is served.
-html_use_opensearch = ''
+html_use_opensearch = html_baseurl
 
 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
 #html_file_suffix = ''

Roundup Issue Tracker: http://roundup-tracker.org/