docs: split SITE-ARCHITECTURE.md into on-demand reference modules#3295
docs: split SITE-ARCHITECTURE.md into on-demand reference modules#3295yonib05 wants to merge 4 commits into
Conversation
SITE-ARCHITECTURE.md had grown to 926 lines covering everything from core customizations to deep-dives that most readers never need at once. Split the deep-dive sections into focused modules under site/reference/ and keep the ambient overview (key customizations, config, components, blog, dependency pinning) in SITE-ARCHITECTURE.md with a table of contents pointing at the modules. Sections that duplicated .agents/references/mdx-authoring.md (snippet syntax, frontmatter fields, MDX component usage) are removed from SITE-ARCHITECTURE.md; unique bits (sidebar badges, banner descriptions, Syntax usage boundaries) are merged into mdx-authoring.md. Content moves verbatim except for the deduplicated sections.
|
Issue: Suggestion: Since it's a one-line, non-conflicting edit (only the |
|
Issue: The new Suggestion: Add a |
|
Assessment: Comment (nearly ready — two link/consistency follow-ups) Clean, well-scoped restructure. I verified the moved sections landed verbatim (with headings correctly promoted for standalone files), the remaining Review Categories
The split boundaries and on-demand module approach read well — thanks for the clear PR write-up making the judgment calls easy to review. |
|
Both addressed in 0917f7c: added reference/ to the directory tree (plus a line in Integration with Other Files), and repointed the AGENTS.md:385 link to mdx-authoring.md#frontmatter-schema so no dangling anchor lands on main regardless of PR ordering. Note: #3288 deletes that whole section of site/AGENTS.md; whichever merges second will need a trivial rebase, and the link fix here is subsumed by #3288 if it goes first. |
|
Assessment: Approve ✅ Confirmed both follow-ups are resolved in
Content integrity was already verified as verbatim. Nothing else blocking — nice, clean restructure. Thanks for the quick turnaround. |
Documentation Preview ReadyYour documentation preview has been successfully deployed! Preview URL: https://d3ehv1nix5p99z.cloudfront.net/pr-cms-3295/docs/user-guide/quickstart/overview/ Updated at: 2026-07-16T20:25:41.779Z |
|
What's driving these changes? |
I am testing a skill to work on strandly that will keep the repos clean of bloat that will periodically review the site and look for simplifications, duplicate content, and overall best practices for both LLMs and code. |
|
Re-reviewed after the
Nothing new to address — good to merge once #3288 sequencing is settled. |
I'm semi concerned that we're going to have a lot of needless PRs - like continuous improvement is good, but I'd like to dedicate resources to things that we've identified as needs or useful? |
Fair point, I suppose not doing it automatically. To be clear, this wave is not representative of what it would look like ongoing. But I can see this being subjective somewhat, I did close some that I didn't think were practically useful. |
Description
Splits
site/SITE-ARCHITECTURE.md(926 lines) into on-demand reference modules so agents and contributors load only the subsystem they are working on, instead of the whole file as ambient context.What stays in
SITE-ARCHITECTURE.md(408 lines): the overview, Key Customizations (sidebar, route middleware, snippets plugin, link resolution,@apishorthand),astro.config.mjsdetails, custom component implementations, temporary migration files, blog, and dependency pinning, plus a table of the new modules.Moved to new focused modules under
site/reference/:site/reference/python-api-generation.mdsite/reference/typescript-api-generation.mdsite/reference/landing-page.mdsite/reference/url-redirects.mdsite/reference/llms-txt.mdContent moves verbatim, with a short header on each module pointing back to the overview.
Deduplicated against
.agents/references/mdx-authoring.md: the Custom Frontmatter Fields and MDX Components sections largely restated mdx-authoring.md, so they are removed from SITE-ARCHITECTURE.md in favor of links. Unique bits are merged into mdx-authoring.md: the Sidebar Badges frontmatter pattern, the exact banner texts rendered bylanguages/community/experimental, and the "neither Syntax nor Tabs" guidance for conceptual SDK differences. The MkDocs Snippets Plugin entry keeps its implementation notes (what/why) and links to mdx-authoring.md for syntax.Directory choice:
.agents/references/holds cross-cutting agent authoring references (voice, terminology, MDX patterns, code verification) consumed by the docs skills. These five modules are site implementation deep-dives, not authoring guidance, so they live next to SITE-ARCHITECTURE.md assite/reference/*.md, mirroring how SITE-ARCHITECTURE.md itself sits insite/. Happy to move them under.agents/references/instead if you prefer one bucket.Inbound references updated:
site/CONTRIBUTING.mdnow points frontmatter/MDX topics at mdx-authoring.md and API doc generation at the two new modules.site/AGENTS.mdL385 links to the moved#custom-frontmatter-fieldsanchor, but that line is inside the block a parallel PR is replacing with a pointer to mdx-authoring.md, so it is intentionally not touched here to avoid conflicts.Opening as a draft since the split boundaries are judgment calls worth shaping in review.
Related Issues
N/A
Documentation PR
This PR is itself a documentation restructure under
site/and.agents/.Type of Change
Documentation update
Testing
Docs-only change, no runtime surface. Verified link integrity by grepping the repo for
SITE-ARCHITECTUREand section anchors, and spot-checking that every moved section's content exists verbatim in exactly one new file.hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.