diff --git a/docs/section.njk b/docs/section.njk index 1e495d5e..64b58fb6 100644 --- a/docs/section.njk +++ b/docs/section.njk @@ -1,4 +1,4 @@ -{% set id = (title + '-') | lower | replace(' ', '-') | addRandom(1000, 9999) | urlencode %} +{% set id = (title + '-31415927') | lower | replace(' ', '-') | urlencode %}
{% if title %} diff --git a/gulpfile.js b/gulpfile.js index 11d6d7a5..f419a262 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -402,13 +402,6 @@ const htmlRenderComponents = (outputPath, env) => { nunjucksEnv.addGlobal('sgNav', 'docs/nav.njk') nunjucksEnv.addGlobal('sgFooter', 'docs/footer.njk') - nunjucksEnv.addFilter('addRandom', (str, min, max) => { - min = Math.ceil(min) - max = Math.floor(max) - - return str + (Math.floor(Math.random() * (max - min)) + min) - }) - nunjucksEnv.render('src/layouts/components.njk', (error, result) => { if (error) { nunjucksError(error) @@ -435,13 +428,6 @@ const htmlRenderPrototypes = (outputPath, env) => { }) nunjucksEnv.addGlobal('sgNav', 'docs/nav.njk') - nunjucksEnv.addFilter('addRandom', (str, min, max) => { - min = Math.ceil(min) - max = Math.floor(max) - - return str + (Math.floor(Math.random() * (max - min)) + min) - }) - nunjucksEnv.render(`src/prototypes/${fileName}.njk`, (error, result) => { if (error) { nunjucksError(error)