mirror of
https://github.com/deesiigneer/pyspapi.git
synced 2026-04-20 12:35:26 +00:00
new version
This commit is contained in:
17
docs/conf.py
17
docs/conf.py
@@ -1,5 +1,7 @@
|
||||
from re import search, MULTILINE
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
project = 'pyspapi'
|
||||
copyright = '2022, deesiigneer'
|
||||
@@ -17,6 +19,9 @@ release = version
|
||||
|
||||
# -- General configuration
|
||||
|
||||
sys.path.insert(0, os.path.abspath(".."))
|
||||
|
||||
|
||||
extensions = [
|
||||
'sphinx.ext.duration',
|
||||
'sphinx.ext.doctest',
|
||||
@@ -25,6 +30,9 @@ extensions = [
|
||||
'sphinx.ext.intersphinx',
|
||||
]
|
||||
|
||||
autodoc_member_order = "bysource"
|
||||
autodoc_typehinta = "none"
|
||||
|
||||
intersphinx_mapping = {
|
||||
'python': ('https://docs.python.org/3/', None),
|
||||
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
|
||||
@@ -34,7 +42,7 @@ version_match = os.environ.get("READTHEDOCS_VERSION")
|
||||
json_url = f"https://pyspapi.readthedocs.io/ru/{version_match}/_static/switcher.json"
|
||||
|
||||
intersphinx_disabled_domains = ['std']
|
||||
language = None
|
||||
language = 'en'
|
||||
locale_dirs = ["locale/"]
|
||||
exclude_patterns = []
|
||||
html_static_path = ["_static"]
|
||||
@@ -70,12 +78,7 @@ html_theme_options = {
|
||||
],
|
||||
"header_links_before_dropdown": 4,
|
||||
"show_toc_level": 1,
|
||||
"navbar_start": ["navbar-logo", "version-switcher"],
|
||||
"switcher": {
|
||||
"json_url": json_url,
|
||||
"version_match": version_match
|
||||
},
|
||||
"navbar_start": ["navbar-logo"],
|
||||
"navigation_with_keys": True,
|
||||
}
|
||||
html_css_files = ["custom.css"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user