A documentation generator for typescript.
  • TypeScript 97.1%
  • JavaScript 2.9%
Find a file
2021-10-09 17:06:31 +03:00
.github More documentation, better help, init flag 2021-10-01 19:57:50 +03:00
docsPages/Guides two more options, bug fixes, render template literal types 2021-10-09 17:06:31 +03:00
src two more options, bug fixes, render template literal types 2021-10-09 17:06:31 +03:00
.eslintrc.json Setup 2021-07-30 21:32:49 +03:00
.gitignore Initial commit 2021-07-30 20:53:42 +03:00
.npmignore npmignore 2021-10-03 18:27:29 +03:00
LICENSE Initial commit 2021-07-30 20:53:42 +03:00
package-lock.json two more options, bug fixes, render template literal types 2021-10-09 17:06:31 +03:00
package.json two more options, bug fixes, render template literal types 2021-10-09 17:06:31 +03:00
README.md Fix image link 2021-10-08 23:48:57 +03:00
tsconfig.json npmignore, generate changelogs 2021-10-03 18:27:52 +03:00

ts-docs

An opinionated documentation generator for typescript - generate informative and accurate documentation sites with zero setup.

If you want to check out how a typical ts-docs documentation looks like, head over to the official docs, found here.

Example

Installation

npm i --save-dev @ts-docs/ts-docs @ts-docs/default-docs-structure 

Usage

In order for ts-docs to generate proper documentation, you need to give it one or multiple "project entry points". Every entry point should point to a different project. You can find out more information about all the options ts-docs has here.

Simple usage which uses the default options:

ts-docs src/index.ts

Features

  • Documentation structure akin to docs-rs and rust in general, every folder inside the project is a different module.
  • Document multiple projects, monorepo support out of the box.
  • Slick design, dark/light theme, powerful search function.
  • Link external references to their respective documentation.
  • Out of the box branches documentation, generate documentation for multiple branches.
  • Changelog generation, pulled from github releases.
  • Built-in custom pages support. Host your guides and tutorials right inside the documentation.
  • 100% accurate, you won't find missing references unless they're external.

This documentation generator may not work on your project at all, although most typescript projects follow the structure the generator supports.

Contributing

Contributions are appreciated, feel free to open an issue or a pull request here.

Make sure to read the contribution guide