Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gillchristian/docs-ts-mkdocs


https://github.com/gillchristian/docs-ts-mkdocs

docs generator typescript

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# docs-ts-mkdocs

An [MkDocs](https://www.mkdocs.org/) generator from [docs-ts](https://github.com/gcanti/docs-ts) documentation.

## Rationale & How It Works

[docs-ts](https://github.com/gcanti/docs-ts) output is meant to be deployed with
[GitHub Pages](https://pages.github.com/) (using [Jekyll](https://jekyllrb.com/) under the hood).

`docs-ts-mkdocs` must be run after `docs-ts`: it adds a `nav:` section to `mkdocs.yml` based on the generated `docs/`
directory.

All the directories and markdown files in `docs/` are added to the main navigation. And the `docs/modules` is treversed
adding `index.md` files on every directory with a table of contents of the directory files.

## Install and use

```
npm i --dev docs-ts docs-ts-mkdocs
```

```
npm run docs-ts
npm run docs-ts-mkdocs
```

See [docs-ts](https://github.com/gcanti/docs-ts) on how to configure.

NOTES: for now the `outDir` is expected to be `docs/` (the default one).