-
Notifications
You must be signed in to change notification settings - Fork 6
chore: add Claude Code config for docs site #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ihsraham
wants to merge
1
commit into
master
Choose a base branch
from
chore/claude-code-setup
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+115
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| globs: ["docs/**/*.md", "docs/**/*.mdx", "blog/**/*.md"] | ||
| --- | ||
|
|
||
| - Use MDX for pages needing interactive components; plain Markdown for simple content. | ||
| - Always include frontmatter with at least `title` and `sidebar_position`. | ||
| - Use Mermaid code blocks for diagrams (theme plugin is configured). | ||
| - Use Docusaurus admonitions (`:::note`, `:::tip`, `:::warning`, `:::danger`) for callouts. | ||
| - Links between docs must be relative paths, not absolute URLs. | ||
| - Code examples must be complete and runnable — no pseudo-code in tutorials. | ||
| - Images go in `static/img/` and are referenced as `/img/filename.png`. | ||
| - When adding a new doc page, update the relevant sidebar file (`sidebars.ts` or `sidebarsYellowSdk.ts`). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "permissions": { | ||
| "allow": [ | ||
| "npm start*", | ||
| "npm run build*", | ||
| "npm run serve*", | ||
| "npm run typecheck*", | ||
| "npm run sync:*", | ||
| "npm run version:*", | ||
| "npx prettier*", | ||
| "npx docusaurus*", | ||
| "git status*", | ||
| "git log*", | ||
| "git diff*", | ||
| "git branch*", | ||
| "gh pr *", | ||
| "gh issue *", | ||
| "gh run *" | ||
| ], | ||
| "deny": [ | ||
| "git push --force*", | ||
| "git reset --hard*", | ||
| "rm -rf *", | ||
| "npm publish*" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # Yellow Network Documentation Site | ||
|
|
||
| Docusaurus 3.9.2 documentation site for Yellow Network / Nitrolite protocol. | ||
|
|
||
| ## Quick Reference | ||
|
|
||
| | Command | What it does | | ||
| |---------|-------------| | ||
| | `npm start` | Dev server on :3000 | | ||
| | `npm run build` | Production build | | ||
| | `npm run serve` | Serve production build locally | | ||
| | `npm run typecheck` | TypeScript type check | | ||
| | `npm run sync:contracts` | Sync contract docs from nitrolite repo | | ||
| | `npm run version:release` | Create a new versioned snapshot | | ||
| | `npm run version:remove` | Remove a version | | ||
|
|
||
| ## Site Configuration | ||
|
|
||
| - **Config:** `docusaurus.config.ts` — site metadata, plugins, theme config | ||
| - **Sidebars:** `sidebars.ts` (main) + `sidebarsYellowSdk.ts` (SDK section) | ||
| - **Tailwind:** `tailwind.config.js`, `postcss.config.js` | ||
| - **TypeScript:** `tsconfig.json` | ||
| - **URL:** https://docs.yellow.org | ||
|
|
||
| ## Documentation Structure | ||
|
|
||
| | Path | Content | | ||
| |------|---------| | ||
| | `docs/learn/` | Conceptual explainers (architecture, state channels, clearing) | | ||
| | `docs/guides/` | How-to guides (integration, setup) | | ||
| | `docs/tutorials/` | Step-by-step walkthroughs | | ||
| | `docs/api-reference/` | SDK and contract API reference | | ||
| | `docs/protocol/` | Protocol specification | | ||
| | `docs/build/` | Builder guides | | ||
|
|
||
| ## Versioning | ||
|
|
||
| - Versioned docs live in `versioned_docs/` and `versioned_sidebars/` | ||
| - `versions.json` tracks released versions | ||
| - Scripts in `scripts/` manage version lifecycle | ||
|
|
||
| ## Content Conventions | ||
|
|
||
| - Use **MDX** for interactive content, plain **Markdown** for simple pages | ||
| - Always include frontmatter: `title`, `sidebar_position` (minimum) | ||
| - Diagrams: use Mermaid (theme plugin included) | ||
| - Admonitions: `:::note`, `:::tip`, `:::warning`, `:::danger` | ||
| - Code blocks must be complete and runnable | ||
| - Use relative links between docs (not absolute URLs) | ||
| - Images go in `static/img/` | ||
|
|
||
| ## Search | ||
|
|
||
| - Primary: Algolia DocSearch | ||
| - Fallback: Lunr (local, `docusaurus-lunr-search`) | ||
|
|
||
| ## Key Files | ||
|
|
||
| | File | Purpose | | ||
| |------|---------| | ||
| | `docusaurus.config.ts` | Site config, plugins, navbar, footer | | ||
| | `sidebars.ts` | Main sidebar structure | | ||
| | `sidebarsYellowSdk.ts` | SDK docs sidebar | | ||
| | `src/pages/` | Custom pages (landing, whitepaper) | | ||
| | `src/css/custom.css` | Global style overrides | | ||
| | `scripts/sync-contracts-docs.js` | Syncs Solidity NatSpec to docs | | ||
|
|
||
| ## Git | ||
|
|
||
| - Default branch: `master` | ||
| - PR target: `master` | ||
| - Commit style: `docs|feat|fix(scope): message` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add
blog/**/*.mdxto 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
📝 Committable suggestion
🤖 Prompt for AI Agents