Skip to content

docs: add comprehensive documentation for the LexBuild monorepo - #60

Merged
chris-c-thomas merged 2 commits into
mainfrom
docs/new
Mar 22, 2026
Merged

docs: add comprehensive documentation for the LexBuild monorepo#60
chris-c-thomas merged 2 commits into
mainfrom
docs/new

Conversation

@chris-c-thomas

@chris-c-thomas chris-c-thomas commented Mar 22, 2026

Copy link
Copy Markdown
Owner

This pull request adds comprehensive documentation for the LexBuild project, including an overview of the platform, its architecture, the web application, and a detailed explanation of the internal AST (Abstract Syntax Tree) model. The documentation is organized to help developers understand the system's design, content pipeline, and extensibility.

Some of the most important changes are:

Project Overview and Structure:

  • Added a new documentation README.md that provides a high-level overview of LexBuild, its purpose, major features, architectural organization, and links to detailed documentation for each package and component.

Web Application Documentation:

  • Introduced docs/apps/astro.md, an in-depth guide to the Astro-based web application, covering its architecture, tech stack, routing, content serving, sidebar navigation, search integration, dark mode implementation, styling, development workflow, environment variables, directory structure, SEO strategies, and key design decisions.

AST Model and Rendering Pipeline:

  • Added docs/architecture/ast-model.md, a detailed specification of the LexBuild AST, including node types, transformation process from XML to Markdown, type definitions, rendering logic, and frontmatter metadata structure. This documentation explains how legal XML is normalized and rendered, supporting both U.S. Code and eCFR sources.

  - Architecture
  - Packages
  - Apps
  - Development
  - Reference
@chris-c-thomas chris-c-thomas self-assigned this Mar 22, 2026
@chris-c-thomas
chris-c-thomas requested a review from Copilot March 22, 2026 03:01
@chris-c-thomas chris-c-thomas added the docs Improvements or additions to documentation label Mar 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a comprehensive documentation set under docs/ for the LexBuild monorepo, covering architecture, package/app responsibilities, development workflows, and reference specifications intended to describe (and in some places normatively specify) LexBuild’s inputs/outputs.

Changes:

  • Introduces structured architecture/development/package/app documentation pages under docs/.
  • Adds reference specifications for USLM elements and LexBuild output format (frontmatter + sidecars).
  • Adds CLI/reference material intended to standardize usage and expected outputs.

Reviewed changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 19 comments.

Show a summary per file
File Description
docs/README.md Top-level documentation index linking to architecture/development/packages/apps/reference sections.
docs/apps/astro.md Describes the Astro app setup, dev/build commands, and content workflow.
docs/architecture/overview.md High-level architecture overview and component boundaries.
docs/architecture/monorepo-structure.md Monorepo layout and package/app roles.
docs/architecture/build-pipeline.md Turborepo/task pipeline documentation and common build/dev commands.
docs/architecture/conversion-pipeline.md End-to-end conversion flow (download → parse/build AST → render → write outputs).
docs/architecture/ast-model.md LexBuild AST model description and node responsibilities.
docs/architecture/link-resolution.md Cross-reference/link resolution behavior across USC/eCFR and fallbacks.
docs/architecture/performance.md Performance guidance and operational considerations.
docs/development/getting-started.md Local dev prerequisites and common workflows.
docs/development/testing.md Test strategy and how to run tests in the monorepo.
docs/development/coding-standards.md TypeScript/repo coding standards and conventions.
docs/development/debugging.md Debugging approaches and tips for converters/apps.
docs/development/extending.md Guidance for adding features/packages and extending pipelines.
docs/development/ci-cd.md CI/CD documentation and checks expected in automation.
docs/development/release-process.md Release/versioning process documentation.
docs/packages/core.md @lexbuild/core package responsibilities and APIs.
docs/packages/usc.md @lexbuild/usc responsibilities and USC-specific conversion details.
docs/packages/ecfr.md @lexbuild/ecfr responsibilities and eCFR-specific conversion details.
docs/packages/cli.md @lexbuild/cli command surface and how it ties packages together.
docs/reference/cli-reference.md CLI command/flag reference and examples.
docs/reference/output-format.md “Authoritative” spec for output directory layout, frontmatter, and sidecars.
docs/reference/uslm-element-reference.md USLM (USC XML) element catalog and mapping to AST/Markdown.
docs/reference/ecfr-element-reference.md eCFR element/identifier reference and mapping notes.
docs/reference/glossary.md Shared terminology definitions used across the documentation set.

Comment thread docs/reference/uslm-element-reference.md
Comment thread docs/reference/uslm-element-reference.md Outdated
Comment thread docs/reference/uslm-element-reference.md Outdated
Comment thread docs/reference/output-format.md Outdated
Comment thread docs/reference/output-format.md Outdated
Comment thread docs/development/getting-started.md Outdated
Comment thread docs/architecture/build-pipeline.md
Comment thread docs/architecture/build-pipeline.md Outdated
Comment thread docs/apps/astro.md Outdated
Comment thread docs/README.md Outdated
@sonarqubecloud

Copy link
Copy Markdown

@chris-c-thomas
chris-c-thomas merged commit e008c60 into main Mar 22, 2026
8 checks passed
@chris-c-thomas
chris-c-thomas deleted the docs/new branch March 22, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants