Repository navigation
feat(seo): emit WebSite JSON-LD on the docs landing page - #222
Merged
ErikBjare merged 1 commit intoNov 23, 2026
Merged
Conversation
The docs site shipped no structured data. Inject a schema.org WebSite block into the theme's metatags slot on the index page only, via an html-page-context hook in conf.py (no theme override needed). Git-Session-Id: b481ba45-f3d3-4df0-86d7-25f483e610b6
Contributor
Author
Review guide (auto-posted)Structured warm-up for reviewers — what changed, what to run, where to look. Key files
Suggested verification
Known risks / watch points
Suggested review focus
Generated by |
Contributor
[Low impact] The PR appears safe to merge. SummaryAdds
Reviews (1) · Last reviewed commit: "feat(seo): emit WebSite JSON-LD on the d..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs.activitywatch.net ships no structured data (
jsonld_blocks == 0in our public-surface check). The earlier assumption that this needs an RTD/theme override is wrong: Sphinx'shtml-page-contexthook can write into the theme's{{ metatags }}slot, which sphinx_rtd_theme renders inside<head>.src/conf.pynow registers a hook that adds one schema.orgWebSiteblock (name, url, description, publisher) to the index page only.<is escaped in the JSON.Verified with a local
sphinx-build -b html:index.htmlhas exactly one parseableapplication/ld+jsonblock (WebSite); other pages (e.g.faq.html) have none. Independent of #221 (touches a different region of conf.py).