Skip to content

v2.0.0-rc.2

Choose a tag to compare

@patrickarlt patrickarlt released this 27 Jul 16:27

Breaking Changes

  • acetate.generate has changed. Previously acetate.generate accepted a function with the following signature function (pages, createPage, callback) { }. This signate is now function (createPage, callback) { }. You will no longer recive an array of pages in your generator function.

Additions

  • Options for acetate.load now accepts a basePath option 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 /doc folder when building.

  • A new config method acetate.symlink(src, dest) will create a symlink from a src directory, relative to acetate.root (usually process.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 could acetate.symlink a Git submodule.