diff options
Diffstat (limited to 'lib/configuration.js')
-rw-r--r-- | lib/configuration.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/configuration.js b/lib/configuration.js index 2b470c4..47485af 100644 --- a/lib/configuration.js +++ b/lib/configuration.js @@ -28,6 +28,11 @@ Configuration.prototype.load = function() { }); }; +// Get structure file +Configuration.prototype.getStructure = function(name) { + return this.options.structure[name].split(".").slice(0, -1).join("."); +}; + // Default configuration Configuration.DEFAULT = { // Options that can't be extend @@ -41,6 +46,13 @@ Configuration.DEFAULT = { "isbn": null, "lang": "en", + // Structure + "structure": { + "readme": "README.md", + "glossary": "GLOSSARY.md", + "summary": "SUMMARY.md" + }, + // Plugins list, can contain "-name" for removing default plugins "plugins": [], |