Browse Source

Change norm for assets

Samy Pessé 10 years ago
parent
commit
2baf2a9175
2 changed files with 12 additions and 4 deletions
  1. 9 2
      README.md
  2. 3 2
      index.js

+ 9 - 2
README.md

@@ -44,19 +44,26 @@ The plugin entry point should return an object with some metadata.
 Type: `Object`
 Default value: `{}`
 
+#### "book.assets"
+
+Type: `String`
+Default value: `null`
+
+Path to the assets folder to copy
+
 #### "book.js"
 
 Type: `Array`
 Default value: `[]`
 
-List of javascript file to add to the html pages.
+List of javascript file to add to the html pages (relative to the assets fodler).
 
 #### "book.css"
 
 Type: `Array`
 Default value: `[]`
 
-List of css file to add to the html pages.
+List of css file to add to the html pages (relative to the assets fodler).
 
 #### "book.templates"
 

+ 3 - 2
index.js

@@ -1,10 +1,11 @@
 module.exports = {
     book: {
+        assets: "./book",
         js: [
-            "book/test.js"
+            "test.js"
         ],
         css: [
-            "book/test.css"
+            "test.css"
         ]
     },
     hooks: {