chore(docs): remove retired docs app

This commit is contained in:
Sam Julien
2026-06-18 10:54:16 -07:00
parent 356b3320c3
commit 33a79485b6
1135 changed files with 72 additions and 109828 deletions
@@ -189,7 +189,7 @@ describe("loadAllowlist", () => {
it("loads all model names from allowlist JSON", () => {
const allowlistPath = path.resolve(
__dirname,
"../../docs/model-allowlist.json",
"../../showcase/shell-docs/model-allowlist.json",
);
const allowed = loadAllowlist(allowlistPath);
@@ -203,7 +203,7 @@ describe("loadAllowlist", () => {
it("excludes the _comment field", () => {
const allowlistPath = path.resolve(
__dirname,
"../../docs/model-allowlist.json",
"../../showcase/shell-docs/model-allowlist.json",
);
const allowed = loadAllowlist(allowlistPath);
+16 -4
View File
@@ -44,7 +44,10 @@ print("hello")
\`\`\`
`;
const blocks = extractFromMdx(mdx, "/docs/test.mdx");
const blocks = extractFromMdx(
mdx,
"/showcase/shell-docs/src/content/test.mdx",
);
expect(blocks).toHaveLength(1);
expect(blocks[0].lang).toBe("python");
expect(blocks[0].title).toBe("main.py");
@@ -63,7 +66,10 @@ const x = 1;
\`\`\`
`;
const blocks = extractFromMdx(mdx, "/docs/multi.mdx");
const blocks = extractFromMdx(
mdx,
"/showcase/shell-docs/src/content/multi.mdx",
);
expect(blocks).toHaveLength(2);
expect(blocks[0].doctest).toBe("script");
expect(blocks[1].doctest).toBe("component");
@@ -84,7 +90,10 @@ print("has doctest")
\`\`\`
`;
const blocks = extractFromMdx(mdx, "/docs/mixed.mdx");
const blocks = extractFromMdx(
mdx,
"/showcase/shell-docs/src/content/mixed.mdx",
);
expect(blocks).toHaveLength(1);
expect(blocks[0].title).toBe("tested.py");
});
@@ -103,7 +112,10 @@ import { Tab, Tabs } from "fumadocs-ui/components/tabs";
</Tabs>
`;
const blocks = extractFromMdx(mdx, "/docs/tabbed.mdx");
const blocks = extractFromMdx(
mdx,
"/showcase/shell-docs/src/content/tabbed.mdx",
);
expect(blocks).toHaveLength(1);
expect(blocks[0].lang).toBe("python");
expect(blocks[0].doctest).toBe("server");
+4 -7
View File
@@ -26,17 +26,14 @@ interface ManifestEntry {
source: string;
}
interface DoctestConfig {
python?: { deps: string[] };
typescript?: { deps: string[] };
node?: { deps: string[] };
}
// ---------------------------------------------------------------------------
// Config
// ---------------------------------------------------------------------------
const DOCS_DIR = path.resolve(__dirname, "../../docs");
const DOCS_DIR = path.resolve(
__dirname,
"../../showcase/shell-docs/src/content",
);
const OUTPUT_DIR = path.resolve(__dirname, "../../.doctest-output");
// ---------------------------------------------------------------------------
+6 -13
View File
@@ -20,14 +20,11 @@ interface Violation {
// Config
// ---------------------------------------------------------------------------
const DOCS_DIR = path.resolve(__dirname, "../docs");
const ALLOWLIST_PATH = path.join(DOCS_DIR, "model-allowlist.json");
// Additional roots to scan. The main legacy Nextra tree under `docs/` is the
// primary canonical home, but the new shell-docs surface (`showcase/shell-docs/`)
// is now also authored content and must obey the same allowlist.
const EXTRA_DOCS_DIRS = [
path.resolve(__dirname, "../showcase/shell-docs/src/content"),
];
const DOCS_DIR = path.resolve(__dirname, "../showcase/shell-docs/src/content");
const ALLOWLIST_PATH = path.resolve(
__dirname,
"../showcase/shell-docs/model-allowlist.json",
);
// Provider prefixes stripped before matching (e.g. "openai/gpt-4o" -> "gpt-4o")
const PROVIDER_PREFIXES = [
@@ -280,10 +277,6 @@ function main() {
}
const violations = validateFiles(DOCS_DIR, ALLOWLIST_PATH);
for (const extra of EXTRA_DOCS_DIRS) {
if (!fs.existsSync(extra)) continue;
violations.push(...validateFiles(extra, ALLOWLIST_PATH));
}
if (violations.length === 0) {
console.log("All model names in docs are valid.");
@@ -299,7 +292,7 @@ function main() {
}
console.log(
`\nTo fix: add valid names to docs/model-allowlist.json, or update the docs.`,
`\nTo fix: add valid names to showcase/shell-docs/model-allowlist.json, or update the docs.`,
);
if (fixMode) {