1313import os
1414import sys
1515
16+ import tomli
17+
1618sys .path .insert (0 , os .path .abspath ('..' ))
1719
1820
1921# -- Project information -----------------------------------------------------
2022
21- def _get_project_meta () -> str :
22- import tomlkit # noqa: WPS433
23-
24- with open ('../pyproject.toml' ) as pyproject :
25- file_contents = pyproject .read ()
26-
27- return tomlkit .parse (file_contents )['tool' ]['poetry' ]
23+ def _get_project_meta ():
24+ with open ('../pyproject.toml' , mode = 'rb' ) as pyproject :
25+ return tomli .load (pyproject )['tool' ]['poetry' ]
2826
2927
3028pkg_meta = _get_project_meta ()
@@ -60,9 +58,6 @@ def _get_project_meta() -> str:
6058
6159 # Used to build graphs:
6260 'sphinxcontrib.mermaid' ,
63-
64- # Used to generate tooltips for our references:
65- 'hoverxref.extension' ,
6661]
6762
6863autoclass_content = 'class'
@@ -79,10 +74,6 @@ def _get_project_meta() -> str:
7974# https://pypi.org/project/sphinx-autodoc-typehints/
8075always_document_param_types = True
8176
82- # See https://sphinx-hoverxref.readthedocs.io/en/latest/configuration.html
83- hoverxref_auto_ref = True
84- hoverxref_domains = ['py' ]
85-
8677# Add any paths that contain templates here, relative to this directory.
8778templates_path = ['_templates' ]
8879
@@ -116,20 +107,12 @@ def _get_project_meta() -> str:
116107
117108# The theme to use for HTML and HTML Help pages. See the documentation for
118109# a list of builtin themes.
119- html_theme = 'sphinx_typlog_theme '
110+ html_theme = 'furo '
120111
121112# Theme options are theme-specific and customize the look and feel of a theme
122113# further. For a list of options available for each theme, see the
123114# documentation.
124- html_theme_options = {
125- 'logo_name' : 'returns' ,
126- 'description' : (
127- 'Make your functions return something meaningful, typed, and safe!'
128- ),
129- 'github_user' : 'dry-python' ,
130- 'github_repo' : 'returns' ,
131- 'color' : '#E8371A' ,
132- }
115+ html_theme_options = {}
133116
134117# Add any paths that contain custom static files (such as style sheets) here,
135118# relative to this directory. They are copied after the builtin static files,
@@ -138,15 +121,7 @@ def _get_project_meta() -> str:
138121
139122# Custom sidebar templates, must be a dictionary that maps document names
140123# to template names.
141- html_sidebars = {
142- '**' : [
143- 'logo.html' ,
144- 'globaltoc.html' ,
145- 'github.html' ,
146- 'searchbox.html' ,
147- 'moreinfo.html' ,
148- ],
149- }
124+ html_sidebars = {}
150125
151126
152127# -- Extension configuration -------------------------------------------------
0 commit comments