Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
34aa293
docs: remove deprecated sections and migrate content for v1 release (…
ihsraham Apr 29, 2026
eca1b3d
feat: nitrolite-clearnet separation (#145)
nksazonov Apr 30, 2026
ef2ccdf
[codex] Make Protocol tab App Layer ready (#144)
ihsraham May 4, 2026
d8789fe
YNU-864: Add language harness skeleton
ihsraham May 8, 2026
83add77
chore(docs): YNU-864 harness rule cleanup
ihsraham May 8, 2026
b7f5123
YNU-864: Build front door rewrite
ihsraham May 7, 2026
d167776
YNU-864: Add native v1 lifecycle quickstart
ihsraham May 7, 2026
2f43758
YNU-864: Address quickstart review comments
ihsraham May 13, 2026
faa1e6e
docs: address PR147 review nits
ihsraham May 13, 2026
e315048
YNU-864: Compat layer correctness + cookbooks
ihsraham May 7, 2026
937cf93
YNU-864: Fix compat codemod migration path
ihsraham May 7, 2026
f7ef6a3
YNU-864: Add MCP-assisted migration preview
ihsraham May 7, 2026
b68c4dd
YNU-864: Expand MCP client setup docs
ihsraham May 7, 2026
b2683b7
YNU-864: Add Build examples page
ihsraham May 7, 2026
fff80d0
YNU-864: Polish Build examples cards
ihsraham May 7, 2026
6e0949f
YNU-864: Center Build example screenshots
ihsraham May 7, 2026
c986601
YNU-864: Address compat docs review
ihsraham May 7, 2026
6b62239
docs: address compat review comments
ihsraham May 13, 2026
461e2a3
YNU-864: API Reference rebuild from api.yaml
ihsraham May 7, 2026
d85d899
YNU-864: Clarify API Reference orientation
ihsraham May 8, 2026
dd741d0
docs: address api reference review
ihsraham May 13, 2026
06d4b9e
YNU-864: Learn introduction rewrite
ihsraham May 8, 2026
efedafb
docs: address learn review comments
ihsraham May 15, 2026
c140e57
YNU-864: Native TS SDK polish and terminology
ihsraham May 8, 2026
6053195
docs: address sdk review comments
ihsraham May 15, 2026
22ccd7b
docs(nitrolite): YNU-864 reconcile learn and protocol
ihsraham May 19, 2026
00ac048
docs(nitrolite): add v053 mental model guide
ihsraham May 20, 2026
7d1cdd3
docs: address PR158 learn protocol review
ihsraham May 21, 2026
36cd884
docs: clarify off-chain funds integrity assumption
ihsraham May 21, 2026
03d07d0
docs: restore closing channel status wording
ihsraham May 21, 2026
87ee8bb
docs(nitrolite): YNU-864 clean build sdk and IA
ihsraham May 19, 2026
8b1b522
docs: remove Go security-token examples
ihsraham May 22, 2026
a92cace
chore: fold Snyk Docusaurus updates
ihsraham May 22, 2026
91458d2
chore: allow technical unlock wording in Vale
ihsraham May 22, 2026
7c9cbb7
chore: keep Vale advisory on rollup PRs
ihsraham May 22, 2026
68b7339
chore: run Vale advisory without reviewdog
ihsraham May 22, 2026
43072c9
docs: add v1 builder toolkit page
ihsraham May 22, 2026
2c75a38
docs: address builder toolkit review notes
ihsraham May 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Vale

on:
pull_request:
paths:
- ".github/workflows/vale.yml"
- ".pre-commit-config.yaml"
- ".vale.ini"
- ".vale/**"
- "docs/**/*.md"
- "docs/**/*.mdx"
- "templates/**/*.md"
- "templates/**/*.mdx"
workflow_dispatch:

permissions:
contents: read

jobs:
vale:
name: Vale advisory lint
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Install Vale
run: |
VALE_VERSION=3.14.2
curl -sSL "https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz" -o /tmp/vale.tar.gz
tar -xzf /tmp/vale.tar.gz -C /tmp vale
sudo mv /tmp/vale /usr/local/bin/vale
vale --version

- name: Run Vale
run: |
vale sync
set +e
vale --minAlertLevel=error docs templates
status=$?
if [ "$status" -ne 0 ]; then
echo "::warning::Vale found advisory issues. See the log above."
fi
exit 0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vercel
.gstack/
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: local
hooks:
- id: vale-docs
name: Vale docs language lint
entry: vale --minAlertLevel=error
language: system
files: ^(docs|templates)/.*\.(md|mdx)$
19 changes: 19 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
StylesPath = .vale/styles
MinAlertLevel = suggestion

[formats]
mdx = md

[*.{md,mdx}]
BasedOnStyles = Yellow

# Quadrant-specific rules. Off by default; per-folder overlays opt in.
Yellow.NoMetaphor = NO
Yellow.SpecVoice = NO
Yellow.NoNarrative = NO
Yellow.LearnCrossLink = NO
Yellow.ProtocolCrossLink = NO
Yellow.BuildPageShapeTLDR = NO
Yellow.BuildPageShapeStepByStep = NO
Yellow.BuildPageShapeVerify = NO
Yellow.BuildPageShapeNextSteps = NO
33 changes: 33 additions & 0 deletions .vale/styles/Yellow/AISlop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
extends: existence
message: "Avoid '%s'. Use direct, concrete wording."
level: error
ignorecase: true
tokens:
- "—"
- "–"
- "\\bdelve\\b"
- "\\bleverage\\b"
- "\\bharness(?:es|ed|ing)?\\s+(?:the|your|its|our|all|this|these|those|every|any)\\b"
- "\\bseamlessly\\b"
- "\\bseamless\\b"
- "\\brobust\\b"
- "\\bpowerful\\b"
- "\\bboasts?\\b"
- "\\beffortless\\b"
- "\\belevate\\b"
- "\\bstreamline\\b"
- "\\brevolutionary\\b"
- "\\bcutting-edge\\b"
- "\\bbleeding-edge\\b"
- "\\bin today's\\b"
- "\\bit's worth noting\\b"
- "\\bit is important to note\\b"
- "\\bnavigating the landscape\\b"
- "\\bthe world of\\b"
- "\\bat the end of the day\\b"
- "\\bthat being said\\b"
- "\\byou may want to\\b"
- "\\byou might consider\\b"
- "\\bfeel free to\\b"
- "\\bembark on your journey\\b"
- "\\bunlock the power of\\b"
6 changes: 6 additions & 0 deletions .vale/styles/Yellow/BuildPageShapeNextSteps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: occurrence
message: "Build how-to pages must include a '## Next steps' heading."
level: error
scope: raw
token: "(?m)^## Next steps\\b"
min: 1
6 changes: 6 additions & 0 deletions .vale/styles/Yellow/BuildPageShapeStepByStep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: occurrence
message: "Build how-to pages must include a '## Step-by-step' heading."
level: error
scope: raw
token: "(?m)^## Step-by-step\\b"
min: 1
6 changes: 6 additions & 0 deletions .vale/styles/Yellow/BuildPageShapeTLDR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: occurrence
message: "Build how-to pages must include a '## TL;DR' heading."
level: error
scope: raw
token: "(?m)^## TL;DR\\b"
min: 1
6 changes: 6 additions & 0 deletions .vale/styles/Yellow/BuildPageShapeVerify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: occurrence
message: "Build how-to pages must include a '## Verify' heading."
level: error
scope: raw
token: "(?m)^## Verify\\b"
min: 1
6 changes: 6 additions & 0 deletions .vale/styles/Yellow/LearnCrossLink.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: occurrence
message: "Learn pages must declare 'protocol_link' in frontmatter to point at their Protocol counterpart."
level: error
scope: raw
token: "(?m)^protocol_link:"
min: 1
10 changes: 10 additions & 0 deletions .vale/styles/Yellow/NeedBasedLabels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends: existence
message: "Consider a task-based title instead of internal label '%s'."
level: suggestion
scope: heading
ignorecase: true
tokens:
- "\\bwdk-wallet-ton\\b"
- "\\bnitronode-rpc-overview\\b"
- "\\bsdk-compat-eventpoller\\b"
- "\\bapp-sessions-multi-party\\b"
11 changes: 11 additions & 0 deletions .vale/styles/Yellow/NoMetaphor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends: existence
message: "Avoid analogy or metaphor in reference prose: '%s'."
level: warning
ignorecase: true
tokens:
- "\\blike a\\b"
- "\\blike an\\b"
- "\\bas if\\b"
- "\\bthink of\\b"
- "\\banalogy\\b"
- "\\bmetaphor\\b"
6 changes: 6 additions & 0 deletions .vale/styles/Yellow/NoNarrative.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: occurrence
message: "Reference prose should stay terse. Split long paragraphs before they become narrative."
level: warning
scope: paragraph
token: "\\b\\w+\\b"
max: 90
6 changes: 6 additions & 0 deletions .vale/styles/Yellow/ProtocolCrossLink.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: occurrence
message: "Protocol pages must declare 'learn_link' in frontmatter to point at their Learn counterpart."
level: error
scope: raw
token: "(?m)^learn_link:"
min: 1
10 changes: 10 additions & 0 deletions .vale/styles/Yellow/SpecVoice.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends: existence
message: "Use definitional spec voice instead of narrative phrasing: '%s'."
level: warning
ignorecase: true
tokens:
- "\\bwe (?:will|can|should|need to)\\b"
- "\\byou (?:will|can|should|need to)\\b"
- "\\blet's\\b"
- "\\bthis guide (?:shows|walks|explains)\\b"
- "\\bin this (?:guide|page|section)\\b"
7 changes: 7 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Codex Instructions for yellow-docs

- For Docusaurus changes, run `npm run typecheck` and `npm run build`.
- After build, run a local Docusaurus server with `npm run serve -- --host 127.0.0.1 --port <free-port>` and fetch each changed public route with `curl -fsS -L`.
- For navigation or versioning changes, fetch both current and versioned routes and confirm the expected links, labels, and version switch targets appear in the returned HTML.
- Internal Docusaurus doc links should be extensionless. Do not add `.md` or `.mdx` suffixes to Markdown links unless linking to a raw file intentionally.
- For Nitrolite protocol docs, keep content language-agnostic and source-bound to `/Users/maharshimishra/Documents/nitrolite/docs/protocol`.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,23 @@ GIT_USER=<Your GitHub username> yarn deploy
```

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

## Site Architecture

This site hosts two product docs as separate sub-sites under one Docusaurus instance:

- **`/nitrolite/*`** — State channel SDK docs (versioned 1.x / 0.5.x)
- **`/clearnet/*`** — Decentralized clearing protocol docs (unversioned)
- **`/`** — Portal landing page linking to both sub-sites

Source layout:

- `docs/nitrolite/` — Nitrolite content (managed by the preset's docs plugin)
- `docs/clearnet/` — Clearnet content (managed by a second `@docusaurus/plugin-content-docs` instance, id: `clearnet`)
- `sidebars-nitrolite.ts` / `sidebars-clearnet.ts` — sidebar configs per sub-site
- `src/theme/Navbar/Content/` — swizzled component that filters top-navbar items by current path (via `customProps.showOn`)

### Known Limitations

- **Search**: lunr-search uses a single index across both sub-sites. A query from `/nitrolite/...` may surface Clearnet results and vice versa. To scope search per sub-site, replace lunr-search with Algolia (separate indices) or a custom search component.
- **Versioned docs links**: `versioned_docs/version-0.5.x/` is a historical snapshot and still contains `/docs/...` links from when the site lived under that path. Those links break under the new `/nitrolite/0.5.x/...` routing. Either rewrite versioned content links or accept them as archived.
154 changes: 0 additions & 154 deletions docs/api-reference/app-sessions.md

This file was deleted.

Loading
Loading