mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Docs: fix sphinx error which can't find image path on windows
This commit is contained in:
@@ -1163,7 +1163,9 @@ class Image(Node):
|
||||
rel_path = os.path.normpath(static_path[rel_path_index:])
|
||||
|
||||
docstrings = '\n\n'
|
||||
docstrings += '.. figure:: %s\n' % rel_path
|
||||
# Sphinx (on windows) can't parse windows style paths when reading
|
||||
# .rst files. Therefore paths are written unix style.
|
||||
docstrings += '.. figure:: %s\n' % rel_path.replace('\\', '/')
|
||||
docstrings += ' :align: center\n\n\n'
|
||||
docstrings += '|\n\n'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user