Add version to title
This commit is contained in:
parent
545d6c06f3
commit
200ec9fe28
@ -10,6 +10,7 @@
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import importlib.metadata
|
||||
import sys
|
||||
from datetime import date
|
||||
from pathlib import Path
|
||||
@ -49,8 +50,7 @@ copyright = f"2011, Andrey Popp, 2019-{date.today().year}, Arjan Molenaar and Da
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = importlib.metadata.version("generic")
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
@ -92,6 +92,7 @@ exclude_patterns = ["_build"]
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
html_theme = "furo"
|
||||
html_title = f"Generic v{version}"
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
|
Loading…
Reference in New Issue
Block a user