mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
fix(app): build docs script
This commit is contained in:
parent
30f0099ddc
commit
f33b2502de
7 changed files with 526 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue