Fix doc/conf.py default tip
authorDmitriy Morozov <dmitriy@mrzv.org>
Mon, 06 Mar 2023 12:54:27 -0800
changeset 302 47512d24f907
parent 301 41d5aeb87565
Fix doc/conf.py
doc/conf.py
--- a/doc/conf.py	Mon Mar 06 12:48:28 2023 -0800
+++ b/doc/conf.py	Mon Mar 06 12:54:27 2023 -0800
@@ -27,11 +27,12 @@
 
 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 
               #'sphinx.ext.jsmath',  'ext.sprite_jsmath', 
-              'sphinx.ext.pngmath',
+              'sphinx.ext.imgmath',
               'ext.sfile']
 todo_include_todos = True
 
 jsmath_path = 'jsMath/easy/load.js'
+imgmath_embed = True        # work around relative path problem, https://github.com/sphinx-doc/sphinx/issues/10944
 
 # Base URI for sfile extension
 sfile_base_uri = 'http://hg.mrzv.org/Dionysus/file/tip/'
@@ -183,8 +184,8 @@
 # Grouping the document tree into LaTeX files. List of tuples
 # (source start file, target name, title, author, document class [howto/manual]).
 latex_documents = [
-  ('index', 'Dionysus.tex', ur'Dionysus Documentation',
-   ur'Dmitriy Morozov', 'manual'),
+  ('index', 'Dionysus.tex', u'Dionysus Documentation',
+   u'Dmitriy Morozov', 'manual'),
 ]
 
 # The name of an image file (relative to this directory) to place at the top of