aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-05-31 23:25:11 +0200
committerBen Beltran <ben@nsovocal.com>2020-05-31 23:25:11 +0200
commitd92ac8ccf6516011bc40bff2b17ef0d0d766f9de (patch)
tree70543365776109995e6103aacab82259bf1f2da2 /doc
parent5aabf12286e74aeb60b829d6401db8b17881a03f (diff)
Update dependencies + adapt code for them
Diffstat (limited to 'doc')
-rw-r--r--doc/README.md54
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.&lt;undefined&gt;</code>
+ * [.update(postLocation)](#Blog+update) ⇒ <code>Promise.&lt;undefined&gt;</code>
+ * [.publish()](#Blog+publish) ⇒ <code>Promise.&lt;undefined&gt;</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.&lt;undefined&gt;</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.&lt;undefined&gt;</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.&lt;undefined&gt;</code>
+Adds the passed path to slot 0, and generates files.
+
+**Kind**: instance method of [<code>Blog</code>](#Blog)
+**Returns**: <code>Promise.&lt;undefined&gt;</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.&lt;undefined&gt;</code>
+Publishes the files to a static host.
+
+**Kind**: instance method of [<code>Blog</code>](#Blog)
+**Returns**: <code>Promise.&lt;undefined&gt;</code> - empty promise, returns no value