Skip to content

Commit 55f69ba

Browse files
committed
Use sphinxext-opengraph
1 parent 04af2b6 commit 55f69ba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ init_docs:
1414
cd docs; sphinx-quickstart
1515

1616
docs:
17-
python -m pip install furo sphinx-copybutton
17+
python -m pip install furo sphinx-copybutton sphinxext-opengraph
1818
sphinx-build docs docs/html
1919

2020
install: clean

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
release = ""
1111
language = "en"
1212
master_doc = "index"
13-
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.intersphinx"]
13+
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.intersphinx", "sphinxext.opengraph"]
1414
source_suffix = [".rst", ".md"]
1515
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
1616
pygments_style = "sphinx"
1717
intersphinx_mapping = {
1818
"https://docs.python.org/3": None,
1919
}
2020
templates_path = [""]
21+
ogp_site_url = "https://pyauth.github.io/pyotp/"
2122

2223
if "readthedocs.org" in os.getcwd().split("/"):
2324
with open("index.rst", "w") as fh:

0 commit comments

Comments
 (0)