Skip to content

Releases: patrickarlt/acetate

v2.0.0-rc.3

29 Jul 01:41
Compare
Choose a tag to compare

Fixes

  • Fix ignore option in loader

v2.0.0-rc.2

27 Jul 16:27
Compare
Choose a tag to compare

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.

v2.0.0-rc.1

22 Jul 23:34
Compare
Choose a tag to compare

Major Architechure Changes

  • The development server now only transforms the requested pages rather then transforming the entire site. The leads to greatly improved rendering times.
  • The Renderer, Transformer, and Loader classed used by the Acetate class have all been refactored directly into the main Acetate class.

Breaking changes

  • Logging methods (log, info, debug, 'success', error, time, and timeEnd) are no longer on instances of Acetate. They are available on under acetate.log object. You will need to make the following changes:
    • acetate.log(/* ... */) => acetate.log.log(/* ... */)
    • acetate.info(/* ... */) => acetate.log.info(/* ... */)
    • acetate.debug(/* ... */) => acetate.log.debug(/* ... */)
    • acetate.success(/* ... */) => acetate.log.success(/* ... */)
    • acetate.error(/* ... */) => acetate.log.error(/* ... */)
    • acetate.time(/* ... */) => acetate.log.time(/* ... */)
    • acetate.timeEnd(/* ... */) => acetate.log.timeEnd(/* ... */)
  • acetate.transformAync has been removed. You can now use acetate.transform for the same purpose. You will need to make the following changes:
    • acetate.transformAsync(/* ... */) => acetate.transform(/* ... */).
  • acetate.transformAll and acetate.transformAllAsync have been removed. Removal of these funcations allows for the performance improvments in the development server.
  • The MarkdownIt instance at acetate.renderer.markdown has been moved to acetate.markdown.
  • The Nunjucks environment instance at acetate.renderer.nunjucks has been moved to acetate.nunjucks.

v1.3.5

16 Jun 22:38
Compare
Choose a tag to compare

Fixed

  • Improved stability when building sites with large numbers of pages.

v1.3.4

01 Feb 00:13
Compare
Choose a tag to compare

Fixed

Live reloading of Markdown files on Windows now works.

v1.3.3

08 Jan 15:51
Compare
Choose a tag to compare

Changed

  • Updated all underlying dependencies.

Fixed

  • Watcher now works when default metadata is present in the loader.

v1.3.2

19 Dec 23:04
Compare
Choose a tag to compare

Fixed

  • Fixed undesireable variables being merged into pages in some edgecases.

v1.3.1

19 Dec 19:56
Compare
Choose a tag to compare

Added

  • The acetate.load method now accepts a second parameter which is an object of default metadata to assign to the loaded pages.

Changed

  • The acetate.metadata method now deep merges metadata with the page.

v1.2.1

19 Dec 16:40
Compare
Choose a tag to compare

Changed

  • acetate.metadata now uses _.defaultsDeep instead of Object.assign to allow for merging metadata recursivly.

Fixed

  • relativePath on root pages (index.html) now properly equals . to allow for things like {{relativePath}}/main.js which wil properly render on all pages.
  • Several fixes for the CLI #64 (@paulcpederson)

v1.1.1

22 Nov 22:45
Compare
Choose a tag to compare

Fixed

  • Cached patterns for Minimatch in transformers. This should provide a large speed boost during the transform phase.
  • Highlight JS tests