FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-python-docs-theme/python_docs_theme/__init__.py at main · spsforks/python-python-docs-theme · GitHub
spsforks
python-python-docs-theme
Repository navigation
Code
Pull requests
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-python-docs-theme
/
python_docs_theme
/
__init__.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (16 loc) · 531 Bytes
Breadcrumbs
python-python-docs-theme
/
python_docs_theme
/
__init__.py
Copy path
File metadata and controls
24 lines (16 loc) · 531 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from
__future__
import
annotations
from
pathlib
import
Path
TYPE_CHECKING
=
False
if
TYPE_CHECKING
:
from
sphinx
.
application
import
Sphinx
from
sphinx
.
util
.
typing
import
ExtensionMetadata
__version__
=
"2025.2"
THEME_PATH
=
Path
(
__file__
).
resolve
().
parent
def
setup
(
app
:
Sphinx
)
->
ExtensionMetadata
:
app
.
require_sphinx
(
"7.3"
)
app
.
add_html_theme
(
"python_docs_theme"
,
str
(
THEME_PATH
))
return
{
"version"
:
__version__
,
"parallel_read_safe"
:
True
,
"parallel_write_safe"
:
True
,
}
Back
|
FazBrowse Home
|
New Git URL