Repository navigation
Docs: add an og:image social preview tag - #1915
Merged
Merged
Conversation
Starlight emits og:title, og:description, and a large-image Twitter card but no image, so shared docs links render a blank preview card. Point og:image and twitter:image at the handsontable.com default card, which carries the HyperFormula mark. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Tip
Low risk: Documentation-only change adding static social preview meta tags to the docs site config; no runtime code, API, or build behavior is affected.
Full review: no issues found.
Want a deeper review? Comment /review improve on its own line: a full review of the latest commit with an extra fix-oriented pass (about 2x the cost).
3 tasks done
Performance comparison of head (33dcd62) vs base (2aaab7d) |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperformula-docs | 33dcd62 | Commit Preview URL Branch Preview URL |
Nov 25 2026, 10:45 AM |
The image URL was written twice. SOCIAL_IMAGE now holds the URL, size, and alt text, and the README documents where the image is set and how to change it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1915 +/- ##
========================================
Coverage 97.75% 97.75%
========================================
Files 212 212
Lines 18817 18817
Branches 4436 4437 +1
========================================
Hits 18394 18394
+ Misses 423 415 -8
- Partials 0 8 +8 🚀 New features to boost your workflow:
|
demtario
approved these changes
Nov 25, 2026
GreenFlux
added a commit
that referenced
this pull request
Nov 25, 2026
### Context
Starlight takes a page's meta description and the `og:description` used
in link previews from the `description` frontmatter field. Only 1 of the
57 guide pages had one. All the others fell back to the site-wide
"HyperFormula is a high-performance calculation engine…" line, so every
search result and shared link described the page the same way.
This adds a one-sentence `description` to the 56 guide pages that lacked
one, as `dev-docs/DOCS-CONTENT-GUIDE.md` asks ("a one-sentence
`description` that names the concept"). Each one is written from the
page's own content. They run 47 to 130 characters, so search results
don't cut them short. `built-in-functions.tmpl.md` gets its description
in the template, which the generator copies into
`built-in-functions.md`.
This complements the `og:image` change in #1915. Neither depends on the
other.
### How did you test your changes?
- Every one of the 57 guide frontmatter blocks parses with js-yaml and
has a string `title` and `description`.
- Each claim was checked against the page body (for example, the
currency page covers input recognition and `TEXT` output, and the error
examples are ones the page lists).
- Still to do: on the docs preview, a guide page's `<meta
name="description">` and `og:description` should show its own sentence.
### AI assistance
Claude Code wrote the descriptions and this description. A human should
read the list.
### Compatibility with Excel and Google Sheets
Not applicable.
### Public API changes
None.
### Out of scope and follow-ups
- The API reference pages under `docs/api/` are generated and keep the
site-wide description.
- No title or body changes.
### Types of changes
- [x] Change to the documentation
### Checklist
- [x] I read my own diff end to end before requesting a review.
- [x] No changelog entry is needed (docs only).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Context
Docs links shared on LinkedIn, Slack, and X show a blank preview card. Starlight emits
og:title,og:description, andtwitter:card=summary_large_image, but no image. The live VuePress site has the same gap: it emits noog:tags at all.This adds
og:image, its width, height, and alt, plustwitter:imageandtwitter:image:alt, to the Starlighthead. ASOCIAL_IMAGEconstant indocs/astro.config.mjsholds the URL, size, and alt text in one place, anddocs/README.md("Social preview image") documents how to change it. They point at the handsontable.com default card (https://handsontable.com/og/default.png, 1200x630, live now), which carries the HyperFormula mark. A dedicated HyperFormula docs card would look better, but none exists. Swapping one in later means changing one URL. The URL is absolute because crawlers don't resolve relativeog:imagepaths.The same fix for the Handsontable DataGrid docs: handsontable/handsontable#14451.
How did you test your changes?
node --check docs/astro.config.mjsandeslint astro.config.mjspass.curl -I https://handsontable.com/og/default.pngreturns 200image/png.guide/basic-usage.htmlrenders all five new tags next to Starlight's ownog:andtwitter:cardtags.AI assistance
Claude Code wrote the change and this description.
Compatibility with Excel and Google Sheets
Not applicable.
Public API changes
None.
Out of scope and follow-ups
master) until the Starlight docs are released. No VuePress fix is included.Types of changes
Checklist
🤖 Generated with Claude Code