Skip to content

feat(seo): emit WebSite JSON-LD on the docs landing page - #222

Merged
ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:feat/docs-jsonld-website
Nov 23, 2026
Merged

ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:feat/docs-jsonld-website

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Contributor

docs.activitywatch.net ships no structured data (jsonld_blocks == 0 in our public-surface check). The earlier assumption that this needs an RTD/theme override is wrong: Sphinx's html-page-context hook can write into the theme's {{ metatags }} slot, which sphinx_rtd_theme renders inside <head>.

src/conf.py now registers a hook that adds one schema.org WebSite block (name, url, description, publisher) to the index page only. < is escaped in the JSON.

Verified with a local sphinx-build -b html: index.html has exactly one parseable application/ld+json block (WebSite); other pages (e.g. faq.html) have none. Independent of #221 (touches a different region of conf.py).

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
@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

Review guide (auto-posted)

Structured warm-up for reviewers — what changed, what to run, where to look.

Key files

  • src/conf.py (+32/-1, Δ33)

Suggested verification

  • make typecheck

Known risks / watch points

  • No automatic high-risk tags; use file list + diff for judgment.

Suggested review focus

  • Confirm behavior matches the PR description acceptance criteria.
  • Skim the largest diffs first (listed above).
  • If CI is green, spot-check the highest-risk paths called out here.

Generated by scripts/github/pr-warmup-review-guide.py for #222.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Adds WebSite JSON-LD to the documentation landing page.

  • The docs landing page describes itself to search crawlers.

Reviews (1) · Last reviewed commit: "feat(seo): emit WebSite JSON-LD on the d..." · Reviewed by Greptile

@ErikBjare
ErikBjare merged commit 94d5a62 into ActivityWatch:master Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants