1
0
Fork 0
mirror of https://github.com/veggiemonk/awesome-docker.git synced 2025-04-19 07:28:05 +02:00

Change color theme

This commit is contained in:
Julien Bisconti 2018-04-22 14:39:58 +02:00
parent b8f5293094
commit 9ca07881ec
3 changed files with 8 additions and 10 deletions

View file

@ -49,17 +49,16 @@ const includeReadme = ({
const $ = cheerio.load(indexTemplate);
$('#md').append(converter.makeHtml(markdown));
$('a').each((i, elem) => {
// console.log(elem);
$(elem).attr(
'id',
`${camelCase(
camelCase(
$(elem)
.attr('href')
.replace(/\/|\.|:|#/g, ''),
{
pascalCase: true,
},
)}-${i}`,
),
);
});
console.log('Writing index.html');