Skip to main content

MkDocs plugin to generate documentation from TypeScript source code using TypeDoc.

Project description

Mkdocs-Typedoc Plugin

PyPI

The Mkdocs-Typedoc Plugin is designed to integrate TypeDoc documentation with your MkDocs project.

Installation

Install the plugin using pip from PyPI:

pip install mkdocs-typedoc

Ensure that you have Node.js installed in your system. If not, you can download it from the official website.

Also, install TypeDoc using NPM:

npm install typedoc typescript --save-dev

Usage

Add the following lines to your mkdocs.yml:

plugins:
  - typedoc:
      source: './ts-examples/@types/*.d.ts'
      output_dir: 'typedocApi'
      tsconfig: './ts-examples/tsconfig.json'
      options: 'typedoc.json'
      name: 'API Doc'
      disable_system_check: False
  • source (required): The path to your TypeScript source code.
  • output_dir (optional): The directory where you want to output your docs. Default is "typedoc".
  • tsconfig (required): The path to the tsconfig file for your project.
  • options (optional): The path to the typedoc.json options file with more options.
  • name (optional): The name for the generated documentation. Default is "TypeDoc API".
  • disable_system_check (optional): Disable the TypeScript system check. Default is False.

The plugin will generate TypeDoc documentation into the output directory specified.

Windows machines

System might not work on Windows machines, if you would like to test it on Windows, set disable_system_check to True.

Error message:

INFO     -  Building documentation...
INFO     -  Cleaning site directory
ERROR    -  TypeDoc: TypeDoc failed with error: [WinError 2] The system cannot find the file specified

If anyone knows how to fix this, please let me know or create a pull request.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Do You Enjoy My Work?

Then definitely consider:

  • supporting me on GitHub Sponsors:

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-typedoc-1.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

mkdocs_typedoc-1.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-typedoc-1.0.1.tar.gz.

File metadata

  • Download URL: mkdocs-typedoc-1.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.17

File hashes

Hashes for mkdocs-typedoc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0bfddbacbf2ad4af619eab564ca43326d10a71a2a7ae047d662d6b39918e1094
MD5 8097a6afecfcfff241126ad94d36e5fa
BLAKE2b-256 b2d2ae6bc20d6f09e278b55ae5ddf020993d55a6315a6e6f9137bc09854b16f7

See more details on using hashes here.

File details

Details for the file mkdocs_typedoc-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_typedoc-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69a37d0db7220a3ba2aef40a07e3209a6226b9b9e164ff41e67d4ebcc7ab3f52
MD5 e729883e38c9ef6f11c8b68be1c6f043
BLAKE2b-256 331315bf6f24a430491f69c9abb0f2b8952881d8397bd2732be9857b9f7304c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page