mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-14 16:07:52 +00:00
* docs: remove unreferenced user guides Drop docs/command-line.md, databases.md, java.md, unity-external-editor.md and docs/media/debug.jpg. Nothing in the repository links to them. Plugin, theme and README assets under docs/ stay. * docs: keep only plugin docs under docs/ Remove docs/themes.md and docs/data-directories.md. Move the upstream Atom One source revisions into THIRD_PARTY_LICENSES.md, drop the links to the removed page, and move the README's WeChat QR code to .github/assets/. * docs: move plugin docs next to plugins/README.md docs/plugins/themes.md and indexing.md move to plugins/. Update the theme doc generator, its test, the plugin template, AGENTS.md and every link to the new paths.
15 lines
661 B
TypeScript
15 lines
661 B
TypeScript
/**
|
|
* Regenerates the token reference in plugins/themes.md from
|
|
* src/styles/tokens.css (`pnpm gen:theme-docs`). scripts/theme/theme.test.ts
|
|
* fails when the checked-in reference is stale.
|
|
*/
|
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
import { referenceMarkdown, themeTokenGroups, withReference } from "./tokens.ts";
|
|
|
|
const DOC = "plugins/themes.md";
|
|
const groups = themeTokenGroups(readFileSync("src/styles/tokens.css", "utf8"));
|
|
const doc = readFileSync(DOC, "utf8");
|
|
const next = withReference(doc, referenceMarkdown(groups));
|
|
if (next !== doc) writeFileSync(DOC, next);
|
|
console.log(next === doc ? `${DOC} is up to date` : `updated ${DOC}`);
|