File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Changes regarding the Sphinx plot directive
2+ ```````````````````````````````````````````
3+
4+ Fixed a bug in the Sphinx plot directive (.. plot:: path/to/plot_script.py)
5+ where the source Python file was not being found relative to the directory of
6+ the file containing the directive. In addition, its behavior was changed to
7+ make it more streamlined with other Sphinx commands.
8+
9+ Documents that were using this feature may need to adjust the path argument
10+ given to the plot directive. Two options are available:
11+
12+ 1. Use absolute paths to find the file relative the ``plot_basedir `` (which
13+ defaults to the directory where conf.py is).
14+ 2. Use relative paths and the file is found relative to the directory of the
15+ file containing the directive.
16+
17+ Before this change, relative paths were resolved relative to the source
18+ directory (where conf.py is) and absolute paths were pointing to files in the
19+ host system.
You can’t perform that action at this time.
0 commit comments