DocPad
Search…
Sequence Flow

Legend

1
: Object/Area
2
> method
3
< procedure
4
>> background method
5
<< background procedure
6
? condition
Copied!

Run Action

1
: Interface
2
> command
3
: Core
4
> run
5
> server
6
> generate
7
> createProgress
8
> createRengerateTimer
9
> generatePrepare
10
11
? if reset is true
12
? if source directory doesn't exist
13
< error
14
> resetCollections
15
< reset database
16
> populateCollections
17
> parseDirectory documentsPath
18
> parseDirectory filesPath
19
> parseDirectory layoutsPaths
20
> emitSerial "populateCollectionsBefore"
21
: Tumblr Plugin
22
> fetchTumblrData
23
< json data from tumblr api
24
< add each tumblr post into docpad database
25
< use all models
26
27
? if reset is false
28
< use changed models
29
30
> emitSerial "generateAfter"
31
32
> generateLoad
33
> loadFiles opts.collection
34
< add references and layout children to opts.collection
35
36
> generateRender
37
> contextualizeFiles
38
> emitSerial "contextualizeBefore"
39
> file.contextualize
40
< meta data normalized
41
< layout determined
42
> emitSerial "conextualizeAfter"
43
44
> renderFiles
45
> emitSerial "renderBefore"
46
> renderCollection(referencesOthers:false)
47
+ renderCollection(referencesOthers:true) < for each render pass
48
> file.render
49
> emitSerial "render"
50
> emitSerial "renderDocument"
51
> emitSerial "renderAfter"
52
> writeFiles
53
54
> generatePostpare
55
> emitSerial "generateAfter"
56
57
58
> watch
59
>> watchr.watch config.reloadPaths
60
>> docpad.load
61
>> docpad.generate reset:true
62
>> watchr.watch config.regeneratePaths
63
>> docpad.generate reset:true
64
>> watchr.watch config.srcPath
65
>> docpad.generate
Copied!
Last modified 2yr ago
Copy link