diff --git a/docs/structure-landing.ts b/docs/structure-landing.ts new file mode 100644 index 00000000..49d4db64 --- /dev/null +++ b/docs/structure-landing.ts @@ -0,0 +1,6 @@ +export const structure = [ + { + type: 'page', + name: 'Material', + }, +]; diff --git a/scripts/gulp/tasks/docs/docs.ts b/scripts/gulp/tasks/docs/docs.ts index b5f2f17b..69e74f9e 100644 --- a/scripts/gulp/tasks/docs/docs.ts +++ b/scripts/gulp/tasks/docs/docs.ts @@ -3,12 +3,16 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs'; import { isAbsolute, join, resolve, sep } from 'path'; import { structure as DOCS } from '../../../../docs/structure'; +import { structure as LANDING } from '../../../../docs/structure-landing'; import { DOCS_DIST } from '../config'; task('create-docs-dirs', (done) => { const docsStructure = flatten('docs', routesTree(DOCS)); createDirsStructure(docsStructure); + const landingStructure = flatten('', routesTree(LANDING)); + createDirsStructure(landingStructure); + done(); });