FD

formspark/documentation

代码审查

本页由 AI 翻译,技术细节请以原文为准。 查看原文

18 stars 质量 52 趋势 42

Formspark documentation

概览

Source of the Formspark documentation website. Use the Node version in .tool-versions and the pnpm version in package.json. Install dependencies with pnpm install --frozen-lockfile, then run pnpm dev. pnpm build runs the tests, builds the site into docs/.vitepress/dist and checks the result. pnpm test discovers the Node test suites under tests/. The privacy filter's suite mirrors the theme module's name: tests/sentry-privacy.test.mjs covers docs/.vitepress/theme/sentry-privacy.js. Pull requests run the same production build as the deployment workflow. pnpm test:site checks the built site in docs/.vitepress/dist, so its suites under tests/site/ have no .test suffix and pnpm test skips them. The build runs it after vitepress build. Every page carries a title and a description of 70 to 160 characters in its frontmatter, and appears once in docs/.vitepress/sidebar.js. The build turns them into the page's canonical link, Open Graph tags and JSON-LD.

README

Formspark documentation

Source of the Formspark documentation website.

https://documentation.formspark.io

Local development

Use the Node version in .tool-versions and the pnpm version in package.json. Install dependencies with pnpm install --frozen-lockfile, then run pnpm dev. pnpm build runs the tests, builds the site into docs/.vitepress/dist and checks the result.

Tests

pnpm test discovers the Node test suites under tests/. The privacy filter’s suite mirrors the theme module’s name: tests/sentry-privacy.test.mjs covers docs/.vitepress/theme/sentry-privacy.js. Pull requests run the same production build as the deployment workflow.

pnpm test:site checks the built site in docs/.vitepress/dist, so its suites under tests/site/ have no .test suffix and pnpm test skips them. The build runs it after vitepress build.

Every page carries a title and a description of 70 to 160 characters in its frontmatter, and appears once in docs/.vitepress/sidebar.js. The build turns them into the page’s canonical link, Open Graph tags and JSON-LD. The build also renders each page’s Open Graph image, its title on a branded card, into docs/.vitepress/dist/og/.

Markdown for agents

The build copies each page’s Markdown source, without its frontmatter, next to its HTML (setup/index.md beside setup/index.html) and joins every page into llms-full.txt. docs/public/llms.txt is written by hand and links the copies. pnpm run deploy uploads .md files with a text/markdown content type.

docs/public/skills/formspark/SKILL.md is an Agent Skill for integrating Formspark. Each page’s Copy Markdown button copies its Markdown copy, and Copy for agents copies a prompt that points an agent at the copy and the skill. Keep the skill’s facts in step with the pages it summarizes.

Error reporting

Sentry reports browser errors through the theme’s privacy filter. Reports keep code locations and omit exception values, request data, breadcrumbs, locals and attached context. Browser performance tracing is disabled. pnpm test checks the final event projection, and the production build runs that check first.

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add formspark/documentation
新手?先看 mcpskill.org 教程 →