- Go to
src/app/library/modules
and create new folder in there; - Inside folder create the
angular module
; - Export content from the folder via
index.ts
(for the showcase app) andpublic_api.ts
(for end-users of the library); - Go to
src/app/showcase/features/documentation/examples
folder and create new folder with examples components of your module and declare them in theexamples.module.ts
; - Go to
src/app/showcase/features/documentation/data/components-meta-info
and create new file with metainfo for your module and export it viaindex.ts
; - Go to
src/app/showcase/features/documentation/enums/component.enum.ts
and add new key with name of your module (uses in theshowcase
app at URL as a link to documentation of your module); - Go to
src/app/showcase/features/documentation/data/component-meta-info.map.ts
file and add both Enum value and MetaInfo object into the map; - Go to
src/app/library/docs
and add documentation of your module (call file name as your folder name inmodules
folder, and these documentation will be automatically loaded in theshowcase
app); - Run
npm run doc
;
Now, check the showcase
app, your module has its own: docs, examples, API overviews!