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 9515310 commit 5e0cc15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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:
Expand Down
9 changes: 8 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
release = ""
language = "en"
master_doc = "index"
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.intersphinx", "sphinx_copybutton"]
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinx_copybutton",
"sphinxext.opengraph",
]
source_suffix = [".rst", ".md"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
pygments_style = "sphinx"
Expand All @@ -21,6 +27,7 @@
"https://www.pyopenssl.org/en/stable": "https://www.pyopenssl.org/en/stable/objects.inv",
}
templates_path = [""]
ogp_site_url = "https://xml-security.github.io/" + project

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

0 comments on commit 5e0cc15

Please sign in to comment.