Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
e608c4d
chore(scripts): add extract-public-api.js for cross-repo contract che…
marcin-kordas-hoc May 28, 2026
34c32d5
fix(scripts): make extract-public-api.js lint-clean under project ESL…
marcin-kordas-hoc May 28, 2026
760ab4a
docs(specs): add HF-154 agent-friendly docs design spec
marcin-kordas-hoc May 31, 2026
25a4097
docs(specs): harden HF-154 spec after brutal-honesty review
marcin-kordas-hoc May 31, 2026
7ff9263
docs(plans): add HF-154 implementation plan
marcin-kordas-hoc May 31, 2026
c43e81a
feat(docs): add md-companions plugin for .md exports and llms-full.txt
marcin-kordas-hoc May 31, 2026
88827ee
feat(docs): add Copy Markdown button global component
marcin-kordas-hoc May 31, 2026
9613c94
feat(docs): add Set up your coding agent page and interactive wizard
marcin-kordas-hoc May 31, 2026
c8f3d5d
docs: add llms.txt and link llms-full.txt from robots.txt
marcin-kordas-hoc May 31, 2026
4e8a008
fix(docs): handle :::example and any unknown container types in md-co…
marcin-kordas-hoc May 31, 2026
d3fff0c
feat(docs): wire md-companions plugin, Copy Markdown button, and setu…
marcin-kordas-hoc May 31, 2026
89f27b2
fix(docs): address code-review findings in HF-154 components
marcin-kordas-hoc May 31, 2026
5bb49aa
Merge remote-tracking branch 'upstream/develop' into feat/hf-154-agen…
marcin-kordas-hoc Jun 2, 2026
c429eeb
docs(hf-154): add context7.json + GitMCP/Context7 agent doc-access se…
marcin-kordas-hoc Jun 8, 2026
f49d15b
test(docs): run md-companions strip test in CI (HF-154)
marcin-kordas-hoc Jun 22, 2026
062625f
docs: remove internal HF-154 plan/spec from public docs
marcin-kordas-hoc Jul 1, 2026
516d5ad
docs(hf-154): drop out-of-scope extract-public-api.js + its eslint ca…
marcin-kordas-hoc Jul 9, 2026
d47ac0f
Merge remote-tracking branch 'upstream/develop' into feat/hf-154-agen…
marcin-kordas-hoc Jul 9, 2026
ddfa8f0
docs(hf-154): point CHANGELOG entry at upstream PR #1703
marcin-kordas-hoc Jul 9, 2026
c0cc9c5
ci(docs): bump Netlify deploy Node 18 -> 22 to match docs CI
marcin-kordas-hoc Jul 9, 2026
01072d5
docs(hf-154): honest Copy-Markdown label + drop inert robots.txt comm…
marcin-kordas-hoc Jul 9, 2026
f0b5b28
fix(hf-154): strip inline Vue components (e.g. <Badge/>) from .md corpus
marcin-kordas-hoc Jul 9, 2026
c0f1ac6
refactor(hf-154): dedupe clipboard helper + strip paired block-compon…
marcin-kordas-hoc Jul 9, 2026
f609b42
fix(hf-154): address review findings (strip edge-cases, corpus comple…
marcin-kordas-hoc Jul 9, 2026
76c3f14
fix(hf-154): make copyToClipboard fallback truly non-throwing
marcin-kordas-hoc Jul 10, 2026
daed5f4
docs(hf-154): clarify per-page .md wording (page URL, not any URL)
marcin-kordas-hoc Jul 10, 2026
c41eed6
fix(hf-154): address Cursor Bugbot review (corpus fidelity + root dis…
marcin-kordas-hoc Jul 12, 2026
72b07f6
Merge remote-tracking branch 'upstream/develop' into feat/hf-154-agen…
marcin-kordas-hoc Jul 12, 2026
c7502f7
fix(hf-154): keep {{ }} interpolations verbatim instead of wiping them
marcin-kordas-hoc Jul 12, 2026
6412a33
fix(hf-154): exclude docs/.vuepress from Context7 indexing
marcin-kordas-hoc Jul 12, 2026
861c816
fix(hf-154): strip inline [[toc]] markers too
marcin-kordas-hoc Jul 12, 2026
c84f78f
fix(hf-154): point llms.txt Guide link at /docs/ (static, resolves)
marcin-kordas-hoc Jul 12, 2026
12204f8
fix(hf-154): readable wizard snippet (dark text, wrap long URLs)
marcin-kordas-hoc Jul 12, 2026
59698ab
fix(hf-154): drop dangling empty heading + normalise blank lines in c…
marcin-kordas-hoc Jul 12, 2026
1836e1e
test(hf-154): add corpus-level invariant tests for the stripper
marcin-kordas-hoc Jul 12, 2026
2fca6ee
style(hf-154): match wizard snippet to VuePress code blocks (dark)
marcin-kordas-hoc Jul 13, 2026
e22dbaf
docs(hf-154): correct MCP mechanism wording (GitMCP=repo, Context7=do…
marcin-kordas-hoc Jul 13, 2026
f154a05
fix(hf-154): rebase root-relative links + fence-aware container close
marcin-kordas-hoc Jul 13, 2026
789a2ed
fix(hf-154): make link rebase fence-aware
marcin-kordas-hoc Jul 13, 2026
ba78f3f
fix(hf-154): absolutize links in llms-full.txt corpus
marcin-kordas-hoc Jul 13, 2026
f68804a
fix(hf-154): run container bodies through inline cleanup too
marcin-kordas-hoc Jul 13, 2026
bcb08da
Merge branch 'develop' into feat/hf-154-agent-friendly-docs
sequba Jul 15, 2026
363a5e2
Remove tests/docs
sequba Jul 15, 2026
c66c64b
Add guidelines about docs to DEV_DOCS
sequba Jul 15, 2026
e63c344
Revert eslint config changes
sequba Jul 15, 2026
765a5a5
Add DOCS_CONTENT_GUIDE
sequba Jul 15, 2026
fe2b34c
feat(hf-154): replace Copy Markdown button with top-of-page View as M…
marcin-kordas-hoc Jul 16, 2026
ebf978d
Merge remote-tracking branch 'upstream/develop' into mrg-1703
marcin-kordas-hoc Jul 18, 2026
086c172
fix(hf-154): stop mirroring llms.txt to the domain root
marcin-kordas-hoc Jul 21, 2026
9b182cf
fix(hf-154): keep Vue-bound links/images and $page values in .md comp…
marcin-kordas-hoc Jul 22, 2026
bb30f01
docs(hf-154): drop redundant /docs/llms.txt index
marcin-kordas-hoc Jul 22, 2026
9c44532
Merge remote-tracking branch 'upstream/develop' into feat/hf-154-agen…
marcin-kordas-hoc Jul 22, 2026
91e00fd
docs(hf-154): move DOCS_CONTENT_GUIDE to hyperformula-tests dev_docs
marcin-kordas-hoc Jul 23, 2026
0cc72bb
fix(hf-154): keep code fences in tip/warning containers verbatim in .…
marcin-kordas-hoc Jul 23, 2026
478314e
Merge remote-tracking branch 'upstream/develop' into feat/hf-154-agen…
marcin-kordas-hoc Jul 23, 2026
8637ff9
Apply suggestions from code review
sequba Jul 27, 2026
626fa53
fix(hf-154): make the View as Markdown link visible below the fixed n…
claude Jul 27, 2026
f2e95fc
style(hf-154): right-align View as Markdown link, tighten gap to the …
claude Jul 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ module.exports = {
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
}
}
},
],
}
5 changes: 5 additions & 0 deletions DEV_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Canonical reference for everyone working on the HyperFormula source code: mainta
- **[Test suite](test/README.md)** &mdash; smoke tests and how to attach the private test suite
- **[Public docs portal](https://hyperformula.handsontable.com/docs)** &mdash; main documentation
- **[Docs README](docs/README.md)** &mdash; how to run the docs portal locally
- **[Docs content guide](DOCS_CONTENT_GUIDE.md)** &mdash; how to create and edit docs content
- **[Changelog](CHANGELOG.md)**
- **[Pull request template](.github/pull_request_template.md)**

Expand Down Expand Up @@ -90,6 +91,10 @@ A single pull request should contain an atomic self-contained functional change
- All changes to the production code must be covered by automatic tests kept in the `test/` directory.
- Each test case must be very simple and focused on a single assertion. Don't use loops, conditionals, or other control flow statements in test cases.

## Documentation

- Follow the [documentation content guide](DOCS_CONTENT_GUIDE.md) when creating or editing docs (writing style, language, and how to structure guides).

## How to add a new function

Adding a built-in function is similar to adding a [custom function](docs/guide/custom-functions.md), so that guide is a useful reference for the function-implementation patterns (argument metadata, return types, array handling). The built-in flow on top of that is:
Expand Down
14 changes: 14 additions & 0 deletions context7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://context7.com/schema/context7.json",
"projectTitle": "HyperFormula",
"description": "Headless, Excel-compatible spreadsheet engine in TypeScript — parses and evaluates ~400 functions in the browser or Node.js. In-process library (no REST API).",
"folders": ["docs"],
"excludeFolders": ["docs/.vuepress", "docs/api"],
"rules": [
"HyperFormula is an in-process library, not a REST API — there is no HTTP endpoint or base URL.",
"Public API cell addresses are 0-indexed: { sheet, col, row }.",
"There is no #CALC! error type.",
"EmptyValue is exported as a Symbol, not null/undefined.",
"A license key is required when constructing the engine (use 'gpl-v3' for open-source use)."
]
}
109 changes: 109 additions & 0 deletions docs/.vuepress/components/CodingAgentWizard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<template>
<div class="agent-wizard">
<div v-if="!selected" class="agent-wizard__choices">
<p class="agent-wizard__prompt">Which coding agent do you use?</p>
<button
v-for="opt in options"
:key="opt.id"
class="agent-wizard__choice"
type="button"
@click="selected = opt.id"
>{{ opt.label }}</button>
</div>

<div v-else class="agent-wizard__result">
<button class="agent-wizard__back" type="button" @click="reset">&larr; Change</button>
<h3>{{ current.label }}</h3>
<pre class="agent-wizard__snippet"><code>{{ current.snippet }}</code></pre>
<button class="agent-wizard__copy" type="button" @click="copy">{{ copied ? 'Copied!' : 'Copy' }}</button>
<p class="agent-wizard__note" v-html="current.note"></p>
</div>
</div>
</template>

<script>
import { copyToClipboard } from './clipboard';

export default {
name: 'CodingAgentWizard',
Comment thread
marcin-kordas-hoc marked this conversation as resolved.
data() {
return {
selected: null,
copied: false,
options: [
{
id: 'claude-code',
label: 'Claude Code',
snippet: '/plugin marketplace add handsontable/handsontable-skills\n/plugin install handsontable-skills@handsontable-skills',
note: 'Installs the official <code>hyperformula</code> skill. Claude Code loads it automatically.',
},
{
id: 'cursor',
label: 'Cursor',
snippet: 'Add to your AGENTS.md / rules file:\nHyperFormula docs (LLM-friendly): https://hyperformula.handsontable.com/docs/llms-full.txt',
note: 'Cursor has no Claude-skill installer yet — point it at the full docs corpus instead.',
},
{
id: 'copilot',
label: 'GitHub Copilot',
snippet: 'Add to .github/copilot-instructions.md:\nReference HyperFormula docs: https://hyperformula.handsontable.com/docs/llms-full.txt',
note: 'Copilot reads an instructions file — link it to the corpus so it fetches authoritative docs.',
},
{
id: 'other',
label: 'Other / API',
snippet: 'curl -s https://hyperformula.handsontable.com/docs/llms-full.txt',
note: 'Fetch the full corpus, or upload the skill folder from <code>handsontable/handsontable-skills</code> to the Claude API.',
},
],
};
},
computed: {
current() {
return this.options.find(o => o.id === this.selected) || null;
},
},
methods: {
reset() { this.selected = null; this.copied = false; },
copy() {
if (!this.current) return;
copyToClipboard(this.current.snippet).then(() => {
this.copied = true;
setTimeout(() => { this.copied = false; }, 1500);
});
},
},
};
</script>

<style scoped>
.agent-wizard { border: 1px solid #eaecef; border-radius: 6px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.agent-wizard__prompt { font-weight: 600; margin: 0 0 0.75rem; }
.agent-wizard__choice,
.agent-wizard__copy,
.agent-wizard__back {
cursor: pointer; border: 1px solid #3eaf7c; background: #fff; color: #3eaf7c;
border-radius: 4px; padding: 0.4rem 0.8rem; margin: 0 0.5rem 0.5rem 0; font-size: 0.9rem;
}
.agent-wizard__choice:hover,
.agent-wizard__copy:hover { background: #3eaf7c; color: #fff; }
.agent-wizard__back { border-color: #ccc; color: #666; }
/* Match VuePress fenced code blocks ($codeBgColor = #282c34) so the snippet is
visually consistent with the rest of the docs' code blocks. */
.agent-wizard__snippet {
background: #282c34;
color: #fff;
padding: 0.75rem 1rem;
border-radius: 6px;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-word;
}
.agent-wizard__snippet code {
color: inherit;
background: transparent;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
font-size: 0.85rem;
}
.agent-wizard__note { font-size: 0.85rem; color: #666; }
</style>
72 changes: 72 additions & 0 deletions docs/.vuepress/components/ViewMarkdownLink.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<template>
<p v-if="mdUrl" class="view-markdown-link">
<a :href="mdUrl">View as Markdown</a>
</p>
</template>

<script>
export default {
name: 'ViewMarkdownLink',
computed: {
mdUrl() {
const p = this.$page && this.$page.path;
// The 404 page is excluded from companion generation — no link there.
if (!p || p === '/404.html') return null;
// `.html` page → sibling `.md`; directory / landing URL (`/`, `/guide/`)
// → its `index.md` companion. Both are emitted by the md-companions plugin,
// so the link is available on every generated page.
if (/\.html$/.test(p)) return this.$withBase(p.replace(/\.html$/, '.md'));
if (p.endsWith('/')) return this.$withBase(`${p}index.md`);
return null;
},
},
};
</script>

<style lang="stylus" scoped>
@require '../styles/palette.styl'

// Rendered in the `page-top` slot, this sits above `.theme-default-content`
// at the very top of `main.page` — a zone the fixed navbar covers (the theme
// clears the navbar only *inside* the content block, via the first heading's
// top padding). Mirror the content wrapper's `$wrapper` geometry but take no
// flow height: the link floats right-aligned inside the title's transparent
// navbar-clearance padding, just above the page title, without pushing the
// article down. `z-index` keeps it clickable above the heading's padding box.
.view-markdown-link
position relative
z-index 1
max-width $contentWidth
height 0
margin 0 auto
padding 0 2.5rem
font-size 0.85rem

a
position absolute
top ($navbarHeight + 0.2rem)
right 2.5rem
line-height 1.4
color $accentColor
text-decoration none

&:hover
text-decoration underline

// Keep the wrapper's paddings (and the anchor's `right` offset, resolved
// against the wrapper's padding box) in lockstep with `$wrapper`'s responsive
// paddings, so the link tracks the article text's right edge at every width.
@media (max-width: $MQNarrow)
.view-markdown-link
padding 0 2rem

a
right 2rem

@media (max-width: $MQMobileNarrow)
.view-markdown-link
padding 0 1.5rem

a
right 1.5rem
</style>
29 changes: 29 additions & 0 deletions docs/.vuepress/components/clipboard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copy text to the clipboard, falling back to a hidden `<textarea>` +
* `execCommand('copy')` when the async Clipboard API is unavailable (insecure
* context / older browsers). Always resolves, so callers can chain a single
* `.then()` for their "Copied!" state regardless of which path ran.
*
* @param {string} text text to place on the clipboard
* @returns {Promise<void>}
*/
export function copyToClipboard(text) {
const fallback = () => {
// Never throw: the "always resolves" contract must hold even if the DOM
// or execCommand path fails (e.g. detached document, disabled command).
try {
const el = document.createElement('textarea');
el.value = text;
el.style.position = 'fixed';
el.style.opacity = '0';
document.body.appendChild(el);
el.select();
try { document.execCommand('copy'); } finally { document.body.removeChild(el); }
} catch (_) { /* clipboard truly unavailable — nothing more we can do */ }
};
if (navigator.clipboard && window.isSecureContext) {
return navigator.clipboard.writeText(text).catch(fallback);
}
fallback();
return Promise.resolve();
}
4 changes: 3 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const searchBoxPlugin = require('./plugins/search-box');
const examples = require('./plugins/examples/examples');
const HyperFormula = require('../../dist/hyperformula.full');
const includeCodeSnippet = require('./plugins/markdown-it-include-code-snippet');
const mdCompanions = require('./plugins/md-companions');

const searchPattern = new RegExp('^/api', 'i');

Expand All @@ -31,7 +32,6 @@ const DOCS_HOSTNAME = process.env.DOCS_HOSTNAME || buildConfigOverrides.hostname
module.exports = {
title: 'HyperFormula (v' + HyperFormula.version + ')',
description: 'HyperFormula is an open-source, high-performance calculation engine for spreadsheets and web applications.',
globalUIComponents: [],
head: [
// Import HF (required for the examples)
[ 'script', { src: 'https://cdn.jsdelivr.net/npm/hyperformula/dist/hyperformula.full.min.js' } ],
Expand Down Expand Up @@ -89,6 +89,7 @@ module.exports = {
exclude: ['/404.html'],
changefreq: 'weekly'
}],
[mdCompanions, { hostname: DOCS_HOSTNAME }],
Comment thread
marcin-kordas-hoc marked this conversation as resolved.
searchBoxPlugin,
['container', examples()],
{
Expand Down Expand Up @@ -206,6 +207,7 @@ module.exports = {
['/guide/advanced-usage', 'Advanced usage'],
['/guide/configuration-options', 'Configuration options'],
['/guide/license-key', 'License key'],
['/guide/setup-coding-agent', 'Set up your coding agent'],
]
},
{
Expand Down
Loading
Loading