new Router(logger, renderer, processor, generator, decorator, helper, translator, site, watcheropt) → {Router}
Core module that handling file routing.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
logger |
Logger | |||
renderer |
Renderer | |||
processor |
Processor | |||
generator |
Generator | |||
decorator |
Decorator | |||
helper |
Helper | |||
translator |
Translator | |||
site |
Site | |||
watcher |
Watcher |
<optional> |
null |
Returns:
- Type
- Router
Methods
(async) build()
Build all site docs.
(async) serve()
Serve all site docs.