diff --git a/Makefile b/Makefile index d9fe386..04be961 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ init_docs: cd docs; sphinx-quickstart docs: - python -m pip install furo sphinx-copybutton + python -m pip install furo sphinx-copybutton sphinxext-opengraph sphinx-build docs docs/html install: clean diff --git a/docs/conf.py b/docs/conf.py index f371d60..f508b98 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,7 +10,7 @@ release = "" language = "en" master_doc = "index" -extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.intersphinx"] +extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.intersphinx", "sphinxext.opengraph"] source_suffix = [".rst", ".md"] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] pygments_style = "sphinx" @@ -18,6 +18,7 @@ "https://docs.python.org/3": None, } templates_path = [""] +ogp_site_url = "https://pyauth.github.io/pyotp/" if "readthedocs.org" in os.getcwd().split("/"): with open("index.rst", "w") as fh: