Skip to content

As a user I want the TOC to show the first Title instead of filename by default #2

@arcmode

Description

@arcmode

Hey @johtela , Litscript is looking awesome, thanks for working on it!

Here's my issue. I was trying to get a nice TOC but given my project has a lot of "index.ts" files I feel like I need either:

  • A new configuration for the TOC in order to let html-waver or lits-template decide what to use
  • A different default value for the TOC entries

(thinking about using the first title in the document as TOC entry)

If there is a way to achieve what I need without having to write the toc.json file myself that would be awesome, is there any?

Also, I am more than happy to send a PR if you provide some guidance and acceptance criteria

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions