A Typescript handler for mkdocstrings.
Project description
mkdocstrings-typescript
A Typescript handler for mkdocstrings.
WARNING: Still in prototyping phase! Feedback is welcome.
Installation
pip install mkdocstrings-typescript
Usage
Add these TypeDoc configuration files to your repository:
./
src/
package1/
typedoc.base.json
typedoc.json
{
"$schema": "https://typedoc.org/schema.json",
"includeVersion": true
}
{
"extends": ["./typedoc.base.json"],
"entryPointStrategy": "packages",
"entryPoints": ["./src/*"]
}
Update the entrypoints to match your file layout so that TypeDoc can find your packages. See TypeDoc's configuration documentation.
Then in each of your package, add this TypeDoc configuration file:
./
src/
package1/
typedoc.json
typedoc.base.json
typedoc.json
{
"extends": ["../../typedoc.base.json"],
"entryPointStrategy": "expand",
"entryPoints": ["src/index.d.ts"]
}
Again, update entrypoints to match your file and package layout. See TypeDoc's configuration documentation.
Your packages must be built for TypeDoc to work.
You are now able to use the TypeScript handler to inject API docs in your Markdown pages by referencing package names:
::: @owner/packageName
handler: typescript
You can set the Typescript handler as default handler:
plugins:
- mkdocstrings:
default_handler: typescript
By setting it as default handler you can omit it when injecting documentation:
::: @owner/packageName
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocstrings_typescript-0.1.0.tar.gz.
File metadata
- Download URL: mkdocstrings_typescript-0.1.0.tar.gz
- Upload date:
- Size: 52.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cee525df74a1a9967e00ba14fb05b7588512ad7ce10677bbb7ddebcfc934488f
|
|
| MD5 |
375c705cf75cf9247c95faf91efc3119
|
|
| BLAKE2b-256 |
4bb43ed53f5bbd83355d10a1927251ee4ea8dc958529e93d8e018b55def84091
|
File details
Details for the file mkdocstrings_typescript-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mkdocstrings_typescript-0.1.0-py3-none-any.whl
- Upload date:
- Size: 36.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2221bd4ad2a10d74f424c9c2d9ed6ae7b347574ae464f7e282f524f3b794d904
|
|
| MD5 |
5c02472c0e4a52784bf00cd69f4d24bf
|
|
| BLAKE2b-256 |
373a4a5b4a3b9831ea5e0286c31e9d5b2fc4de4101b5fe64a47ea0692b7d822a
|