Skip to content

Update documentation and remove unnecessary files#10

Merged
chris-c-thomas merged 6 commits intomainfrom
dev
Mar 4, 2026
Merged

Update documentation and remove unnecessary files#10
chris-c-thomas merged 6 commits intomainfrom
dev

Conversation

@chris-c-thomas
Copy link
Copy Markdown
Owner

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

This pull request focuses on improving documentation and developer onboarding for the law2md project, clarifying architecture, conventions, and workflow. It updates the main contributor and workspace guides, expands technical references, and removes obsolete configuration files. The changes aim to make the repository easier to understand and maintain, especially for new contributors.

Documentation and Onboarding Improvements:

  • Major rewrite and expansion of .github/copilot-instructions.md to include a project overview, package boundaries, architecture, key files, tech stack, error handling, testing conventions, design decisions, output file naming, and common XML/USLM pitfalls. References to detailed docs are clarified, and instructions are made more actionable for developers. [1] [2]
  • Substantial improvements to CONTRIBUTING.md, adding clearer setup instructions, command examples, formatting/naming conventions, error handling guidance, and descriptive test case naming. The project structure and workflow are now more explicit for new contributors. [1] [2] [3] [4] [5] [6] [7]

Technical Reference Updates:

  • Updates to CLAUDE.md to reflect the current tech stack (removing DOM parsing, clarifying dependencies), update CLI usage examples, and clarify file naming and output conventions for edge cases like appendix titles and duplicate sections. Key design decisions and common pitfalls are better documented. [1] [2] [3] [4] [5] [6]

Repository Maintenance:

  • Removal of the obsolete .mcp.json configuration file.
  • Addition of a new changelog entry for version 0.7.1, noting general repository maintenance and cleanup.

Summary by CodeRabbit

  • Documentation

    • Expanded README with comprehensive installation, usage, performance, and roadmap sections.
    • Enhanced contributor guides with improved setup instructions, testing conventions, and code styling guidelines.
    • Clarified CLI usage examples and output structure documentation.
  • Chores

    • Version bumped to 0.8.0 across all packages.
    • Simplified project configuration.

@chris-c-thomas chris-c-thomas requested a review from Copilot March 4, 2026 00:57
@chris-c-thomas chris-c-thomas self-assigned this Mar 4, 2026
@chris-c-thomas chris-c-thomas added docs Improvements or additions to documentation enhancement Enhancements made to exisiting features or codebase feature New feature implemented labels Mar 4, 2026
@chris-c-thomas chris-c-thomas merged commit d304137 into main Mar 4, 2026
2 of 4 checks passed
@chris-c-thomas chris-c-thomas deleted the dev branch March 4, 2026 00:57
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 4, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Free

📥 Commits

Reviewing files that changed from the base of the PR and between e16ceb2 and 739dd87.

📒 Files selected for processing (13)
  • .github/copilot-instructions.md
  • .gitignore
  • .mcp.json
  • CHANGELOG.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • README.md
  • packages/cli/CHANGELOG.md
  • packages/cli/package.json
  • packages/core/CHANGELOG.md
  • packages/core/package.json
  • packages/usc/CHANGELOG.md
  • packages/usc/package.json

📝 Walkthrough

Walkthrough

This pull request performs repository cleanup and documentation expansion. It bumps package versions from 0.7.0 to 0.8.0 across the monorepo, removes the context7 MCP server integration, and updates .gitignore to ignore the MCP configuration file. Documentation is substantially expanded across multiple files to clarify build processes, architectural decisions, CLI usage, and project structure.

Changes

Cohort / File(s) Summary
Documentation Expansion
.github/copilot-instructions.md, CLAUDE.md, CONTRIBUTING.md, README.md
Comprehensive updates to documentation with expanded sections on project overview, build/test commands, CLI usage, architectural details, code styling, testing conventions, and design decisions. README substantially overhauled with table-of-contents layout, features enumeration, performance metrics, and roadmap.
Configuration Changes
.gitignore, .mcp.json
Modified .gitignore to actively ignore .mcp.json file instead of noting it as intentionally not ignored. Removed context7 MCP server integration configuration from .mcp.json.
Changelog Updates
CHANGELOG.md, packages/cli/CHANGELOG.md, packages/core/CHANGELOG.md, packages/usc/CHANGELOG.md
Added new version entries (0.7.1 and 0.8.0) with "Cleanup repo" minor changes and updated dependency references across all changelogs.
Version Bumps
packages/cli/package.json, packages/core/package.json, packages/usc/package.json
Version updates from 0.7.0 to 0.8.0 across all workspace packages.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR primarily updates project documentation and onboarding materials for the law2md monorepo, while also removing obsolete MCP config and bumping package versions/changelogs.

Changes:

  • Expanded/rewrote key docs (README.md, CONTRIBUTING.md, CLAUDE.md, .github/copilot-instructions.md) to clarify architecture, conventions, workflow, and references.
  • Removed obsolete .mcp.json and updated .gitignore accordingly.
  • Bumped package versions to 0.8.0 and added 0.8.0 entries to package changelogs; also added a root changelog entry.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/usc/package.json Bumps @law2md/usc version to 0.8.0.
packages/usc/CHANGELOG.md Adds 0.8.0 changelog entry for usc package.
packages/core/package.json Bumps @law2md/core version to 0.8.0.
packages/core/CHANGELOG.md Adds 0.8.0 changelog entry for core package.
packages/cli/package.json Bumps law2md CLI package version to 0.8.0.
packages/cli/CHANGELOG.md Adds 0.8.0 changelog entry for CLI package.
README.md Major README expansion (usage, output, performance, roadmap, etc.).
CONTRIBUTING.md More explicit setup/workflow/conventions/testing guidance.
CLAUDE.md Updates tech stack and design/pitfall reference material.
CHANGELOG.md Adds root changelog entry for 0.7.1.
.mcp.json Removes obsolete MCP config file.
.gitignore Now ignores .mcp.json.
.github/copilot-instructions.md Major expansion of workspace instructions and repository guidance.

Comment thread README.md
fragments/ XML snippets for unit tests
expected/ Expected output snapshots
docs/ Architecture, output format spec, extension guide
docs/ Architecture, XML reference, output format, exending
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

Typo in the project structure description: exendingextending.

Suggested change
docs/ Architecture, XML reference, output format, exending
docs/ Architecture, XML reference, output format, extending

Copilot uses AI. Check for mistakes.
Comment thread CLAUDE.md
Comment on lines 286 to 288

6. **Streaming output**: Sections are written to disk as they are parsed. The converter never holds an entire title's worth of AST in memory simultaneously.

Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

This states sections are written as they are parsed, but convertTitle() currently collects all emitted nodes during parsing and only writes after parsing completes (see packages/usc/src/converter.ts, where it pushes into collected and iterates after parseStream). This doc section is inaccurate and also conflicts with the later “Collect-then-write pattern” bullet; please update to match the actual behavior.

Copilot uses AI. Check for mistakes.
- **Section as atomic unit**: Each section is its own Markdown file. Subsections render inline, not as separate files.
- **Collect-then-write**: Sections are collected during SAX streaming and written after the stream completes.
- **Frontmatter + sidecar**: YAML frontmatter on every .md file AND `_meta.json` per directory.
- **Notes are opt-in**: Default output includes only statutory text and source credits. Notes require CLI flags.
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

The “Notes are opt-in” bullet doesn’t match current CLI behavior: convert defaults to including notes (--include-notes is true by default, with --no-include-notes to exclude). Consider rewording this to reflect that selective note categories are opt-in, or change it to “notes are included by default”.

Suggested change
- **Notes are opt-in**: Default output includes only statutory text and source credits. Notes require CLI flags.
- **Notes are included by default**: `convert` emits notes unless `--no-include-notes` is passed; selective note categories are opt-in via CLI flags.

Copilot uses AI. Check for mistakes.
Comment thread packages/cli/package.json
Comment on lines 1 to 4
{
"name": "law2md",
"version": "0.7.0",
"version": "0.8.0",
"description": "Convert U.S. legislative XML (USLM) to structured Markdown for AI/RAG ingestion",
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

This PR bumps package versions to 0.8.0, but the PR title/description emphasize documentation cleanup and mention a 0.7.1 changelog entry. Please confirm the 0.8.0 version bump is intentional and align the PR description and changelog/release notes accordingly (either document 0.8.0 changes, or avoid bumping versions here).

Copilot uses AI. Check for mistakes.
Comment thread CHANGELOG.md
Comment on lines +10 to +15
## [0.7.1]

### Changed

- **Organization**: General repository maintenance and cleanup.

Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

Root CHANGELOG adds a 0.7.1 entry, but all packages in this PR are bumped to 0.8.0 with their own 0.8.0 changelog entries. This mixed versioning is likely to confuse readers/users; consider updating the root changelog to 0.8.0 as well (or clarify what the root changelog versioning represents).

Copilot uses AI. Check for mistakes.
Comment thread README.md
- [Overview](#overview)
- [Features](#features)
- [Installation](#installation)
- [Quick Start](#quick-start)
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

Table of Contents links to #installation, but the corresponding section header is ## Install, so the anchor will be #install and the TOC link will be broken. Update the TOC entry (or the header) so the anchor matches.

Suggested change
- [Quick Start](#quick-start)
- [Quick Start](#quickstart)

Copilot uses AI. Check for mistakes.
Comment thread README.md
last_updated: "2025-12-03"
format_version: "1.0.0"
generator: "law2md@0.5.0"
generator: "law2md@0.7.0"
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

The sample frontmatter shows generator: "law2md@0.7.0", but the generator string is computed from the package version at runtime (and this PR bumps versions to 0.8.0). This example will be stale; consider updating it to 0.8.0 or making it version-agnostic (e.g., law2md@<version>).

Suggested change
generator: "law2md@0.7.0"
generator: "law2md@<version>"

Copilot uses AI. Check for mistakes.
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 enhancement Enhancements made to exisiting features or codebase feature New feature implemented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants