https://github.com/flarebyte/baldrick-doc-ts
Document generator for typescript projects
https://github.com/flarebyte/baldrick-doc-ts
documentation markdown npm-cli typescript
Last synced: 17 days ago
JSON representation
Document generator for typescript projects
- Host: GitHub
- URL: https://github.com/flarebyte/baldrick-doc-ts
- Owner: flarebyte
- License: mit
- Created: 2021-12-28T18:08:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T06:29:55.000Z (about 3 years ago)
- Last Synced: 2025-08-09T02:23:08.602Z (10 months ago)
- Topics: documentation, markdown, npm-cli, typescript
- Language: TypeScript
- Homepage:
- Size: 240 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# baldrick-doc-ts
  
  

> Documentation generator for typescript projects
Generation of documentation for node.js libraries written in Typescript

Highlights:
* Generate helpful documentation for a typescript project.
* Produce a [markdown file](INTERNAL.md) with an UML diagram in Mermaid of all the dependencies and the relationships between them.
* Generate API documentation as **markdown**. This provides a more
basic documentation that the default `typedoc` but does not generate
any html or css that would become part of the source code, and may
raise some warnings with many linters.
* Generate a markdown file with the [common vocabulary](CODE_VOCABULARY.md) used in the function names.
* Generate a [CSV](internal_functions.csv) with the list of typescript functions from the code base.
A few examples of commands:
Generate markdown document describing the api of the library:
```bash
npx baldrick-doc-ts@latest typedoc --json-source pest-spec/fixture/typedoc.json
```
Generate CODE_VOCABULARY.md with ngram of the code base vocabulary:
```bash
npx baldrick-doc-ts@latest parse --feature ngram
```
Generate INTERNAL.md with UML diagram in Mermaid of the dependencies:
```bash
npx baldrick-doc-ts@latest parse --feature internal
```
Generate internal_functions.csv with all the typescript functions:
```bash
npx baldrick-doc-ts@latest parse --feature functions-csv
```
## Documentation and links
* [Code Maintenance](MAINTENANCE.md)
* [Code Of Conduct](CODE_OF_CONDUCT.md)
* [Api for baldrick-doc-ts](API.md)
* [Contributing](CONTRIBUTING.md)
* [Glossary](GLOSSARY.md)
* [Diagram for the code base](INTERNAL.md)
* [Vocabulary used in the code base](CODE_VOCABULARY.md)
* [Architectural Decision Records](DECISIONS.md)
* [Contributors](https://github.com/flarebyte/baldrick-doc-ts/graphs/contributors)
* [Dependencies](https://github.com/flarebyte/baldrick-doc-ts/network/dependencies)
* [Usage](USAGE.md)
## Related
* [baldrick-zest-engine](https://github.com/flarebyte/baldrick-zest-engine) Run tests declaratively with a few cunning plans
## Installation
This package is [ESM only](https://blog.sindresorhus.com/get-ready-for-esm-aa53530b3f77).
```bash
yarn global add baldrick-doc-ts
baldrick-doc-ts --help
```
Or alternatively run it:
```bash
npx baldrick-doc-ts --help
```
If you want to tun the latest version from github. Mostly useful for dev:
```bash
git clone git@github.com:flarebyte/baldrick-doc-ts.git
yarn global add `pwd`
```