@ankhorage/paradox

中文文档
0.3.6发布于 2026/10/29MITTypeScriptES Module构建来源已验证近 30 天下载 9万

Deterministic documentation generator for TypeScript packages.

原始使用文档
文档目录11 节
  1. Usage
  2. CLI
  3. Basic Usage
  4. Configuration
  5. Generated documentation
  6. Public API
  7. Config
  8. Documentation
  9. Types
  10. Collaborators
  11. Donation

@ankhorage/paradox

license: MIT npm: v0.3.6 runtime: bun typescript: strict eslint: checked prettier: checked build: checked tests: checked paradox: canonical

Deterministic documentation generator for TypeScript packages.

Usage

CLI

Ankhorage packages expose their command-line interface through ankh. Use ankh --help to discover available package commands, or run a package command with --help for package-specific usage.

# Install the Ankhorage CLI
bun add --global @ankhorage/ankh

# Show usage information for paradox
ankh paradox --help

Basic Usage

Paradox generates documentation from the canonical package structure. Usage documentation lives only below examples/** or src/cli/**. A repository may contain multiple @usage examples, but exactly one example below examples/** is promoted into README with @readme.

README-promoted usage provides an explicit @title and non-empty prose. Code always comes from real source declarations rather than duplicated code blocks inside Paradox comments.

export const basicConfig = defineParadoxConfig({
  mode: 'safe',
});

Configuration

Configures Paradox documentation generation for a package.

Configuration options
FieldTypeRequiredDefaultDescription
mode'safe' | 'write' | undefinedno—
collaboratorstrue | undefinedno—
donation{ account: string; } | undefinedno—
docs{ title?: string; description?: string; } | undefinedno—
package{ root?: string; entrypoints?: string[]; } | undefinedno—
output{ dir?: string; } | undefinedno—

Generated documentation

Public API

Config

defineParadoxConfig
defineParadoxConfig(config: ParadoxConfig) => ParadoxConfig

Defines a Paradox configuration object without changing its shape.

Module: src/config/defineParadoxConfig.ts Source: src/config/defineParadoxConfig.ts:8:1 Related symbols: ParadoxConfig

Documentation

PARADOX_DOC_TAGS

Supported Paradox documentation tags projected from the canonical documentation Rules provider.

Module: src/doc-tags/registry.ts Source: src/doc-tags/registry.ts:33:14

Types

Configuration

Configures Paradox documentation generation for a package.

Module: src/types/config.ts Source: src/types/config.ts:9:1

Collaborators

Donation

If this project is useful to you, you can support its continued development.

Support @ankhorage

版本与发布记录

@ankhorage/paradox 共发布 75 个版本,首次发布于 2026/04/24;过去 12 个月发布了 75 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.3.6latest2026/10/297 天前
0.3.52026/10/1719 天前
0.3.42026/10/1125 天前
0.3.32026/10/1027 天前
0.3.22026/10/1027 天前
0.3.12026/10/0829 天前

关于 @ankhorage/paradox 的常见问题

@ankhorage/paradox 是什么?

Deterministic documentation generator for TypeScript packages.

如何安装 @ankhorage/paradox?

在项目目录运行 npm install @ankhorage/paradox,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 paradox,可以用 npx paradox 直接运行。

@ankhorage/paradox 支持 TypeScript 吗?

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

@ankhorage/paradox 支持 ESM 还是 CommonJS?

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

@ankhorage/paradox 可以商用吗?

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

@ankhorage/paradox 的下载量有多少?

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

@ankhorage/paradox 还在维护吗?

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