зеркало из https://github.com/github/docs.git
preserve hardcoded markdown content in TOC files
This commit is contained in:
Родитель
5d03537551
Коммит
27f0448219
|
@ -45,6 +45,8 @@
|
||||||
{% include featured-links %}
|
{% include featured-links %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{{ renderedPage }}
|
||||||
|
|
||||||
{% include generic-toc-items %}
|
{% include generic-toc-items %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,7 +73,7 @@ indexFiles
|
||||||
}
|
}
|
||||||
|
|
||||||
// Index files should no longer have body content, so we write an empty string
|
// Index files should no longer have body content, so we write an empty string
|
||||||
fs.writeFileSync(indexFile, frontmatter.stringify('', data, { lineWidth: 10000 }))
|
fs.writeFileSync(indexFile, frontmatter.stringify(content, data, { lineWidth: 10000 }))
|
||||||
})
|
})
|
||||||
|
|
||||||
function getLinks (linkItemArray) {
|
function getLinks (linkItemArray) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче