diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-05-31 23:25:11 +0200 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-05-31 23:25:11 +0200 |
| commit | d92ac8ccf6516011bc40bff2b17ef0d0d766f9de (patch) | |
| tree | 70543365776109995e6103aacab82259bf1f2da2 /doc | |
| parent | 5aabf12286e74aeb60b829d6401db8b17881a03f (diff) | |
Update dependencies + adapt code for them
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/README.md | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/README.md b/doc/README.md new file mode 100644 index 0000000..4e9e131 --- /dev/null +++ b/doc/README.md @@ -0,0 +1,54 @@ +<a name="Blog"></a> + +## Blog +**Kind**: global class + +* [Blog](#Blog) + * [new Blog(config)](#new_Blog_new) + * [.add(postLocation)](#Blog+add) ⇒ <code>Promise.<undefined></code> + * [.update(postLocation)](#Blog+update) ⇒ <code>Promise.<undefined></code> + * [.publish()](#Blog+publish) ⇒ <code>Promise.<undefined></code> + +<a name="new_Blog_new"></a> + +### new Blog(config) +The Blog class is the blog generator, it's in charge of adding and +updating posts, and handling the publishing. + + +| Param | Type | Description | +| --- | --- | --- | +| config | <code>Potluck.tConfiguration</code> | the initialization options to extend the instance | + +<a name="Blog+add"></a> + +### blog.add(postLocation) ⇒ <code>Promise.<undefined></code> +Shifts the blog posts, adds the passed path to slot 0, and +generates files. + +**Kind**: instance method of [<code>Blog</code>](#Blog) +**Returns**: <code>Promise.<undefined></code> - empty promise, returns no value + +| Param | Type | Description | +| --- | --- | --- | +| postLocation | <code>string</code> | the path to the directory containing the post structure | + +<a name="Blog+update"></a> + +### blog.update(postLocation) ⇒ <code>Promise.<undefined></code> +Adds the passed path to slot 0, and generates files. + +**Kind**: instance method of [<code>Blog</code>](#Blog) +**Returns**: <code>Promise.<undefined></code> - empty promise, returns no value + +| Param | Type | Description | +| --- | --- | --- | +| postLocation | <code>string</code> | the path to the directory containing the post structure | + +<a name="Blog+publish"></a> + +### blog.publish() ⇒ <code>Promise.<undefined></code> +Publishes the files to a static host. + +**Kind**: instance method of [<code>Blog</code>](#Blog) +**Returns**: <code>Promise.<undefined></code> - empty promise, returns no value |