typedoc icon indicating copy to clipboard operation
typedoc copied to clipboard

Generate pages corresponding to Markdown files in directories

Open DanielFlaum opened this issue 3 years ago • 6 comments

TypeDoc currently includes the content of README.md in the generated index.html. It would be useful if README.mds in subdirectories also caused corresponding pages to be generated. Doing so would add a way for directories themselves to be documented, creating a place to discuss project organization or other things that apply to more than a single file, as well as a place to document non-TypeScript files.

This should probably be labelled enhancement and plugin idea.

DanielFlaum avatar Feb 19 '22 21:02 DanielFlaum

This is something I'd like to include in TypeDoc itself, but will probably be a part of the guides work that's planned for 0.24, probably won't happen for a while...

Gerrit0 avatar Feb 20 '22 03:02 Gerrit0

Another, maybe simpler way, would be to just list a docs files with their path and create static docs from it, in a separate menu. Just to wrap existing docs into code-generated one.

cadavre avatar Apr 04 '22 07:04 cadavre

I see the Guides project board is now closed - do there happen to be plans for this idea now?

johnameyer avatar Jan 21 '23 21:01 johnameyer

I believe I closed it since GitHub started redirecting "old" projects to the new projects, and haven't gotten around to creating a new one since I've been meaning to finish 0.24 first, which won't include it. Have been busy with other things recently...

Gerrit0 avatar Feb 01 '23 03:02 Gerrit0

I would go one step further and say that generally all md files should be taken into account.

Suggested Solution

Similar to what Compodoc does, it would be extremely helpful if typedoc would consider md (Markdown) files that are in the same directory as the class and have the same filename. These MD files could be displayed in a tab from the displayed class or linked quite high up in the document.

Example

  • startup-config.service.ts
  • startup-config.service.md (this is the md file that belongs to the file above and should be integrated into its documentation)

Voo2 avatar May 13 '23 13:05 Voo2

Another vote for this. We have a monorepo-like structure with components living in their own directories, with their own READMEs. It would be nice if those READMEs were also picked up by typedoc.

LeaVerou avatar Jan 21 '24 16:01 LeaVerou