summaryrefslogtreecommitdiffstats
path: root/packages/gitbook/src/output/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook/src/output/index.js')
-rw-r--r--packages/gitbook/src/output/index.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/gitbook/src/output/index.js b/packages/gitbook/src/output/index.js
new file mode 100644
index 0000000..574b3df
--- /dev/null
+++ b/packages/gitbook/src/output/index.js
@@ -0,0 +1,24 @@
+const Immutable = require('immutable');
+
+const generators = Immutable.List([
+ require('./json'),
+ require('./website'),
+ require('./ebook')
+]);
+
+/**
+ Return a specific generator by its name
+
+ @param {String}
+ @return {Generator}
+*/
+function getGenerator(name) {
+ return generators.find(function(generator) {
+ return generator.name == name;
+ });
+}
+
+module.exports = {
+ generate: require('./generateBook'),
+ getGenerator
+};