mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-25 14:26:29 +00:00
Adds a new option, `--no-markdown-toc`, to turn off Table of Contents generation. Table of contents are now generated by default with markdown output, including through the `readme` command. Fixes https://github.com/documentationjs/documentation/issues/220
110 lines
2.2 KiB
JSON
110 lines
2.2 KiB
JSON
{
|
|
"type": "root",
|
|
"children": [
|
|
{
|
|
"type": "html",
|
|
"value": "<!-- Generated by documentation.js. Update this documentation by updating the source code. -->"
|
|
},
|
|
{
|
|
"depth": 3,
|
|
"type": "heading",
|
|
"children": [
|
|
{
|
|
"type": "text",
|
|
"value": "Table of Contents"
|
|
}
|
|
],
|
|
"data": {
|
|
"id": "table-of-contents",
|
|
"htmlAttributes": {
|
|
"id": "table-of-contents"
|
|
},
|
|
"hProperties": {
|
|
"id": "table-of-contents"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "list",
|
|
"ordered": false,
|
|
"children": [
|
|
{
|
|
"type": "listItem",
|
|
"loose": false,
|
|
"children": [
|
|
{
|
|
"type": "paragraph",
|
|
"children": [
|
|
{
|
|
"type": "link",
|
|
"title": null,
|
|
"url": "#returntwo",
|
|
"children": [
|
|
{
|
|
"type": "text",
|
|
"value": "returnTwo"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"depth": 2,
|
|
"type": "heading",
|
|
"children": [
|
|
{
|
|
"type": "text",
|
|
"value": "returnTwo"
|
|
}
|
|
],
|
|
"data": {
|
|
"id": "returntwo",
|
|
"htmlAttributes": {
|
|
"id": "returntwo"
|
|
},
|
|
"hProperties": {
|
|
"id": "returntwo"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "paragraph",
|
|
"children": [
|
|
{
|
|
"type": "text",
|
|
"value": "This function returns the number plus two.",
|
|
"position": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 1,
|
|
"offset": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 43,
|
|
"offset": 42
|
|
},
|
|
"indent": []
|
|
}
|
|
}
|
|
],
|
|
"position": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 1,
|
|
"offset": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 43,
|
|
"offset": 42
|
|
},
|
|
"indent": []
|
|
}
|
|
}
|
|
]
|
|
} |