Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ docflow Public

A TypeScript-first documentation generator from JSDoc comments

License

Notifications You must be signed in to change notification settings

toss/docflow

Repository files navigation

English | 한국어

Docflow is a TypeScript-first documentation generator that automatically creates API documentation from JSDoc comments.

  • Docflow automatically generates comprehensive documentation from JSDoc comments, supporting essential tags like @public, @category, and @example.
  • Designed with AI integration in mind, Docflow can generate complete JSDoc comments for your functions with a single @generate tag.
  • Docflow provides accurate TypeScript type extraction, ensuring your documentation always matches your actual code signatures.
  • Docflow includes a powerful plugin system, allowing you to generate documentation for VitePress, Docusaurus, Nextra, and more.

Examples

import { createCalculator } from "@toss/utils";
/**
 * @public
 * @category Math
 * Creates a calculator instance with the given initial value
 * @param initialValue - The starting value for calculations
 * @returns A calculator object with calculation methods
 * @example
 * const calc = createCalculator(10);
 * calc.add(5).multiply(2).getValue(); // 30
 */
export function createCalculator(initialValue: number) {
 return {
 add: (n: number) => createCalculator(initialValue + n),
 multiply: (n: number) => createCalculator(initialValue * n),
 getValue: () => initialValue,
 };
}

With just docflow build, this becomes a beautiful documentation page with examples, type information, and more.

Contributing

We welcome contribution from everyone in the community. Read below for detailed contribution guide.

CONTRIBUTING

License

MIT © Toss. See LICENSE for details.

Toss

About

A TypeScript-first documentation generator from JSDoc comments

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

AltStyle によって変換されたページ (->オリジナル) /