mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-20 01:25:16 +00:00
19 lines
340 B
JavaScript
19 lines
340 B
JavaScript
var _ = require("lodash");
|
|
|
|
var Configuration = require("./configuration");
|
|
|
|
var Book = function(root) {
|
|
// Root folder of the book
|
|
this.root = root;
|
|
|
|
// Configuration
|
|
this.config = new Configuration(this);
|
|
Object.defineProperty(this, "options", {
|
|
get: function () {
|
|
return this.config.options;
|
|
}
|
|
});
|
|
};
|
|
|
|
module.exports= Book;
|