import os

project = "signxml"
copyright = "Andrey Kislyuk and signxml contributors"
author = "Andrey Kislyuk"
version = ""
release = ""
language = None
master_doc = "index"
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
source_suffix = [".rst", ".md"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
pygments_style = "sphinx"

if "readthedocs.org" in os.getcwd().split("/"):
    with open("index.rst", "w") as fh:
        fh.write("Documentation for this project has moved to https://xml-security.github.io/" + project)
else:
    import guzzle_sphinx_theme
    html_theme_path = guzzle_sphinx_theme.html_theme_path()
    html_theme = "guzzle_sphinx_theme"
    html_theme_options = {
        "project_nav_name": project,
        "projectlink": "https://github.com/XML-Security/" + project,
    }
    html_sidebars = {
        "**": [
            "logo-text.html",
            # "globaltoc.html",
            "localtoc.html",
            "searchbox.html"
        ]
    }

import os

project = "signxml"
copyright = "Andrey Kislyuk and signxml contributors"
author = "Andrey Kislyuk"
version = ""
release = ""
language = None
master_doc = "index"
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
source_suffix = [".rst", ".md"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
pygments_style = "sphinx"
autodoc_typehints = "description"

if "readthedocs.org" in os.getcwd().split("/"):
    with open("index.rst", "w") as fh:
        fh.write("Documentation for this project has moved to https://xml-security.github.io/" + project)
else:
    import guzzle_sphinx_theme
    html_theme_path = guzzle_sphinx_theme.html_theme_path()
    html_theme = "guzzle_sphinx_theme"
    html_theme_options = {
        "project_nav_name": project,
        "projectlink": "https://github.com/XML-Security/" + project,
    }
    html_sidebars = {
        "**": [
            "logo-text.html",
            # "globaltoc.html",
            "localtoc.html",
            "searchbox.html"
        ]
    }

Use autodoc typehints