File tree Expand file tree Collapse file tree 5 files changed +25
-11
lines changed
Expand file tree Collapse file tree 5 files changed +25
-11
lines changed Original file line number Diff line number Diff line change 2020 uses : sphinx-notes/pages@v3
2121 with :
2222 documentation_path : ./docs/source
23+ cache : true
Original file line number Diff line number Diff line change 11furo
22myst-parser
3+ pydata-sphinx-theme
34sphinx-autoapi
45sphinx-autodoc-typehints
56sphinx-copybutton
Original file line number Diff line number Diff line change 1+ html [data-theme = "dark" ] img {
2+ filter : none;
3+ }
4+ html [data-theme = "dark" ] .bd-content img : not (.only-dark ): not (.dark-light ) {
5+ background : unset;
6+ }
Original file line number Diff line number Diff line change 6060# html_logo = "_static/logo.png" # Optional: Add a logo file to _static/
6161# html_favicon = "_static/favicon.ico" # Optional: Add a favicon
6262html_static_path = ["_static" ]
63+ html_css_files = [
64+ "css/darkmode-image.css" ,
65+ ]
6366
6467# Napoleon config
6568# napoleon_google_docstring = True
Original file line number Diff line number Diff line change 66__version__ = ""
77_authors = ""
88
9- project_root = Path (__file__ ).parent .parent
10- with open (project_root / "pyproject.toml" , "rb" ) as f :
11- data = tomllib .load (f )
9+ package_src = Path (__file__ ).parent
10+ # _version = package_src / "VERSION"
11+ _pyproject = package_src .parent / "pyproject.toml"
12+ if _pyproject .is_file ():
13+ with open (_pyproject , "rb" ) as f :
14+ data = tomllib .load (f )
1215
13- if "version" in data ["project" ]:
14- __version__ = data ["project" ]["version" ]
15- else :
16- raise ValueError ("Version not found in pyproject.toml" )
16+ if "version" in data ["project" ]:
17+ __version__ = data ["project" ]["version" ]
18+ else :
19+ raise ValueError ("Version not found in pyproject.toml" )
1720
18- if "authors" in data ["project" ]:
19- _authors = "," .join ([x ["name" ] for x in data ["project" ]["authors" ]])
20- else :
21- raise ValueError ("Version not found in pyproject.toml" )
21+ if "authors" in data ["project" ]:
22+ _authors = "," .join ([x ["name" ] for x in data ["project" ]["authors" ]])
23+ else :
24+ raise ValueError ("Version not found in pyproject.toml" )
You can’t perform that action at this time.
0 commit comments