documentationjs / documentation

:book: documentation for modern JavaScript
http://documentation.js.org/
Other
5.79k stars 483 forks source link

readme markdown injection does not include the table of contents #935

Open zachlysobey opened 7 years ago

zachlysobey commented 7 years ago

I have documentation.js@5.3.2 installed as a dev-dependency and am using it with an npm script configured as follows

documentation readme -s Documentation src/**

Previously I was doing:

documentation build src/** -f md -o docs.md

The README injection works like a charm. But I was a bit disappointed that I no longer get a table of contents. I'm not sure if I'm missing some relevant option, but if not, it would be awesome if this feature were supported.

jaydenseric commented 6 years ago

Strange, I get one.

babaskate commented 4 years ago

documentation build src/** -f md -o docs.md

I get a TOC with the above command, but not when I use the node API directly.