denoland / website_feedback

For reporting issues & suggestions for deno.com and deno.land
9 stars 1 forks source link

Provide a way to document a directory without a default module #20

Open kitsonk opened 2 years ago

kitsonk commented 2 years ago

Currently when displaying an index of modules, we extract the module JSDoc tag from the default module in a path and display that as a summary.

If the dir doesn't have a default module, we display nothing, which makes it hard to navigate large collections of modules (like std). We need a mechanism/convention to allow this to be documented.

Options I can think of:

In writing them down, I like the _doc.json solution the best, as it would solve a few problems, and we can add the JSON-Schema to the editor extension to help people author the document, though authoring markdown in JSON is yucky. We could of course support more than one, like the _doc.json but then try the README.md if not present.