Skip to content

Point the function catalogue's documentation links to handsontable.com/docs/hyperformula/ - #1819

Draft
sequba wants to merge 1 commit into
developfrom
fix/function-metadata-docs-urls
Draft

sequba wants to merge 1 commit into
developfrom
fix/function-metadata-docs-urls

Conversation

@sequba

@sequba sequba commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Status (2026-10-15)

Context

HyperFormula's documentation moved from https://hyperformula.handsontable.com/docs/ to https://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/*.ts still links to the old address:

  • every documentationUrl (370 entries, all pointing at guide/built-in-functions.html);
  • links inside some shortDescription strings, for example nullDate, dateFormats, timeFormats, stringifyDateTime, stringifyCurrency, getCellHyperlink and the compatibility notes.

getAvailableFunctions() and getFunctionDetails() 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 a CHANGELOG.md entry under "Changed". The HYPERLINK examples (=HYPERLINK("https://hyperformula.handsontable.com")) and the HYPERLINK JSDoc example in src/HyperFormula.ts keep their sample URL, because it is example data, not a docs link. The change ships with the next library release.

To finish this PR

  1. Update the private tests. Create a branch named exactly fix/function-metadata-docs-urls in handsontable/hyperformula-tests, from its develop. CI checks out the tests branch with the same name as the PR branch; see test/fetch-tests.sh.
    • In unit/function-metadata-api.spec.ts, replace https://hyperformula.handsontable.com/docs/ with https://handsontable.com/docs/hyperformula/.
    • These are the 5 tests that fail now, in unit-tests and in browser-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 function
      • getFunctionDetails surfaces authored documentationUrl and examples for the reference functions
      • HF-300 function-metadata enrichment coverage every built-in exposes a documentation URL under the HyperFormula docs
    • Push the branch, and open a PR to hyperformula-tests' develop so the change lands there too.
  2. Merge develop into this branch. No conflicts as of f2c266c.
  3. Update the URL rewrite in script/generate-builtin-functions-doc.ts. The docs move added a rewrite there (lines 48–66 on develop). 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 pattern FORMER_DOCS_ROOT = /https:\/\/hyperformula\.handsontable\.com\/docs\//g matches nothing. Choose one:
    • Recommended: change the pattern to match 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/).
    • Or remove the rewrite (FORMER_DOCS_ROOT, PAGE_TO_DOCS_ROOT and the .replace(...) in main()). The page then links to production absolute URLs, so a preview build links out to the live site.
  4. Check locally:
    • grep -rn "hyperformula.handsontable.com/docs" src returns nothing;
    • npm run docs:generate-function-docs, then grep -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 under test/hyperformula-tests).
  5. Mark this PR ready for review. CI should be green once the tests branch exists.

How did you test your changes?

  • grep -rn "hyperformula.handsontable.com/docs" src returns no matches.
  • npx tsc --noEmit, ESLint on the changed files and npx jest test/smoke.spec.ts pass.
  • The private test suite fails as described above, in the 5 tests that pin the old URLs. Every other test passes: unit-tests reported 6737 passed, 5 failed.
  • Performance check: no change beyond noise (±3%).

Types of changes

  • Breaking change (a fix or a feature because of which an existing functionality doesn't work as expected anymore)
  • New feature or improvement (a non-breaking change that adds functionality)
  • Bug fix (a non-breaking change that fixes an issue)
  • Additional language file, or a change to an existing language file (translations)
  • Change to the documentation

Related issues:

  1. Serve the documentation at handsontable.com/docs/hyperformula/ #1810 (the docs move, released through Hotfix: serve the documentation at handsontable.com/docs/hyperformula/ #1821 and Hotfix/move docs to handsontable com (merge to develop) #1822). It listed this change as a follow-up.
  2. Hotfix: serve the documentation at handsontable.com/docs/hyperformula/ #1821, Hotfix/move docs to handsontable com (merge to develop) #1822: the docs move as a hotfix to master and develop.

Checklist:

  • I have reviewed the guidelines about Contributing to HyperFormula and I confirm that my code follows the code style of this project.
  • I have signed the Contributor License Agreement.
  • My change is compliant with the OpenDocument standard.
  • My change is compatible with Microsoft Excel.
  • My change is compatible with Google Sheets.
  • I described my changes in the CHANGELOG.md file.
  • My changes require a documentation update.
  • My changes require a migration guide.

🤖 Generated with Claude Code

https://claude.ai/code/session_0137eVKg5r4aRcgL5MKhqKx7

…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
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

sequba commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

browser-tests (22, ubuntu-latest) (5 failures per browser) and unit-tests (22, ubuntu-latest) (5 failures) fail on the same 5 tests. All of them are in the private hyperformula-tests suite (unit/function-metadata-api.spec.ts) and pin the old docs address:

  • getFunctionDetails returns full details for the protected OFFSET function
  • getFunctionDetails returns full details for the protected VERSION function
  • getFunctionDetails returns the parameter list, repeatLastArgs and per-parameter optionality for a documented function
  • getFunctionDetails surfaces authored documentationUrl and examples for the reference functions
  • HF-300 function-metadata enrichment coverage every built-in exposes a documentation URL under the HyperFormula docs

This is the expected effect of this PR, not a flake. The fix is a branch named fix/function-metadata-docs-urls in hyperformula-tests (CI picks the matching branch name) that replaces https://hyperformula.handsontable.com/docs/ with https://handsontable.com/docs/hyperformula/ in those expectations. This session has no access to hyperformula-tests, so that branch still needs to be pushed by someone who does.


Generated by Claude Code

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Performance comparison of head (71d248d) vs base (05c1a29)

                                     testName |   base |   head | change
------------------------------------------------------------------------
                                      Sheet A | 500.44 | 505.09 | +0.93%
                                      Sheet B | 165.93 | 165.38 | -0.33%
                                      Sheet T | 144.75 | 147.14 | +1.65%
                                Column ranges | 480.45 | 477.75 | -0.56%
                                Sorted lookup |  13859 |  13643 | -1.56%
Sheet A:  change value, add/remove row/column |  16.57 |  16.39 | -1.09%
 Sheet B: change value, add/remove row/column | 144.04 |  147.9 | +2.68%
                   Column ranges - add column | 156.88 | 158.08 | +0.76%
                Column ranges - without batch | 484.25 | 471.96 | -2.54%
                        Column ranges - batch | 120.61 | 120.21 | -0.33%

This branch has not been deployed

No deployments
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