Fireball is the game engine for the future.
Defined in: lib/builder.js:36
Module: firedoc
The Builder Context
ast
AST
The AST objectoptions
Option
The command optionshelpers
Object
The view helpers functioncacheView
Boolean
cache the viewstemplate
Object
The templatefiles
Number
records the filesviewExtname
String
The ext name of current view
metadata
load the metadata from theme.jsonaddHelper
Add helperaddHelpers
Add helpers_inlineCode
Ported from Selleck, this handles ```'s in fields that are not parsed by the Markdown parser._parseCrossLink
Parse the item to be cross linked and return an HREF linked to the itempopulateClasses
Populate the meta data for classespopulateModules
Populate the meta data for modulespopulateFiles
Populate the meta data for filesaddFoundAt
Parses file and line number from an item object and build's an HREFmixExternal
Fetches the remote data and fires the callback when it's all completemakeDirs
Makes the default directories neededinit
SetBuilderContext
context and returncorrectTheme
correct the themecompile
Compule the ASTrender
RenderwriteApiMeta
Write api.jsonNATIVES_LINKER
Function to link an external type usesNATIVES
objectcompile
compile
The AST object
meta | description |
---|---|
Type | AST |
Defined | lib/builder.js:43 |
The command options
meta | description |
---|---|
Type | Option |
Defined | lib/builder.js:48 |
The view helpers function
meta | description |
---|---|
Type | Object |
Defined | lib/builder.js:53 |
cache the views
meta | description |
---|---|
Type | Boolean |
Defined | lib/builder.js:58 |
The template
meta | description |
---|---|
Type | Object |
Defined | lib/builder.js:63 |
records the files
meta | description |
---|---|
Type | Number |
Defined | lib/builder.js:68 |
The ext name of current view
meta | description |
---|---|
Type | String |
Defined | lib/builder.js:73 |
load the metadata from theme.json
meta | description |
---|---|
Defined | lib/builder.js:80 |
Return | Object |
Add helper
meta | description |
---|---|
Defined | lib/builder.js:110 |
Add helpers
meta | description |
---|---|
Defined | lib/builder.js:122 |
- helpers Object
Ported from Selleck, this handles ```'s in fields that are not parsed by the Markdown parser.
meta | description |
---|---|
Defined | lib/builder.js:134 |
Return | HTML |
- html HTML The HTML to parse
Parse the item to be cross linked and return an HREF linked to the item
meta | description |
---|---|
Defined | lib/builder.js:152 |
- item String The item to crossLink
- raw Boolean Do not wrap it in HTML
- content String crossLink helper content
Populate the meta data for classes
meta | description |
---|---|
Defined | lib/builder.js:261 |
Return | Object |
- opts Object The original options
Populate the meta data for modules
meta | description |
---|---|
Defined | lib/builder.js:285 |
Return | Object |
- opts Object The original options
Populate the meta data for files
meta | description |
---|---|
Defined | lib/builder.js:310 |
Return | Object |
- opts Object The original options
Parses file and line number from an item object and build's an HREF
meta | description |
---|---|
Defined | lib/builder.js:330 |
Return | String |
- a Object The item to parse
Fetches the remote data and fires the callback when it's all complete
meta | description |
---|---|
Defined | lib/builder.js:341 |
Return | Promise |
- cb Function The callback to execute when complete
Makes the default directories needed
meta | description |
---|---|
Defined | lib/builder.js:414 |
Set BuilderContext
context and return
meta | description |
---|---|
Defined | lib/builder.js:430 |
Return | BuilderContext |
- ast AST
- options Option
correct the theme
meta | description |
---|---|
Defined | lib/builder.js:447 |
Compule the AST
meta | description |
---|---|
Defined | lib/builder.js:469 |
- callback Function The callback
Render
meta | description |
---|---|
Defined | lib/builder.js:529 |
Write api.json
meta | description |
---|---|
Defined | lib/builder.js:556 |
- locals Locals The locals
Function to link an external type uses NATIVES
object
meta | description |
---|---|
Defined | lib/builder.js:691 |
Return | String |
- name String The name of the type to link
compile
meta | description |
---|---|
Defined | lib/builder.js:706 |