fix(app): build docs script

This commit is contained in:
Alex 2020-04-23 21:33:02 +03:00
parent 30f0099ddc
commit f33b2502de
7 changed files with 526 additions and 4 deletions

View file

@ -10,7 +10,6 @@ task(
'docs',
series(
'generate-doc-json-and-parse-themes',
'find-full-examples',
),
);
task('create-docs-dirs', (done) => {
@ -60,6 +59,7 @@ function flatten(root, arr) {
function createDirsStructure(dirs) {
const index = readFileSync(join(DOCS_DIST, 'index.html'), 'utf8');
dirs.forEach((dir: any) => {
const fullPath = join(DOCS_DIST, dir);
if (!existsSync(fullPath)) {
mkDirByPathSync(fullPath);