Skip to content

docs: rework the README and add a Fumadocs documentation site#27

Merged
t41372 merged 2 commits into
mainfrom
feat/docs-site
Jul 23, 2026
Merged

docs: rework the README and add a Fumadocs documentation site#27
t41372 merged 2 commits into
mainfrom
feat/docs-site

Conversation

@t41372

@t41372 t41372 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Two logical changes, one per commit.

README rework

  • Retuned the English intro and What it does copy; the run screen is consistently the launch menu (never "form").
  • Capped the banner width (<img width>) so it renders as a banner instead of filling the pane in GitHub / VS Code / the docs landing.
  • Synced README.zh-TW and README.zh-CN with the reworked copy (idiomatic, not literal) and aligned the PromptRunner term (執行器 / 执行器) with the product UI.
  • Stopped tracking the generated demo videos (docs/assets/demo-*.mp4) — they're uploaded to GitHub user-attachments, so tracking them only balloons history.

Documentation site

  • A static-export Fumadocs site under docs/, deployed to GitHub Pages by .github/workflows/docs.yml (zizmor-clean, every action SHA-pinned).
  • The landing page renders the repo README (included at build time, so it can't drift); deep-reference pages cover what the README leaves out — CLI, parameters & values, environment variables, configuration, script types, prompts, AI agents, and troubleshooting/FAQ.
  • English-only for now, with the i18n structure already in place (adding zh later = config + content, no restructuring).
  • A build-time link checker (docs/scripts/check-links.mjs) fails the build on any broken internal link or #anchor.
  • AGENTS.md documents how to edit the docs.

After merge (manual, one-time)

  • Set Settings → Pages → Source to GitHub Actions so the deploy workflow can publish.

https://claude.ai/code/session_019FQ5d3ryWn6nxkaQ5VsDZm

Summary by CodeRabbit

  • New Features

    • Added a searchable documentation website with command references, configuration guidance, environment details, troubleshooting, script types, prompts, and AI-agent integration.
    • Added static documentation publishing with localized routing, generated page metadata, shareable content, and an accessible root redirect.
    • Added automated link validation to help ensure documentation navigation and references remain functional.
  • Documentation

    • Refreshed English, Simplified Chinese, and Traditional Chinese README content, usage instructions, language guidance, and uninstall steps.
    • Added documentation site setup and contribution guidance.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@t41372, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 44 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 07993cd1-6a5c-4484-b47f-ce80cf27f950

📥 Commits

Reviewing files that changed from the base of the PR and between be56a00 and 56c991c.

⛔ Files ignored due to path filters (4)
  • docs/app/icon.png is excluded by !**/*.png
  • docs/assets/demo-en.mp4 is excluded by !**/*.mp4
  • docs/assets/demo-zh.mp4 is excluded by !**/*.mp4
  • docs/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (47)
  • .github/workflows/docs.yml
  • .gitignore
  • AGENTS.md
  • README.md
  • README.zh-CN.md
  • README.zh-TW.md
  • docs/.gitignore
  • docs/README.md
  • docs/app/[lang]/(home)/layout.tsx
  • docs/app/[lang]/(home)/page.tsx
  • docs/app/[lang]/(home)/redirect-to-docs.tsx
  • docs/app/[lang]/docs/[[...slug]]/page.tsx
  • docs/app/[lang]/docs/layout.tsx
  • docs/app/[lang]/layout.tsx
  • docs/app/api/search/route.ts
  • docs/app/global.css
  • docs/app/llms-full.txt/route.ts
  • docs/app/llms.mdx/docs/[[...slug]]/route.ts
  • docs/app/llms.txt/route.ts
  • docs/app/og/docs/[...slug]/route.tsx
  • docs/components/mdx.tsx
  • docs/components/provider.tsx
  • docs/components/search.tsx
  • docs/content/docs/ai-agents.mdx
  • docs/content/docs/cli.mdx
  • docs/content/docs/configuration.mdx
  • docs/content/docs/environment.mdx
  • docs/content/docs/index.mdx
  • docs/content/docs/meta.json
  • docs/content/docs/parameters.mdx
  • docs/content/docs/prompts.mdx
  • docs/content/docs/script-types.mdx
  • docs/content/docs/troubleshooting.mdx
  • docs/lib/cn.ts
  • docs/lib/i18n.ts
  • docs/lib/layout.shared.tsx
  • docs/lib/shared.ts
  • docs/lib/source.ts
  • docs/next.config.mjs
  • docs/package.json
  • docs/postcss.config.mjs
  • docs/public/.nojekyll
  • docs/public/index.html
  • docs/scripts/check-links.mjs
  • docs/scripts/sync-readme.mjs
  • docs/source.config.ts
  • docs/tsconfig.json
📝 Walkthrough

Walkthrough

This PR adds a Fumadocs-based static documentation site with multilingual routing, searchable content, MDX pages, LLM endpoints, generated metadata and images, static-link validation, and GitHub Pages deployment. README content is synchronized into the documentation landing page.

Changes

Documentation site

Layer / File(s) Summary
Documentation content and source configuration
docs/content/docs/*, docs/source.config.ts, docs/lib/*, docs/scripts/sync-readme.mjs
Adds CLI, configuration, environment, parameter, prompt, script-type, AI-agent, and troubleshooting documentation with README-backed landing content and MDX processing.
Site configuration and page source
docs/next.config.mjs, docs/package.json, docs/tsconfig.json, docs/postcss.config.mjs, docs/lib/*
Configures the private Next.js/Fumadocs static-export application, locale support, shared routes, content loading, and build tooling.
Rendered pages and documentation endpoints
docs/app/*, docs/components/*, docs/app/global.css
Adds language layouts, documentation rendering, search, MDX image handling, metadata, OG images, search routes, and LLM markdown endpoints.
Static validation and GitHub Pages publishing
.github/workflows/docs.yml, docs/scripts/check-links.mjs, docs/public/index.html, README*.md, AGENTS.md, .gitignore
Adds static link and anchor validation, root redirection, GitHub Pages build/deployment, README updates, documentation guidance, and demo-video ignore rules.

Estimated code review effort: 4 (Complex) | ~60 minutes

Poem

I’m a rabbit with docs in my den,
Pages bloom from README again.
Links hop, builds fly,
Search beams through the sky,
GitHub Pages welcomes them in!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 3.70% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 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 two main changes: README rework and the new Fumadocs docs site.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/docs.yml:
- Around line 9-15: Update the paths list in the workflow trigger to include the
repository’s README.md alongside the existing docs and workflow patterns, so
README-only changes trigger the Pages build.

In `@docs/scripts/sync-readme.mjs`:
- Around line 10-11: Update the path setup near src and dest to derive the
script directory with dirname(fileURLToPath(import.meta.url)) instead of
import.meta.dirname, while preserving the existing README source and generated
destination resolution.

In `@README.md`:
- Line 1: Add a localized top-level H1 heading before the banner in README.md
(English), README.zh-CN.md (Simplified Chinese), and README.zh-TW.md
(Traditional Chinese), preserving the existing banner immediately after each
heading.
- Around line 220-221: Update the Linux uninstall command to use XDG-aware
parameter expansions for data, state, and config directories instead of
hardcoded defaults. Apply this change in README.md lines 220-221,
README.zh-CN.md lines 218-219, and README.zh-TW.md lines 218-219, preserving the
existing skit removal targets.
🪄 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: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 27050559-f4c2-4c2a-a9ee-df7182187c25

📥 Commits

Reviewing files that changed from the base of the PR and between a9c811a and be56a00.

⛔ Files ignored due to path filters (4)
  • docs/app/icon.png is excluded by !**/*.png
  • docs/assets/demo-en.mp4 is excluded by !**/*.mp4
  • docs/assets/demo-zh.mp4 is excluded by !**/*.mp4
  • docs/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (47)
  • .github/workflows/docs.yml
  • .gitignore
  • AGENTS.md
  • README.md
  • README.zh-CN.md
  • README.zh-TW.md
  • docs/.gitignore
  • docs/README.md
  • docs/app/[lang]/(home)/layout.tsx
  • docs/app/[lang]/(home)/page.tsx
  • docs/app/[lang]/(home)/redirect-to-docs.tsx
  • docs/app/[lang]/docs/[[...slug]]/page.tsx
  • docs/app/[lang]/docs/layout.tsx
  • docs/app/[lang]/layout.tsx
  • docs/app/api/search/route.ts
  • docs/app/global.css
  • docs/app/llms-full.txt/route.ts
  • docs/app/llms.mdx/docs/[[...slug]]/route.ts
  • docs/app/llms.txt/route.ts
  • docs/app/og/docs/[...slug]/route.tsx
  • docs/components/mdx.tsx
  • docs/components/provider.tsx
  • docs/components/search.tsx
  • docs/content/docs/ai-agents.mdx
  • docs/content/docs/cli.mdx
  • docs/content/docs/configuration.mdx
  • docs/content/docs/environment.mdx
  • docs/content/docs/index.mdx
  • docs/content/docs/meta.json
  • docs/content/docs/parameters.mdx
  • docs/content/docs/prompts.mdx
  • docs/content/docs/script-types.mdx
  • docs/content/docs/troubleshooting.mdx
  • docs/lib/cn.ts
  • docs/lib/i18n.ts
  • docs/lib/layout.shared.tsx
  • docs/lib/shared.ts
  • docs/lib/source.ts
  • docs/next.config.mjs
  • docs/package.json
  • docs/postcss.config.mjs
  • docs/public/.nojekyll
  • docs/public/index.html
  • docs/scripts/check-links.mjs
  • docs/scripts/sync-readme.mjs
  • docs/source.config.ts
  • docs/tsconfig.json

Comment thread .github/workflows/docs.yml
Comment thread docs/scripts/sync-readme.mjs Outdated
Comment thread README.md
@@ -1,4 +1,4 @@
![skit — script launcher and parameter manager](https://raw.githubusercontent.com/t41372/skit/main/docs/assets/banner.png)
<img src="https://raw.githubusercontent.com/t41372/skit/main/docs/assets/banner.png" alt="skit — script launcher and parameter manager" width="750">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add a top-level heading before each README banner.

All three README variants fail the first-line heading check and are used as user-facing landing documents.

  • README.md#L1-L1: add the English H1 before the banner.
  • README.zh-CN.md#L1-L1: add the Simplified Chinese H1 before the banner.
  • README.zh-TW.md#L1-L1: add the Traditional Chinese H1 before the banner.
🧰 Tools
🪛 markdownlint-cli2 (0.23.0)

[warning] 1-1: First line in a file should be a top-level heading

(MD041, first-line-heading, first-line-h1)

📍 Affects 3 files
  • README.md#L1-L1 (this comment)
  • README.zh-CN.md#L1-L1
  • README.zh-TW.md#L1-L1
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 1, Add a localized top-level H1 heading before the banner
in README.md (English), README.zh-CN.md (Simplified Chinese), and
README.zh-TW.md (Traditional Chinese), preserving the existing banner
immediately after each heading.

Source: Linters/SAST tools

Comment thread README.md Outdated
t41372 added 2 commits July 23, 2026 06:28
…tions

Retune the English intro and "what it does" copy, render the run screen as the
"launch menu" throughout, and cap the banner width so it reads as a banner
instead of filling the pane. Bring README.zh-TW / README.zh-CN in sync with the
reworked copy. Stop tracking the generated demo videos (docs/assets/demo-*.mp4)
— they're uploaded to GitHub user-attachments, and tracking them balloons
history.
A static-export Fumadocs site under docs/, deployed to GitHub Pages via
.github/workflows/docs.yml (zizmor-clean, SHA-pinned actions). The landing page
renders the repo README; deep-reference pages — CLI, parameters, environment
variables, configuration, script types, prompts, AI agents, and troubleshooting
— cover detail the README leaves out. English-only for now, with the i18n
structure already in place. A build-time link checker (docs/scripts/check-links.mjs)
fails the build on any broken internal link or anchor. AGENTS.md documents how to
edit the docs.
@t41372

t41372 commented Jul 23, 2026

Copy link
Copy Markdown
Owner Author

Addressed the CodeRabbit review (folded into the existing two commits):

  • 🟠 Trigger Pages build on README.md — fixed. The landing page renders README.md, so README.md is now in on.push.paths (kept after the docs/** exclusions so docs/assets etc. stay filtered out). Only the English README needs it — the zh READMEs aren't rendered on the site.
  • 🟡 import.meta.dirname portability — fixed in both sync-readme.mjs and check-links.mjs (the latter uses the same idiom), switched to dirname(fileURLToPath(import.meta.url)).
  • 🟡 Linux uninstall honors XDG — fixed in all three READMEs; the rm -rf now uses ${XDG_DATA_HOME:-$HOME/.local/share}/skit etc., matching the comment's claim.
  • 🟡 Top-level H1 before the banner (MD041)skipped. The banner image is the title (with descriptive alt text), and on the docs landing the README is embedded in a page that already supplies its own H1 ("Overview") from frontmatter — adding # skit would render a second, redundant heading. This is a lint-style preference, not a correctness issue.

Verified: docs build + link checker green, zizmor clean, scripts import cleanly.

@t41372
t41372 merged commit c4a7dcd into main Jul 23, 2026
14 checks passed
@t41372
t41372 deleted the feat/docs-site branch July 23, 2026 13:38
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