Skip to main content

Signatures for entire TypeScript programs using TypeDoc.

Project description

Griffe TypeDoc

documentation gitter

Signatures for entire TypeScript programs using TypeDoc.

WARNING: Still in prototyping phase! Feedback is welcome.

Installation

This project is available to sponsors only, through my Insiders program. See Insiders explanation and installation instructions.

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.

Finally, load your TypeScript API data with Griffe TypeDoc:

from griffe_typedoc.loader import load

data = load(
    "typedoc",  # name or path of the typedoc executable
    working_directory=".",  # point at your monorepo
)

See our API reference.

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

griffe_typedoc-0.1.0.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

griffe_typedoc-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file griffe_typedoc-0.1.0.tar.gz.

File metadata

  • Download URL: griffe_typedoc-0.1.0.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for griffe_typedoc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bcfe7e35aff9710c27d88c624d0fcb8c3b2b8a57b7cd21ffdbb5a0ee5e42991e
MD5 8112976df62c5ba860002c9f8bb2c6d7
BLAKE2b-256 fb5877ac76798b5e6bbeb2aac32f31c49070f87282ad03e995cc2e849d6d837a

See more details on using hashes here.

File details

Details for the file griffe_typedoc-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for griffe_typedoc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1c418774a6a4451d1773c51563d2f12500652eacba4aa432da673145cb281fb
MD5 6bdf24fe6d7f98bd2f28c30e99e2abfc
BLAKE2b-256 e39cfc41d10a13bc5d9852b9454a73093ed77aa2cfbd515fa8dfc14d7cd2d8ad

See more details on using hashes here.

Supported by

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