diff --git a/scripts/createIndex.js b/scripts/createIndex.js index 0a5f5e1..849a7d1 100644 --- a/scripts/createIndex.js +++ b/scripts/createIndex.js @@ -34,26 +34,28 @@ exports.createIndex = function(components, mode) { const markdown = read(input.replace(/([^\/\\]+)$/, 'README.md')) .replace(/^# [^\r\n]+/, ''); const type = m === null ? 'Shared' : m[1]; - contentHtml.push(`

`); - contentHtml.push(camelToDash(name)); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push(`component`); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push(``); - contentHtml.push('

'); + const contentH2 = []; + contentH2.push(`

`); + contentH2.push(camelToDash(name)); + contentH2.push(``); + contentH2.push(``); + contentH2.push(``); + contentH2.push(``); + contentH2.push(``); + contentH2.push(``); + contentH2.push(``); + contentH2.push(``); + contentH2.push(``); + contentH2.push(``); + contentH2.push(`component`); + contentH2.push(``); + contentH2.push(``); + contentH2.push('

'); + contentHtml.push(contentH2.join('')); contentHtml.push(`
`); contentHtml.push('