4 <dt><a href="#Blog">Blog</a></dt>
11 <dt><a href="#HTMLGenerator">HTMLGenerator</a></dt>
12 <dd><p>Generates the blog index page</p>
14 <dt><a href="#RSSGenerator">RSSGenerator</a></dt>
15 <dd><p>Generates an RSS feed XML file</p>
17 <dt><a href="#StaticGenerator">StaticGenerator</a></dt>
18 <dd><p>Generates the static assets required for the blog</p>
20 <dt><a href="#TXTGenerator">TXTGenerator</a></dt>
21 <dd><p>Generates a TXT version of the blog</p>
28 **Kind**: global class
31 * [new Blog(config)](#new_Blog_new)
32 * [.add(postLocation)](#Blog+add) ⇒ <code>Promise.<undefined></code>
33 * [.update(postLocation)](#Blog+update) ⇒ <code>Promise.<undefined></code>
34 * [.publish()](#Blog+publish) ⇒ <code>Promise.<undefined></code>
35 * [.publishArchive()](#Blog+publishArchive) ⇒ <code>Promise.<undefined></code>
36 * [.addRemote()](#Blog+addRemote) ⇒ <code>Promise.<undefined></code>
37 * [.removeRemote()](#Blog+removeRemote) ⇒ <code>Promise.<undefined></code>
38 * [.syncDown()](#Blog+syncDown) ⇒ <code>Promise.<undefined></code>
39 * [.syncUp()](#Blog+syncUp) ⇒ <code>Promise.<undefined></code>
41 <a name="new_Blog_new"></a>
44 The Blog class is the blog generator, it's in charge of adding and
45 updating posts, and handling the publishing.
48 | Param | Type | Description |
50 | config | <code>Blog.tConfiguration</code> | the initialization options to extend the instance |
52 <a name="Blog+add"></a>
54 ### blog.add(postLocation) ⇒ <code>Promise.<undefined></code>
55 Shifts the blog posts, adds the passed file to slot 0, and
58 **Kind**: instance method of [<code>Blog</code>](#Blog)
59 **Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
61 | Param | Type | Description |
63 | postLocation | <code>string</code> | the path to the blog post file |
65 <a name="Blog+update"></a>
67 ### blog.update(postLocation) ⇒ <code>Promise.<undefined></code>
68 Update slot 0 with the passed gmi file, and generates files.
70 **Kind**: instance method of [<code>Blog</code>](#Blog)
71 **Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
73 | Param | Type | Description |
75 | postLocation | <code>string</code> | the path to the blog post file |
77 <a name="Blog+publish"></a>
79 ### blog.publish() ⇒ <code>Promise.<undefined></code>
80 Publishes the files to a static host.
82 **Kind**: instance method of [<code>Blog</code>](#Blog)
83 **Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
84 <a name="Blog+publishArchive"></a>
86 ### blog.publishArchive() ⇒ <code>Promise.<undefined></code>
87 Publishes the archive to a host using rsync. Currently assumes
90 **Kind**: instance method of [<code>Blog</code>](#Blog)
91 **Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
92 <a name="Blog+addRemote"></a>
94 ### blog.addRemote() ⇒ <code>Promise.<undefined></code>
97 **Kind**: instance method of [<code>Blog</code>](#Blog)
98 **Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
99 <a name="Blog+removeRemote"></a>
101 ### blog.removeRemote() ⇒ <code>Promise.<undefined></code>
104 **Kind**: instance method of [<code>Blog</code>](#Blog)
105 **Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
106 <a name="Blog+syncDown"></a>
108 ### blog.syncDown() ⇒ <code>Promise.<undefined></code>
109 Pulls the posts and archive from the remote
111 **Kind**: instance method of [<code>Blog</code>](#Blog)
112 **Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
113 <a name="Blog+syncUp"></a>
115 ### blog.syncUp() ⇒ <code>Promise.<undefined></code>
116 Pushes the posts and archive to the remote
118 **Kind**: instance method of [<code>Blog</code>](#Blog)
119 **Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
120 <a name="HTMLGenerator"></a>
123 Generates the blog index page
125 **Kind**: global variable
127 | Param | Type | Description |
129 | source | <code>string</code> | the source directory |
130 | target | <code>string</code> | the target directory |
131 | posts | <code>Array.<Blog.tPost></code> | the list of posts |
133 <a name="RSSGenerator"></a>
136 Generates an RSS feed XML file
138 **Kind**: global variable
140 | Param | Type | Description |
142 | source | <code>string</code> | the source directory |
143 | target | <code>string</code> | the target directory |
144 | posts | <code>Array.<Blog.tPost></code> | the list of posts |
146 <a name="StaticGenerator"></a>
149 Generates the static assets required for the blog
151 **Kind**: global variable
153 | Param | Type | Description |
155 | source | <code>string</code> | the source directory |
156 | target | <code>string</code> | the target directory |
157 | posts | <code>Array.<Blog.tPost></code> | the list of posts |
159 <a name="TXTGenerator"></a>
162 Generates a TXT version of the blog
164 **Kind**: global variable
166 | Param | Type | Description |
168 | source | <code>string</code> | the source directory |
169 | target | <code>string</code> | the target directory |
170 | posts | <code>Array.<Blog.tPost></code> | the list of posts |