Skip to content

chore: add Claude Code config for docs site#131

Open
ihsraham wants to merge 1 commit intomasterfrom
chore/claude-code-setup
Open

chore: add Claude Code config for docs site#131
ihsraham wants to merge 1 commit intomasterfrom
chore/claude-code-setup

Conversation

@ihsraham
Copy link
Copy Markdown
Collaborator

@ihsraham ihsraham commented Mar 30, 2026

Summary

  • CLAUDE.md: Docusaurus site context — commands, structure, content conventions, versioning
  • .claude/settings.json: Permission allow/deny lists for safe AI-assisted development
  • .claude/rules/docs.md: MDX/Markdown conventions (frontmatter, admonitions, Mermaid, relative links)
  • .gitignore: Updated to exclude local Claude files

Test plan

  • Fresh Claude Code session — ask "how do I add a docs page?" ferences CLAUDE.md
  • npm run build auto-allowed (no permission prompt)
  • git push --force blocked by deny list
  • Rules trigger when editing docs/**/*.md files

Summary by CodeRabbit

  • Documentation

    • Established documentation standards and conventions (frontmatter requirements, MDX/Markdown guidelines, admonitions, diagrams, code samples, and linking practices).
    • Added comprehensive developer reference guide with commands, folder structure, versioning mechanics, and Git workflow conventions.
  • Chores

    • Added configuration settings and local artifact ignore patterns for development environment.

Set up AI-assisted development tooling:
- CLAUDE.md with Docusaurus site context, commands, and conventions
- .claude/settings.json with permission allow/deny lists
- .claude/rules/docs.md for MDX/Markdown conventions
- .gitignore updated to exclude local Claude files
@ihsraham ihsraham requested a review from dpatsora as a code owner March 30, 2026 09:22
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 2026

📝 Walkthrough

Walkthrough

This pull request adds configuration and documentation files for the Claude Code assistant and the project's Docusaurus documentation site. The changes include assistant rules, execution permissions, git ignore patterns, and a comprehensive guide establishing documentation standards and site structure.

Changes

Cohort / File(s) Summary
Claude Assistant Configuration
.claude/rules/docs.md, .claude/settings.json
Added documentation authoring conventions (frontmatter, MDX vs Markdown, callouts, Mermaid diagrams, relative linking, runnable code samples, static image storage) and execution permission allowlist/denylist for npm, npx, git, and gh commands.
Git Configuration
.gitignore
Added ignore rules for Claude local artifacts: .claude/settings.local.json and .claude/agent-memory/ directory.
Documentation Guide
CLAUDE.md
Added comprehensive guide for Yellow Network/Nitrolite Docusaurus site including quick-reference commands, folder structure, versioning mechanics, content conventions, Algolia search setup, repository files overview, and Git workflow conventions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Hops of joy for docs so fine,
Config rules in perfect line,
Claude's assistant takes its place,
Guiding code with gentle grace,
Documentation blooms today,
Standards light the developer's way! 🌟

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding Claude Code configuration for the documentation site. It clearly captures the primary objective of the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/claude-code-setup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
.claude/settings.json (1)

3-19: Consider expanding allowlist to include existing low-risk docs scripts.

Line 3–19 currently omits project scripts like npm run clear, npm run write-translations, and npm run write-heading-ids (from package.json), which may create avoidable prompts during normal docs maintenance.

Suggested diff
     "allow": [
       "npm start*",
       "npm run build*",
       "npm run serve*",
+      "npm run clear*",
       "npm run typecheck*",
       "npm run sync:*",
       "npm run version:*",
+      "npm run write-translations*",
+      "npm run write-heading-ids*",
       "npx prettier*",
       "npx docusaurus*",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.claude/settings.json around lines 3 - 19, The .claude settings "allow"
array is missing low-risk docs scripts; update the "allow" array to include the
missing script patterns by adding entries for "npm run clear*", "npm run
write-translations*", and "npm run write-heading-ids*" so those commands will be
whitelisted; locate the "allow" array in .claude/settings.json and append those
three string patterns to it (matching the existing glob style).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.claude/rules/docs.md:
- Line 2: Update the globs array so blog MDX files are included: modify the
globs entry (globs: ["docs/**/*.md", "docs/**/*.mdx", "blog/**/*.md"]) to also
include "blog/**/*.mdx" so the pattern becomes globs: ["docs/**/*.md",
"docs/**/*.mdx", "blog/**/*.md", "blog/**/*.mdx"]; change the globs symbol in
.claude/rules/docs.md accordingly.

---

Nitpick comments:
In @.claude/settings.json:
- Around line 3-19: The .claude settings "allow" array is missing low-risk docs
scripts; update the "allow" array to include the missing script patterns by
adding entries for "npm run clear*", "npm run write-translations*", and "npm run
write-heading-ids*" so those commands will be whitelisted; locate the "allow"
array in .claude/settings.json and append those three string patterns to it
(matching the existing glob style).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e7883aeb-d923-42ff-9a54-6559021f7f13

📥 Commits

Reviewing files that changed from the base of the PR and between 99b7991 and 95e9ccc.

📒 Files selected for processing (4)
  • .claude/rules/docs.md
  • .claude/settings.json
  • .gitignore
  • CLAUDE.md

@@ -0,0 +1,12 @@
---
globs: ["docs/**/*.md", "docs/**/*.mdx", "blog/**/*.md"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add blog/**/*.mdx to rule globs.

Line 2 currently applies blog rules only to Markdown files. If blog posts use MDX, these conventions won’t trigger there.

Suggested diff
-globs: ["docs/**/*.md", "docs/**/*.mdx", "blog/**/*.md"]
+globs: ["docs/**/*.md", "docs/**/*.mdx", "blog/**/*.md", "blog/**/*.mdx"]
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
globs: ["docs/**/*.md", "docs/**/*.mdx", "blog/**/*.md"]
globs: ["docs/**/*.md", "docs/**/*.mdx", "blog/**/*.md", "blog/**/*.mdx"]
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.claude/rules/docs.md at line 2, Update the globs array so blog MDX files
are included: modify the globs entry (globs: ["docs/**/*.md", "docs/**/*.mdx",
"blog/**/*.md"]) to also include "blog/**/*.mdx" so the pattern becomes globs:
["docs/**/*.md", "docs/**/*.mdx", "blog/**/*.md", "blog/**/*.mdx"]; change the
globs symbol in .claude/rules/docs.md accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant