Updated doc and build mechanism

This commit is contained in:
Spitfireap
2024-07-12 13:31:18 +02:00
parent 7a0af5568c
commit a3ddcee5fe
5 changed files with 233 additions and 103 deletions
+5 -9
View File
@@ -12,7 +12,6 @@
# serve to show the default.
from unittest.mock import Mock as MagicMock
import os
import sys
@@ -39,6 +38,7 @@ sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
"sphinx.ext.intersphinx",
"sphinx_rtd_theme",
]
# Add any paths that contain templates here, relative to this directory.
@@ -55,16 +55,16 @@ master_doc = "index"
# General information about the project.
project = "Modoboa"
copyright = "2023, Antoine Nguyen" # NOQA:A001
copyright = "2024, Antoine Nguyen" # NOQA:A001
# 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 = "2.2.0"
version = "2.3.0"
# The full version, including alpha/beta/rc tags.
release = "2.2.0"
release = "2.3.0"
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -106,11 +106,7 @@ pygments_style = "sphinx"
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
if on_rtd:
html_theme = "sphinx_rtd_theme"
else:
html_theme = "nature"
html_theme = "sphinx_rtd_theme"
# 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