@clean-jsdoc-theme/typedoc

中文文档
5.2.1发布于 2026/10/24MITTypeScriptES Module构建来源已验证近 30 天下载 9014

TypeDoc support for clean-jsdoc-theme (renders via setu → dwar)

原始使用文档
文档目录6 节
  1. Highlights
  2. Quick start
  3. Documentation
  4. Contributing 🤝
  5. Contributors
  6. License
clean-jsdoc-theme

A fast, modern, LLM-friendly documentation site for your TypeScript project, powered by TypeDoc.

npm version npm downloads license docs live demo stars forks issues contributors sponsor socket

clean-jsdoc-theme — light theme clean-jsdoc-theme — dark theme

A TypeDoc plugin that turns your project's reflections into a fast, modern static site: server-rendered HTML, lazily-hydrated interactive islands, fuzzy + full-text search, light and dark themes, and a companion .md of every page for LLMs.

Highlights

  • Built for TypeScript — your TypeDoc reflections become a structured API model, then a polished static site. No CSS or build config to get started.
  • Fast & framework-free — server-rendered pages with lazily-hydrated Preact islands; each page loads only the JS it actually uses.
  • Search built in — a fuzzy command palette (Ctrl K) over titles, descriptions, content, and per-member deep links. Always on, nothing to configure.
  • Guides + API in one site — hand-written Markdown guides and the auto-generated reference share one sidebar and one search.
  • Localization in progress — the clean-jsdoc i18n tooling already extracts translatable strings from a TypeDoc project; the full per-locale build (with a language switcher, per-language fonts, and hreflang) is landing next.
  • LLM-friendly — every page ships a clean companion .md, plus a copy-page button to hand any page to Claude / ChatGPT / Perplexity. A downloadable skill turns any coding assistant into a setup expert.
  • Polished by default — light/dark OKLCH themes, Google Fonts, shiki syntax highlighting, a Monaco source viewer, and Source: file:line links.

Quick start

npm install --save-dev typedoc @clean-jsdoc-theme/typedoc

typedoc is a peer dependency — you bring your own. Load the plugin and select its output in typedoc.json; theme options live under cleanJsdocTheme:

{
  "entryPoints": ["src/index.ts"],
  "plugin": ["@clean-jsdoc-theme/typedoc"],
  "outputs": [{ "name": "clean-jsdoc-theme", "path": "dist" }],
  "cleanJsdocTheme": {
    "siteName": "My Library",
    // Optional: a directory of hand-written Markdown/HTML guides rendered
    // alongside the API (folder layout → URL + sidebar group; per-file
    // frontmatter overrides; a root `index.md` becomes the home page).
    "docs": "docs"
  }
}

The home page comes from TypeDoc's own top-level "readme" option (or a root docs/index.md). Both readme and the theme block sit at the top level of typedoc.json — readme is TypeDoc's, the theme options nest under cleanJsdocTheme.

Build, then serve over HTTP (the island chunks and the search index are fetched, which file:// blocks):

npx typedoc
npx serve dist

Documentation

Contributing 🤝

Feedback shapes this plugin directly, and contributors are welcome:

  • 🐛 Hit a bug or odd output? Open an issue with a small reproduction — that's the single most useful thing you can do.
  • 💡 Missing something or have an idea? Feature requests and questions are welcome in the issue tracker.
  • 🛠️ Want to dig in? PRs are genuinely welcome. The adapter lives in packages/typedoc/ (its NOTES.md records the verified TypeDoc API facts it relies on). Friendly areas to start: type rendering, reflection edge cases, and the localized build. See CONTRIBUTING.md.

No contribution is too small — a typo fix, a repro, or a docs tweak all help. Verified against TypeDoc 0.28.x. Thanks for helping make the TypeScript documentation story great. ❤️

Contributors

Thanks to everyone who has helped build clean-jsdoc-theme.

Contributors

License

MIT © Ankit Kumar

版本与发布记录

@clean-jsdoc-theme/typedoc 共发布 18 个版本,首次发布于 2026/06/10;过去 12 个月发布了 18 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.2.1latest2026/10/2416 天前
5.2.02026/08/282 个月前
5.1.12026/07/293 个月前
5.1.02026/07/243 个月前
5.0.82026/07/183 个月前
5.0.72026/07/074 个月前

其他发布通道:next → 5.0.0-alpha.0。

关于 @clean-jsdoc-theme/typedoc 的常见问题

@clean-jsdoc-theme/typedoc 是什么?

TypeDoc support for clean-jsdoc-theme (renders via setu → dwar)

如何安装 @clean-jsdoc-theme/typedoc?

在项目目录运行 npm install @clean-jsdoc-theme/typedoc,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typedoc(^0.28.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@clean-jsdoc-theme/typedoc 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@clean-jsdoc-theme/typedoc 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@clean-jsdoc-theme/typedoc 可以商用吗?

@clean-jsdoc-theme/typedoc 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@clean-jsdoc-theme/typedoc 的下载量有多少?

根据 npm 官方下载统计,@clean-jsdoc-theme/typedoc 在 2026/10/10 – 2026/11/08 这 30 天内被下载 9,014 次,日均约 300 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@clean-jsdoc-theme/typedoc 还在维护吗?

最新版本 5.2.1 发布于 2026/10/24(16 天前);至今共发布 18 个版本,其中过去 12 个月发布了 18 个;首次发布于 2026/06/10。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。