Repository navigation
Conversation
…m/docs/hyperformula/ The documentationUrl of every built-in function and the links in the shortDescription strings pointed to the documentation's former address, hyperformula.handsontable.com/docs/. getAvailableFunctions() and getFunctionDetails() returned them to library users, who reached the pages only through two redirects. The HYPERLINK examples keep their sample URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eVKg5r4aRcgL5MKhqKx7
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperformula-docs | 71d248d | Commit Preview URL Branch Preview URL |
Oct 15 2026, 07:48 AM |
|
This is the expected effect of this PR, not a flake. The fix is a branch named Generated by Claude Code |
Performance comparison of head (71d248d) vs base (05c1a29) |
Context
HyperFormula's documentation moved from
https://hyperformula.handsontable.com/docs/tohttps://handsontable.com/docs/hyperformula/(#1821, #1822). The old addresses still work: every one answers a 301 to the same page at the new address.The function metadata catalogue in
src/interpreter/functionMetadata/categories/*.tsstill links to the old address:documentationUrl(370 entries, all pointing atguide/built-in-functions.html);shortDescriptionstrings, for examplenullDate,dateFormats,timeFormats,stringifyDateTime,stringifyCurrency,getCellHyperlinkand the compatibility notes.getAvailableFunctions()andgetFunctionDetails()return these strings to library users, so they get old-host URLs that redirect.This PR rewrites every such link to
https://handsontable.com/docs/hyperformula/, with the same path. It covers 379 lines in 13 files and adds aCHANGELOG.mdentry under "Changed". TheHYPERLINKexamples (=HYPERLINK("https://hyperformula.handsontable.com")) and theHYPERLINKJSDoc example insrc/HyperFormula.tskeep their sample URL, because it is example data, not a docs link. The change ships with the next library release.To finish this PR
fix/function-metadata-docs-urlsinhandsontable/hyperformula-tests, from itsdevelop. CI checks out the tests branch with the same name as the PR branch; seetest/fetch-tests.sh.unit/function-metadata-api.spec.ts, replacehttps://hyperformula.handsontable.com/docs/withhttps://handsontable.com/docs/hyperformula/.unit-testsand inbrowser-tests(Chrome and Firefox):getFunctionDetails returns full details for the protected OFFSET function (documented, but not user-registrable)getFunctionDetails returns full details for the protected VERSION function (documented, but not user-registrable)getFunctionDetails returns the parameter list, repeatLastArgs and per-parameter optionality for a documented functiongetFunctionDetails surfaces authored documentationUrl and examples for the reference functionsHF-300 function-metadata enrichment coverage every built-in exposes a documentation URL under the HyperFormula docsdevelopso the change lands there too.developinto this branch. No conflicts as off2c266c.script/generate-builtin-functions-doc.ts. The docs move added a rewrite there (lines 48–66 ondevelop). It turns old-host links in the catalogue strings into links relative to the docs root on the generated built-in functions page. After this PR, its patternFORMER_DOCS_ROOT = /https:\/\/hyperformula\.handsontable\.com\/docs\//gmatches nothing. Choose one:https://handsontable.com/docs/hyperformula/, and update the JSDoc above it so it no longer calls this "the docs' former home". The page's links then stay relative, so they open as in-site navigation and work on branch previews and staging (https://dev.handsontable.com/docs/hyperformula/).FORMER_DOCS_ROOT,PAGE_TO_DOCS_ROOTand the.replace(...)inmain()). The page then links to production absolute URLs, so a preview build links out to the live site.grep -rn "hyperformula.handsontable.com/docs" srcreturns nothing;npm run docs:generate-function-docs, thengrep -n "handsontable.com" docs/guide/built-in-functions.md. With the recommended option, no absolute docs links remain;npm run lint,npx tsc --noEmit,npm test(with the hyperformula-tests branch checked out undertest/hyperformula-tests).How did you test your changes?
grep -rn "hyperformula.handsontable.com/docs" srcreturns no matches.npx tsc --noEmit, ESLint on the changed files andnpx jest test/smoke.spec.tspass.unit-testsreported 6737 passed, 5 failed.Types of changes
Related issues:
masteranddevelop.Checklist:
🤖 Generated with Claude Code
https://claude.ai/code/session_0137eVKg5r4aRcgL5MKhqKx7