]> git.r.bdr.sh - rbdr/blog/blob - doc/README.md
Update gitignore to be more specific
[rbdr/blog] / doc / README.md
1 <a name="Blog"></a>
2
3 ## Blog
4 **Kind**: global class
5
6 * [Blog](#Blog)
7 * [new Blog(config)](#new_Blog_new)
8 * [.add(postLocation)](#Blog+add) ⇒ <code>Promise.&lt;undefined&gt;</code>
9 * [.update(postLocation)](#Blog+update) ⇒ <code>Promise.&lt;undefined&gt;</code>
10 * [.publish()](#Blog+publish) ⇒ <code>Promise.&lt;undefined&gt;</code>
11
12 <a name="new_Blog_new"></a>
13
14 ### new Blog(config)
15 The Blog class is the blog generator, it's in charge of adding and
16 updating posts, and handling the publishing.
17
18
19 | Param | Type | Description |
20 | --- | --- | --- |
21 | config | <code>Potluck.tConfiguration</code> | the initialization options to extend the instance |
22
23 <a name="Blog+add"></a>
24
25 ### blog.add(postLocation) ⇒ <code>Promise.&lt;undefined&gt;</code>
26 Shifts the blog posts, adds the passed path to slot 0, and
27 generates files.
28
29 **Kind**: instance method of [<code>Blog</code>](#Blog)
30 **Returns**: <code>Promise.&lt;undefined&gt;</code> - empty promise, returns no value
31
32 | Param | Type | Description |
33 | --- | --- | --- |
34 | postLocation | <code>string</code> | the path to the directory containing the post structure |
35
36 <a name="Blog+update"></a>
37
38 ### blog.update(postLocation) ⇒ <code>Promise.&lt;undefined&gt;</code>
39 Adds the passed path to slot 0, and generates files.
40
41 **Kind**: instance method of [<code>Blog</code>](#Blog)
42 **Returns**: <code>Promise.&lt;undefined&gt;</code> - empty promise, returns no value
43
44 | Param | Type | Description |
45 | --- | --- | --- |
46 | postLocation | <code>string</code> | the path to the directory containing the post structure |
47
48 <a name="Blog+publish"></a>
49
50 ### blog.publish() ⇒ <code>Promise.&lt;undefined&gt;</code>
51 Publishes the files to a static host.
52
53 **Kind**: instance method of [<code>Blog</code>](#Blog)
54 **Returns**: <code>Promise.&lt;undefined&gt;</code> - empty promise, returns no value