Skip to content

Commit 823502c

Browse files
committed
Format conf.py
1 parent 5e00b19 commit 823502c

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

docs/conf.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,48 @@
22
#
33
# For the full list of built-in configuration values, see the documentation:
44
# https://www.sphinx-doc.org/en/master/usage/configuration.html
5-
import os
65
import re
76
from pathlib import Path
87

98
# -- Project information -----------------------------------------------------
109
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
1110

12-
project = 'KSP Build Tools'
13-
copyright = '2025, KSPModdingLibs Contributors'
14-
author = 'KSPModdingLibs Contributors'
11+
project = "KSP Build Tools"
12+
copyright = "2025, KSPModdingLibs Contributors"
13+
author = "KSPModdingLibs Contributors"
1514

1615
# -- General configuration ---------------------------------------------------
1716
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1817

19-
extensions = ['sphinx_gha', 'myst_parser', 'sphinx_copybutton', 'sphinx_jinja']
18+
extensions = ["sphinx_gha", "myst_parser", "sphinx_copybutton", "sphinx_jinja"]
2019

21-
templates_path = ['_templates']
22-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
20+
templates_path = ["_templates"]
21+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
2322

2423
# -- Options for HTML output -------------------------------------------------
2524
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
2625

27-
html_theme = 'sphinx_book_theme'
28-
html_static_path = ['_static']
26+
html_theme = "sphinx_book_theme"
27+
html_static_path = ["_static"]
2928

3029
# -- Options for myst-parser -------------------------------------------------
3130

3231
myst_heading_anchors = 3
33-
myst_enable_extensions = ['attrs_inline']
32+
myst_enable_extensions = ["attrs_inline"]
3433

3534
# -- Options for sphinx-gha --------------------------------------------------
3635

3736
sphinx_gha_repo_root = str(Path(__file__).parent.parent.absolute()) # docs/..
38-
sphinx_gha_repo_slug = 'KSPModdingLibs/KSPBuildTools'
37+
sphinx_gha_repo_slug = "KSPModdingLibs/KSPBuildTools"
3938

4039
# -- Detect version ----------------------------------------------------------
4140

42-
nuget_version_regex = re.compile(r'(?:\.?[0-9]+){3,}(?:[-a-z]+)?')
41+
nuget_version_regex = re.compile(r"(?:\.?[0-9]+){3,}(?:[-a-z]+)?")
4342
from sphinx_gha.git_ref import get_git_ref
43+
4444
git_ref = get_git_ref(sphinx_gha_repo_root)
4545

4646
jinja_globals = {
47-
'git_ref': git_ref,
48-
'nuget_version': git_ref if nuget_version_regex.match(git_ref or "") else None,
49-
}
47+
"git_ref": git_ref,
48+
"nuget_version": git_ref if nuget_version_regex.match(git_ref or "") else None,
49+
}

0 commit comments

Comments
 (0)