Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/davidenke/mkdocs-ts

MkDocs to Typescript converter
https://github.com/davidenke/mkdocs-ts

Last synced: 29 days ago
JSON representation

MkDocs to Typescript converter

Awesome Lists containing this project

README

        

# MkDocs to Typescript Converter

This has been thrown together in a sleepless night 🌙.

After digging into the georgeous [Scriptable app](https://scriptable.app/) I wanted to improve the developer experience by providing types for the Scriptable API. So all efforts have been a bit biased to my needs to parse the [provided documentation](https://docs.scriptable.app/scriptable.json).

## Improvements

Some missing things that would be nice once another sleepless night comes around:

- some unit tests
- using e.g. ts-morph to build the AST
- running it against some other generated docs
- typings for the mkdocs json format (is there at least some schema out there?)

## Installation

```bash
npm i -D @davidenke/mkdocs-ts
```

or

```bash
npm install --save-dev @davidenke/mkdocs-ts
```

or

```bash
pnpm install --dev @davidenke/mkdocs-ts
```

or

```bash
yarn add --dev @davidenke/mkdocs-ts
```

## Usage

`mkdocs-ts `

```bash
npm run mkdocs-ts ./example.json example.d.ts
```

or

```bash
npm run mkdocs-ts https://some.remote/example.json example.d.ts
```