documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Separated sections for each module

Open PolGuixe opened this issue 8 years ago • 4 comments

I am having some trouble setting up the documentationJS for my project. Right now I am using the command-line and I have been experimenting with:

documentation build -f md --document-exported > DOCS.md
documentation build -f md --document-exported --shallow > DOCS.md
documentation build  client/ ** -f md  --document-exported > DOCS.md
...

But all I achieved is generating untidy docs 😓.

The project structure is ⬇️

root
   |
   |-- client
   |        |
   |        | --modules
   |        |         |
   |        |         |--module A
   |        |         |         |--components
   |        |         |         |--containers
   |        |         |--module B
   |        |         |
   |        |         |--module C
...
   |--server
   |       |  
   |       |--Pubs
   |       |  
   |       |--Methods
   |       |        |
   |       |        |--foo.js 
   |       |        |
   |       |        |--bar.js 

I would like to obtain something like ⬇️

Client

Module A

Components

{...docs for each component}

Containers

{...docs for each container}

Module B

{...same for module B}

Module C

{...same for module C}

...

Server

Pubs

{ ... docs for pubs }

Methods

Foo

{ ... docs for foo}

Bar

{ ... docs for bar}

PolGuixe avatar Feb 02 '17 05:02 PolGuixe

By creating a documentation.yml file!, you can manually organize documentation any way you want! Unfortunately it doesn't yet affect Markdown output yet (tracking that issue here)

tmcw avatar Feb 04 '17 23:02 tmcw

@tmcw, I don’t understand how to specify module TOC elements from your reference to documentation.yml. The TOC looks like it’s entirely based around classes. In the project I’m documenting, my modules just export functions, no classes. I’d like to have a TOC entry per module. Is that possible today?

jmakeig avatar Apr 13 '17 16:04 jmakeig

yep. Want to know how to solve the function problem.

toxic-johann avatar May 27 '17 03:05 toxic-johann

Looks like documentation still does not have an option to sort or group docs by module. On to another doc api.

hgs-fredarters avatar Dec 19 '18 19:12 hgs-fredarters