- Switch to Drafter for API Blueprint parsing. #277
- Fix case when no arguments are supplied after
-o
#262
- Bump protagonist version to 1.3.2 to support new features. #256
- Update required default theme version to 1.6.3.
- Support for Node.js 3.x and 4.x. #183
- Upgraded to Protagonist version 1.x, which has disabled the JSON Schema generation from MSON until some bugs can be worked out.
- Fix the default include path behavior when outputting a file to use the basename of the input file rather than
process.cwd()
. Also updates documentation to mention this behavior and option. #166
- Add a
--include-path
option to set the path for relative includes. #165
- Show theme name before loading when given
--verbose
option. - Update required default theme version to 1.2.0.
- Update required default theme version to 1.1.0.
- Readme and example updates.
- Update required default theme version to support custom jade templates written for Aglio 1.x.
- Add a
--verbose
output option for errors that displays pretty stack traces. - Provide more descriptive errors.
- Add backward-compatible support for the
aglio
binary to specify a custom layout via the-t
commandline option. Example:aglio -i input.apib -t /path/to/my.jade -o output.html
- Display default theme version when using
aglio --version
.
This is a new major version of Aglio, and as such has some breaking changes. High-level changes in this release:
- Use Drafter.js to support MSON via generated request/response bodies and schemas.
- Add support for theme engines.
- Use Olio as the new default theme engine.
- API and resource group description headers are now included in the navigation bar.
- Server mode can now serve static files, which is useful if your documentation contains images.
- Fixes to how resource and action parameters are handled.
For more detailed information, see the beta releases below.
Effort was taken to prevent backward-incompatible changes. Here is a list of things that will break if you used them in 1.x.
Binary:
- It is no longer possible to list templates (
aglio -l
). You may usenpm list -g | grep aglio-theme
to list all installed theme engine packages instead. Refer to individual theme documentation for possible theme engine options.
Library:
- The
aglio.getTemplates
function has been removed.
Templates:
- The multi-page layouts have been removed. Please open an issue if you would like to see them in the new theme engine.
- The collapsed navigation layouts have been removed. This is now in the default theme and handled automatically based on browser window height.
The following are translated internally and will not break, but are suggested updates:
Binary:
- The
-t
option is now shorthand for--theme
instead of--template
. - The
--full-width
and--condense-nav
parameters are now--theme-full-width
and--theme-condense-nav
in the default theme engine.
Library:
- Passing a string as the options to
render
andrenderFile
will still work if it is a known variant:default
,flatly
,slate
,cyborg
or one of the collapsed versions of those. If it is a path and the file exists, then it will use it as a customthemeLayout
option. Otherwise it will set the theme engine name. 😵 - You should use
options.theme
instead ofoptions.template
. - You should use
options.themeVariables = 'flatly'
to set the color variation. - You should use
options.themeTemplate = '/path/to/layout.jade'
to set the layout template.
Thank you to all the contributors and testers for helping to make this an awesome release! 🍻
- Update to olio theme 0.0.9.
- Fix an issue with included paths when using
--server
. - Update to olio theme 0.0.8.
- Update to olio theme 0.0.7.
- Documentation updates.
- Server mode now serves static files if found.
- Add ability to output compiled API Blueprint file instead of HTML.
- Update to olio theme 0.0.6.
- Live update fixes.
- Example fixes.
- Implement theme engine support; depend on the default olio theme.
- Switch to using drafter.js instead of protagonist directly.
- Upgrade to [Protagonist] 0.19.0, which adds support for Node.js 0.12.x and iojs 1.x. (#77)
- Switch to Remarkable Markdown parser, which is faster and supports the new CommonMark specification. GFM is supported.
- Fix live reload no longer working with some configurations (#74)
- Watch all included files for live reloading.
- New logo
- Add support for [including files] (https://github.com/danielgtaylor/aglio#including-files)
- Update dependencies (chokidar)
- Update dependencies (chokidar, marked, protagonist, stylus)
- Fixes rendering description when headers are not present (#66)
- Fixes minor typo (#67)
- Fixes template js bug related to live reloading. (179ea7e)