File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2525
2626sys .path .insert (0 , str (Path (".." ).resolve (strict = True )))
2727
28+ THIS_DIR = Path (__file__ ).parent
29+
2830# -- General configuration ------------------------------------------------
2931
3032# If your documentation needs a minimal Sphinx version, state it here.
378380napoleon_use_param = True
379381napoleon_use_rtype = True
380382
381- rst_prolog = Path ( "prolog.rst" ).read_text (encoding = "utf-8" ) # Added to the beginning of every source file.
382- rst_epilog = Path ( "epilog.rst" ).read_text (encoding = "utf-8" ) # Added to the end of every source file.
383+ rst_prolog = ( THIS_DIR / "prolog.rst" ).read_text (encoding = "utf-8" ) # Added to the beginning of every source file.
384+ rst_epilog = ( THIS_DIR / "epilog.rst" ).read_text (encoding = "utf-8" ) # Added to the end of every source file.
383385
384386# Example configuration for intersphinx: refer to the Python standard library.
385387intersphinx_mapping = {
You can’t perform that action at this time.
0 commit comments