Skip to content

Add ability to define file-level annotations #190

Description

@kaelig

In the SassDoc for Guss, which is essentially multiple libraries put together, I wanted each library to be part of its own group (making a clear separation between, say, CSS3 mixins and typography styles).

I ended up writing @group my-component a lot, since it had to be in all of the mixins / variables / functions that I documented. For example, in this file, you'll find @group typography 16 times.

To be more dry, is there something we could do about it, like a comment at the beginning of the file:

/**
 * @group typography
 */

That would set the group of all the mixins/variables/functions in the file to "typography" (unless set otherwise)?

This implementation is barely a suggestion. The important part of this open ticket is the problem of code repetition, not the bit of code above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions