From c5e9afdd4df37ab7db310280f6b8edf6400ebf3d Mon Sep 17 00:00:00 2001 From: Evgeny Lupanov Date: Thu, 30 Apr 2020 11:24:23 +0300 Subject: [PATCH] fix(docs): material page index file --- docs/structure-landing.ts | 6 ++++++ scripts/gulp/tasks/docs/docs.ts | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 docs/structure-landing.ts 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(); });