Releases: SassDoc/sassdoc
Releases · SassDoc/sassdoc
2.1.0 – Polite Little Squid
- A
@nameannotation has been added to make it possible to override an item's name (#358) - A
privatePrefixoption has been added to make it possible to autofill@access(#357) descriptionanddescriptionPathoptions have been added to make it possible to provide a project wide description, as direct Markdown or a Markdown file (#256)- A
sortoption has been added to make it possible to order items based on a couple of criterias (#239)
2.0.5
2.0.2
2.0.0 – Shiny Streamy Octopus
API breaks for users
- C-style comments (
/** */) are no longer supported (#326) - SassDoc now always outputs its own directory in the current folder (#302)
--destoption has been added to define SassDoc's folder path for output, default issassdoc(#302)--no-promptoption no longer exists since SassDoc outputs its own folder (#302)--sass-convertoption no longer exists and is now implied (#231)- Default name for configuration file is now
.sassdocrc(#189) @aliascan no longer be used on placeholders (#263)- Annotations
@access,@content,@deprecated,@group,@output,@returnand@typeare now restricted to one use per item (#257) - Annotations
@paramand@propnow use square brackets ([]) for default values rather than parentheses (()) to avoid edge issues (#303) - See
UPGRADE-2.0.mdto convert all your SassDoc comments.
API breaks for theme builders
sassdoc-filterandsassdoc-indexerrepositories no longer exist and have been replaced by sassdoc-extrassassdoc-theme-lightrepository no longer exists and has been replaced by sassdoc-theme-defaulthtml*properties no longer exist when using Markdown filter from sassdoc-extras, initial values are now overwritten (sassdoc-extras#6)@returnno longer returns a name and a default value, only a type and a description (#277)@contentno longer returns anautogeneratedkey, only a description (#262)parameterskey from item now becomesparameter(#225)requireskey from item now becomesrequire(#225)returnskey from item now becomesreturn(#225)throwskey from item now becomesthrow(#225)todoskey from item now becomestodo(#225)propkey from item now becomesproperty(#225)- When using the display filter from sassdoc-extras, items are now fully removed rather than given a
displaykey (sassdoc-extras#11)
API breaks for third party integration
- The node API has been revamped and unified.
sassdoc.documentizedoes not exist anymore.sassdoc(src [, config])execute the full Documentation process, returns a Promise.sassdoc([config])execute the full Documentation process, returns a Stream of Vinyl files.sassdoc.parse(src [, config])returns a Promise with the full data object.sassdoc.parse([config])returns a Stream with the full data object.
New features
- The whole API has been fully refactored in ES6 (#231)
$sign is now optional when defining the name in@parameterannotation (#222)- It is now possible to use file/folder exclusion patterns (#228)
- It is now possible to pipe SassDoc into
stdin(#315) --debugoption has been added to output information about current setup (#311)- Default theme now has a
googleAnalyticsconfiguration accepting a Google Analytics tracking key (sassdoc-theme-default#10) - Default theme now has a
trackingCodeconfiguration accepting an arbitrary HTML snippet to be included before</body>(sassdoc-theme-default#10) @contentannotation is now correctly output in default theme (sassdoc-theme-default#15)- Default theme now displays the type as well as the name when cross-linking items (requirements, and so on...) (sassdoc-theme-default#17)
- Error messages should now be more explicit, providing a file name and a line (#282)
--parseoption has been added to output raw parsing data as JSON from the CLI (#318)
Bug fixes
- Autofill no longer capture
@throwthat are already defined with annotations (#270) - Variables view source link now correctly supports start and end lines in default theme (sassdoc-theme-default#21)
- Empty groups are no longer displayed in default theme (sassdoc-theme-default#20)
- Variable content is no longer displayed as
safein (sassdoc-theme-default#19) @sincedescription is now parsed as Markdown in the default theme (sassdoc-extras#8)@deprecateddescription is now parsed as Markdown in the default theme (sassdoc-extras#7)
2.0.1
Fix debug task name Since `documentize` is an async function, it was in fact a 6to5 wrapper and not the original named function, thus `task.name` was returning a funny name like `callee$1$0`. This fix ensures the right name is displayed.
1.10.6
1.10.3
- Prevented
@requiresto autofill dependency twice
1.10.2
- Fixed an issue with the folder wiping safeguard always aborting if folder is not empty without even prompting
1.10.1
- Updated a dependency in order to use new version of sassdoc-theme-default
1.10.0
- Made annotations
@throws,@requiresand@contentfill themselves so you don't have to, unless told otherwise through theautofilloption (#232, #238) - Added the ability to define
--sass-convert,--no-update-identifierand--no-promptoptions within the configuration file instead of CLI only (#247) - Merged sassdoc-filter and sassdoc-indexer into sassdoc-extras; theme authors are asked to use the new repository