Files
backstage/packages/docgen
dependabot[bot] 613e46d234 chore(deps): bump fs-extra from 9.1.0 to 10.0.0
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases)
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/9.1.0...10.0.0)

---
updated-dependencies:
- dependency-name: fs-extra
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 11:29:50 +00:00
..
2021-06-18 20:26:42 +02:00
2021-06-18 20:26:42 +02:00
2020-07-19 14:27:35 +02:00

DocGen - API Reference Documentation Generator

The docgen package provides a CLI to generate markdown documentation for all exported ApiRefs in @backstage/core. The documentation is generated based on exported ApiRef instances and their type parameters.

The CLI supports generating both TechDocs and GitHub Markdown, where the TechDocs one provides some better linking and syntax highlighting.

Usage

To generate markdown documentation in the top-level docs/ directory, run the following:

yarn docgen

TODO

This package was lifted out from the Spotify internal Backstage project and could use some further work:

  • Use a higher-level TypeScript compiler library, e.g. ts-morph.
  • Support for generating docs for any package or multiple packages.
  • Better handling of self-referencing types in APIs, e.g. ConfigApi.