mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-16 17:09:09 +00:00
Closes #16261 The documentation homepage linked to guides absent from the Fumadocs source collection. The catalog now includes getting-started, provider and comparison guides, and the featured links use the canonical case-sensitive slugs. Required titles were added to Free Tiers Guide and ChatPlayground, so their newly compiled pages satisfy the frontmatter schema. Internal security documents remain excluded. This adopts PrinceThummar011's solution from closed, unmerged PR #16338 (original commit `972083b7ff382bb9b4830cc921ada28ce2a29889`) with additional regression coverage and the canonical-link correction. The new regression reads the actual homepage links, respects negative catalog globs and exercises the real Fumadocs loader, which exposed the remaining lowercase-link failure after the initial adoption. Validation with Node24.21.0 and dependencies installed from the lockfile: - RED before catalog changes, then source-catalog/frontmatter regression GREEN. A separate exact-dependency runtime-loader RED reproduced the lowercase link failure before fixing the three hrefs. - Exact-lock navigation/security/link-resolver siblings: 19/19 passed after the canonical-link correction. - Real Fumadocs generation: exit0; generated catalog includes all three featured destinations and the new sections, excludes all four protected security documents. - Formatting, scoped ESLint, core/dashboard typechecks, file-size, changelog integrity and test discovery passed. Cyclomatic complexity passed3038/baseline3218 and independent cognitive complexity passed1400/baseline1437, without baseline changes. - `check:docs-all` exits1 because its code-facts subprocess exceeds the existing180s timeout. The unchanged gate on frozen base `6a1437e6` fails with the same `ETIMEDOUT`, null status and `SIGTERM`; the patch probe matches. This is a demonstrated base/environment limitation, not a green docs-all result or a measured documentation count mismatch. Docs sync, frontmatter, env-doc sync, deprecated-version, doc-link and fabricated-doc gates all passed separately. - Committed head `226d9fd975ac769630a57cbe85f96243512c71c4` is byte-identical to the validated files. Broad validation used frozen base `6a1437e6`; subsequent release-tip changes have not been merged into this branch. A deployed HTTP/browser smoke has not been performed. Generated catalog and real-loader lookup are verified; full Next.js rendering and authenticated deployment behavior are outside these checks. ⚠️ base-red inherited: #15306 Thanks @diegosouzapw.
29 lines
820 B
TypeScript
29 lines
820 B
TypeScript
import { defineDocs, defineConfig } from "fumadocs-mdx/config";
|
|
|
|
export const docs = defineDocs({
|
|
dir: "docs",
|
|
docs: {
|
|
files: [
|
|
"./getting-started/**/*.md",
|
|
"./guides/**/*.md",
|
|
"./architecture/**/*.md",
|
|
"./reference/**/*.md",
|
|
"./frameworks/**/*.md",
|
|
"./routing/**/*.md",
|
|
"./security/**/*.md",
|
|
// Operator-internal: TLS impersonation, MITM decrypt, supply-chain
|
|
// attestation, XOR-mask recipe. Stay in git; do not compile into /docs.
|
|
"!./security/STEALTH_GUIDE.md",
|
|
"!./security/SOCKET_DEV_FINDINGS.md",
|
|
"!./security/MITM-TPROXY-DECRYPT.md",
|
|
"!./security/PUBLIC_CREDS.md",
|
|
"./compression/**/*.md",
|
|
"./ops/**/*.md",
|
|
"./providers/**/*.md",
|
|
"./comparison/**/*.md",
|
|
],
|
|
},
|
|
});
|
|
|
|
export default defineConfig();
|