#markdown #json #documentation #json-parser #convert #json-file #typedoc

app typedoc_json_to_md

Converts TypeDoc JSON generated by typedoc-json-parser to Markdown

6 releases

0.3.3 Jun 3, 2024
0.3.2 Jun 3, 2024
0.2.0 Jun 2, 2024
0.1.0 Jun 2, 2024

#830 in Parser implementations

MIT license

21KB
344 lines

TJP-TO-MD

A CLI tool to take the markdown generated by Typedoc JSON Parser and turn it into Markdown Files

Reasoning

  • MD files is easier to display on a site than a specialised JSON file.
  • Using ESM only modules with next has caused me issues in the past.
  • Allows for viewing within GitHub / Any Markdown Viewer
  • Allows projects to copy relevant parts of documentation easier

Configuration:

The CLI can be configured by placing a tjp_to_md.toml file into the root of the fiolder where the parsing will happen. This should look like:

input_dir= "<your input directory>"
output_dir = "<your output directory>"
max_threads = 5
regen_all = false

Alternatively, you can run tjp-to-md gen_config

License

This project is licensed under MIT :)

Dependencies

~2–12MB
~85K SLoC