Skip to content

Commit

Permalink
Use sphinxext-opengraph
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed May 7, 2023
1 parent 04af2b6 commit 55f69ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
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"
intersphinx_mapping = {
"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:
Expand Down

0 comments on commit 55f69ba

Please sign in to comment.