mirror of
https://github.com/longbridge/developers.git
synced 2026-09-19 03:34:09 +08:00
8005765472
- scripts/copy-routes.ts: rewritten to walk dist/**/*.index.html and copy each to the sibling flat path (foo/index.html → foo.html) for Nginx fallback contract §10; uses glob + fs-extra, no vitepress paths - scripts/normalize_md.ts: rewritten as post-build dist cleanup; walks dist/**/*.md, trims trailing whitespace per line, ensures single trailing newline; resolves 5 pre-existing astro check errors caused by legacy imports from docs/.vitepress/... paths - scripts/generate-llms.ts: rewritten as no-op; llms.txt / llms-full.txt are emitted at build time by T14 Astro endpoint pages - src/integrations/prebuild-mcp-tools.ts: new integration; astro:build:start hook fetches https://mcp.longbridge.com/mcp/tools.json → .data/mcp-tools.json; stale-cache fallback on network error - src/integrations/prebuild-skills.ts: new integration; astro:build:done hook clones github.com/longbridge/skills → .data/skills and zips to dist/skill/skills.zip; skips gracefully if git/zip not available - astro.config.ts: import + wire prebuildMcpTools() and prebuildSkills() after regionHostnameRewrite() in integrations array - .gitignore: add .data/ entry (7th file touched, necessary for the prebuild data cache directory) astro check: 0 errors (5 pre-existing scripts/ errors resolved) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
13 lines
425 B
TypeScript
13 lines
425 B
TypeScript
/**
|
|
* generate-llms — no-op (handled by Astro endpoints).
|
|
*
|
|
* llms.txt and llms-full.txt are emitted at build time by:
|
|
* src/pages/llms.txt.ts
|
|
* src/pages/llms-full.txt.ts
|
|
*
|
|
* This script is retained as a named entry point for backward-compatible
|
|
* package.json scripts but performs no work.
|
|
*/
|
|
|
|
console.log('[generate-llms] llms.txt and llms-full.txt are handled by Astro build endpoints — nothing to do.')
|