v2.0.0-rc.2
Breaking Changes
acetate.generatehas changed. Previouslyacetate.generateaccepted a function with the following signaturefunction (pages, createPage, callback) { }. This signate is nowfunction (createPage, callback) { }. You will no longer recive an array of pages in your generator function.
Additions
-
Options for
acetate.loadnow accepts abasePathoption which will prepend a path to all pages loaded by that loader. For example:acetate.load("**/*.+(md|html)", { basePath: 'doc' });
Will cause all pages to have
/doc/prepended to their URLs and be output to the/docfolder when building. -
A new config method
acetate.symlink(src, dest)will create a symlink from asrcdirectory, relative toacetate.root(usuallyprocess.cwd()) to a destination directory in your source folder. This should allow you to easily bring external directories into your acetate site, for example you couldacetate.symlinka Git submodule.