feat: move microsite to canary

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-04-27 19:57:16 +02:00
parent b71739bcf0
commit e768c7e53e
4 changed files with 2727 additions and 2070 deletions
+2 -12
View File
@@ -14,7 +14,6 @@
* limitations under the License.
*/
const replace = require('replace');
const { existsSync, writeFileSync, mkdirSync } = require('fs');
const path = require('path');
@@ -28,19 +27,10 @@ Run \`yarn build:api-docs\` to generate the API docs.
async function main() {
const referencesDir = '../docs/reference';
if (existsSync(referencesDir)) {
console.log('Removing HTML comments from docs/reference folder');
replace({
regex: '<!--(.*?)-->',
replacement: '',
paths: [referencesDir],
recursive: true,
silent: false,
});
} else {
if (!existsSync(referencesDir)) {
mkdirSync(referencesDir);
writeFileSync(path.join(referencesDir, 'index.md'), PLACEHOLDER);
}
}
}
main().catch(error => {