You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for getting information from sassdoc blocks.
/// This function has a sassdoc block. Also it greets a person :)///@param{string}$person///@accessprivate///@return{string} greets a person.@function_greet($person) {
@return'Hello there, #{$person}';
}
Sassdoc blocks can be used on functions, mixins, and variables.
/// Constant. The prefix for the custom properties///@typestring///@accessprivate$_ds-prefix: '';
/// This function has a sassdoc block. Also it greets a person :)///@param{string}$person///@accessprivate///@return{string} greets a person.@function_greet($person) {
@return'Hello there, #{$person}';
}
/// Mixin for applying background colors.///@param{string}$component///@param{token|color}$color///@param{string}$intent///@return{void} background color styles.@mixinfill($component, $color, $intent: 'create') {
@include_validate-color($color) {
@includetheme.property(
background-color,
('#{$component}-fill', theme.token-switch($color)),
$intent
);
}
}
Keep in mind, that sassdoc blocks are different from regular sass comments:
// This is a comment, and won't be counted as a sassdoc block/// This is a sassdoc block. It has three (3) forward slashes instead of the usual two (2)./// And as you've noticed, github parsed these docblocks as valid docblocks.///@typestring/// See. Pretty cool :)
Add support for getting information from sassdoc blocks.
Sassdoc blocks can be used on functions, mixins, and variables.
Keep in mind, that sassdoc blocks are different from regular sass comments:
Information about the sassdoc specifications can be found here: http://sassdoc.com/annotations/
Ideally, the plugin should show something like this when hovering a function, mixin, or variable.
The text was updated successfully, but these errors were encountered: