Skip to content

Commit

Permalink
docs: add opengraph metadata to HTML website
Browse files Browse the repository at this point in the history
better referencing in search engines,
and nicer "social media" sharing previews
  • Loading branch information
minijackson committed Dec 13, 2024
1 parent 7c3a41a commit 305a499
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"sphinx.ext.githubpages",
"sphinx_copybutton",
"sphinxcontrib_nixdomain",
"sphinxext.opengraph",
]

templates_path = ["_templates"]
Expand Down Expand Up @@ -126,3 +127,10 @@ def nix_linkcode_resolve(path: str) -> str:
]

man_show_urls = True

# -- Options for OpenGraph ---------------------------------------------------
# https://sphinxext-opengraph.readthedocs.io/en/latest/

ogp_site_url = html_baseurl
ogp_image = "_static/logo.svg"
ogp_image_alt = "EPNix logo"
1 change: 1 addition & 0 deletions pkgs/docs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ in
sphinx
sphinx-copybutton
sphinxcontrib-nixdomain
sphinxext-opengraph
])
++ [
installShellFiles
Expand Down

0 comments on commit 305a499

Please sign in to comment.