@ng-doc/builder / Interface

NgDocBuildPageSchema

The interface describes the possible parameters for generating the page, the generator can be called by the command below 123

ng g @ng-doc/builder:page

Here is an example showing how you can call a generator with all parameters

ng g @ng-doc/builder:page MyPage -r custom-route -m -c -o 1

Properties

NameTypeDescription
category
boolean | undefined

If parameter was provided, generator will import first parent category automatically (alias is -c)

keyword
string | undefined

Keyword for the entity (alias is -k)

name
string | undefined

Name of the page variable (alias is -n, title in PascalCase by default)

order
number | undefined

Order of the page in sidebar (alias is -o, NgDoc sorting pages by name by default)

path
inherited from SchematicArgv
string | undefined
route
string | undefined

Custom route for the page (alias is -r, parent folder name by default)

title
string

Title of the page (can be provided as string after command)