diff --git a/documentation/docusaurus.config.js b/documentation/docusaurus.config.js index 7c5886453a..5889304212 100644 --- a/documentation/docusaurus.config.js +++ b/documentation/docusaurus.config.js @@ -111,7 +111,7 @@ module.exports = { { docs: { - remarkPlugins: [require('remark-import-partial')], + remarkPlugins: [require('remark-import-partial'), require('remark-remove-comments')], sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. editUrl: diff --git a/documentation/package.json b/documentation/package.json index 2f4ea5248d..abae28fec2 100644 --- a/documentation/package.json +++ b/documentation/package.json @@ -37,5 +37,8 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "devDependencies": { + "remark-remove-comments": "^0.2.0" } } diff --git a/documentation/yarn.lock b/documentation/yarn.lock index ce192d38c0..c72ee107fc 100644 --- a/documentation/yarn.lock +++ b/documentation/yarn.lock @@ -4500,6 +4500,11 @@ hsla-regex@^1.0.0: resolved "https://registry.yarnpkg.com/hsla-regex/-/hsla-regex-1.0.0.tgz#c1ce7a3168c8c6614033a4b5f7877f3b225f9c38" integrity sha1-wc56MWjIxmFAM6S194d/OyJfnDg= +html-comment-regex@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/html-comment-regex/-/html-comment-regex-1.1.2.tgz#97d4688aeb5c81886a364faa0cad1dda14d433a7" + integrity sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ== + html-entities@^1.3.1: version "1.4.0" resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-1.4.0.tgz#cfbd1b01d2afaf9adca1b10ae7dffab98c71d2dc" @@ -7165,6 +7170,14 @@ remark-parse@8.0.3: vfile-location "^3.0.0" xtend "^4.0.1" +remark-remove-comments@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/remark-remove-comments/-/remark-remove-comments-0.2.0.tgz#3aeda48b860123417b081c303707b852cc764a35" + integrity sha512-faGaTeqp0bvDgE0uTofa90EBHD4HXeHN+EUaPDR9datgFvaPkYcLxakaJud9LnomFPkOhx0A9NMYFk/lln/etQ== + dependencies: + html-comment-regex "^1.1.2" + unist-util-visit "^2.0.3" + remark-squeeze-paragraphs@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/remark-squeeze-paragraphs/-/remark-squeeze-paragraphs-4.0.0.tgz#76eb0e085295131c84748c8e43810159c5653ead"