Releases: patrickarlt/acetate
Releases · patrickarlt/acetate
v2.0.0-rc.3
Fixes
- Fix
ignore
option in loader
v2.0.0-rc.2
Breaking Changes
acetate.generate
has changed. Previouslyacetate.generate
accepted 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.load
now accepts abasePath
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 asrc
directory, 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.symlink
a Git submodule.
v2.0.0-rc.1
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
, andLoader
classed used by theAcetate
class have all been refactored directly into the mainAcetate
class.
Breaking changes
- Logging methods (
log
,info
,debug
, 'success',error
,time
, andtimeEnd
) are no longer on instances ofAcetate
. They are available on underacetate.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 useacetate.transform
for the same purpose. You will need to make the following changes:acetate.transformAsync(/* ... */)
=>acetate.transform(/* ... */)
.
acetate.transformAll
andacetate.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 toacetate.markdown
. - The Nunjucks environment instance at
acetate.renderer.nunjucks
has been moved toacetate.nunjucks
.
v1.3.5
Fixed
- Improved stability when building sites with large numbers of pages.
v1.3.4
Fixed
Live reloading of Markdown files on Windows now works.
v1.3.3
Changed
- Updated all underlying dependencies.
Fixed
- Watcher now works when default metadata is present in the loader.
v1.3.2
Fixed
- Fixed undesireable variables being merged into pages in some edgecases.
v1.3.1
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
Changed
acetate.metadata
now uses_.defaultsDeep
instead ofObject.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
Fixed
- Cached patterns for Minimatch in transformers. This should provide a large speed boost during the transform phase.
- Highlight JS tests