new Hikaru(optsopt) → {Hikaru}
Hikaru main class.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
Properties
|
Properties:
Name | Type | Description |
---|---|---|
logger |
Logger | |
watcher |
Watcher | |
router |
Router | |
renderer |
Renderer | |
processor |
Processor | |
generator |
Generator | |
decorator |
Decorator | |
translator |
Translator | |
types |
Object | |
utils |
Object | |
opts |
Object | |
site |
Site |
Returns:
- Type
- Hikaru
Methods
(async) build(siteDir)
Build and write docs from srcs.
Parameters:
Name | Type | Description |
---|---|---|
siteDir |
String | Working site dir. |
clean(siteDir)
Clean a Hikaru site's built docs.
Parameters:
Name | Type | Description |
---|---|---|
siteDir |
String | Working site dir. |
init(siteDir)
Create a Hikaru site dir with needed files.
Parameters:
Name | Type | Description |
---|---|---|
siteDir |
String | Working site dir. |
(async) serve(siteDir)
Build and serve docs with a HTTP server from srcs.
Parameters:
Name | Type | Description |
---|---|---|
siteDir |
String | Working site dir. |