π v1.0.0 π
No changes from v1.0.0-rc.8. Changes since v0.5.5:
π New Features
- Support for remaining SassDoc annotations:
@throw,@return,@output,@content,@since,@deprecated,@author,@todo,@type,@alias(and aliased callback),used-by(@requireannotation callbacks) - New
@font,@colors,@sizes, and@ratiosannotations (replace@previewannotation) -- #206 - Support for SassDoc [
googleAnalytics][googleAnalytics] and [trackingCode][trackingCode] options -- #215 - Site-wide search -- #28
extraDocsoption: adds additional files (parsed as Markdown) -- #117extraLinksoption: adds external links to sidebar nav -- #175displayColorsoption: customizes color formats displayed with@colorsannotationcustomHTMLoption: HTML to include in rendered@exampleannotations (replacesminifiedIconsoption)- Support "prose" SassDoc comments, that aren't attached to a Sass block (parsed as Markdown)
- Sass:
herman-exportmixin -- JSON-export functionality is now built-in Sass-json-export integration should continue to work as expected - Sass:
herman-add($key, $map, $argsβ¦)function -- adds maps directly to$herman, with optional function/args to compile raw map values
π₯ Breaking Changes
- Require Node >= 6.0.0
- Remove
@previewannotation (replaced by new@font,@colors,@sizes, and@ratiosannotations) -- #206 - Remove
@macroannotation (replaced by@example njk) -- #182 @iconsannotation now only requires path to a folder of SVG icons: relative to the project directory, no longer relative to thetemplatepathoption -- #47- Herman-specific options are now nested under top-level
hermanobject in SassDoc configuration - Remove
minifiedIconsoption (replaced with newcustomHTMLoption) - Remove
customHeadoption (replaced by multiline@fontannotation) - Sass-specific options are now nested under
herman.sassobject - Remove top-level
templatepathandnunjucksEnvoptions -- now nested under newnunjucksoptions object:nunjucks.templatepathandnunjucks.environment customCSSis only included in rendered@exampleannotation iframes- Group navigation is now ordered according to config
groupsorder -- #150 - Preserve the original order of SassDoc comments, rather than grouping by type
- Sass:
$hermanexport map structure is now organized by type, in nested maps:colors,sizes,ratios, andfonts - Sass:
herman-addmixin now requires an initial$typeargument, in order to assign the given data to the proper nested data-type map - Sass: Rename
$jsonto$hermanfor clearer name-spacing - Sass:
_herman-inspect, and_herman-str-replaceare now considered private functions - Sass:
herman-map-compilealways returns inspected (json-ready) values, and now accepts function args - Sass: Remove
herman-add-colors/-sizes/-ratios/-fontfrom utils
π Bug Fixes
- Return correct promise from theme function (fixes early resolution)
UsedBylist is aware ofdisplay.aliasto unlink hidden aliases- Do not link to internal
@access privateitems ifdisplayoption is set toaccess: ['public'] - Fix assets referenced with relative urls in client-provided
customCSSfor@exampleannotations -- #174 - Fix blocks with multi-line selectors and custom
@nameannotations -- #140 - Fix broken internal links -- #106
- Do not break layout on fonts with single-item stack -- #172
π Polish
- Add attribution/link to Herman/OddBird in nav footer (hidden if
display.watermarkis set tofalse) -- #154 - Replace marked with markdown-it for Markdown parsing with quote beautification -- #119
- Add "widont" text transformations with typogr
- Pretty-print compiled HTML/Nunjucks with html prettyprinter
- Add Herman logo for default favicon -- #155
- Group identical colors in
@colorscolor-palette -- #123 - Display
@examplesource and compiled code (njk and html; scss and css) side-by-side -- #65, #37 - Display links on index pages to project home and source, when defined in the project
package.json-- #91 - Clean up display of parameters and properties -- #53, #49, #55
- Re-brand with sidebar navigation -- #58, #69
- Various branding and style improvements
π Internal
- Use forked version of CDocParser preserving
///within comments -- #212 - Use
installJinjaCompatfor default Nunjucks environment - Bundle static assets with Webpack; precompile JS with Babel -- #205
- Do not minify compiled HTML assets -- #186
- Move documentation to
docs/and include in repo - Flesh out Herman documentation
- Use GoogleFonts rather than shipping font files
- Add 100% test coverage
- Update dependencies