Abstract base class for generating wiki files. Please make sure to register your WikiMaker implementation in the CLI wiki tool to have it executed: src/cli/wiki.ts.

If this wiki page produces multiple pages ("sub files"), you can use writeSubFile inside the text method to write those additional files.

Hierarchy (View Summary)

Implements

Hierarchy-Diagram

UML class diagram of DocMaker

Constructors

  • Protected

    Creates a new WikiMaker instance.

    Parameters

    • target: PathLike

      The target path where the wiki file will be generated.

    • filename: string

      The name of the file being generated. Probably use module.filename.

    • purpose: string

      The purpose of the file, e.g., 'wiki context for types'.

    • printHeader: boolean = true

      Whether to print the auto-generation header. Default is true. Only mark this false if you plan to add it yourself.

    Returns DocMaker

Methods

  • Please note that for subfiles you have to always add your own header

    Parameters

    • path: PathLike
    • data: string

    Returns boolean