Skip to content

Commit

Permalink
OpenGraph support on RTD (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored Aug 23, 2024
1 parent 1d7748a commit 9cb922c
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 18 deletions.
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
sphinx
sphinx_rtd_theme
sphinxext-opengraph
7 changes: 6 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

extensions = [
"sphinx_rtd_theme",
"sphinxext.opengraph",
]

templates_path = ["_templates"]
Expand All @@ -21,10 +22,14 @@
# -- Options for HTML output -------------------------------------------------

html_theme = "sphinx_rtd_theme"
html_logo = "../../misc/pantab_logo.svg"
html_logo = "../../misc/pantab_logo.png"
master_doc = "index" # see RTD GH issue 2569
html_context = {
"display_github": True,
}

html_static_path = ["_static"]

# -- Options for opengraph output --------------------------------------------

ogp_site_url = "https://pantab.readthedocs.io/"
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ dependencies:
- sphinx
- pre-commit
- sphinx_rtd_theme
- sphinxext-opengraph
- pip:
- asv
Binary file added misc/pantab_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 29 additions & 17 deletions misc/pantab_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9cb922c

Please sign in to comment.