Class TimeLineIndexPages

Constructors

Properties

directoryPath: string = 'chapters/'

Methods

  • Logs and returns TypeScript files in chapters.

    Returns FileDescriptor[]

    FileDescriptor[] - An array of objects containing the directory and filename of each timeline.ts file.

    Searches for all timeline.ts files within the global directoryPath directory and returns an array of objects containing the directory and filename of each file.

  • Populates all timelines.

    Creates index pages for all timelines found in the specified directories.

    Returns Promise<void>

  • Populates a timeline with events and writes it to an output file.

    Parameters

    • datesContainers: DatesContainer[]

      An array of date containers representing timeline events.

    • title: string

      The title of the timeline.

    • outputFilename: string

      The path to the output file where the timeline HTML will be written.

    Returns void

    Generates HTML content for a timeline based on the provided date containers, title, and output filename. Writes the generated HTML to the specified output file.

    Error - If datesContainers is empty.

    Error - If title is empty.

    Error - If outputFilename is not a .qmd file.