Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want Sass examples to be compiled automatically #37

Closed
mirisuzanne opened this issue Nov 22, 2016 · 3 comments
Closed

I want Sass examples to be compiled automatically #37

mirisuzanne opened this issue Nov 22, 2016 · 3 comments
Assignees
Milestone

Comments

@mirisuzanne
Copy link
Member

Same as njk examples.

@davisagli
Copy link
Contributor

Is this for documenting how to use Sass macros and functions? So we would need to render the Sass example in an environment that includes the Sass sassdoc is being run on, right?

@mirisuzanne
Copy link
Member Author

That's right, yes.

@davisagli
Copy link
Contributor

l'm not quite sure how to tackle this. The challenges are:

  1. sassdoc operates on a list of sass files, and there's no info about which one is meant to be the main entry point so that we know what to import as the environment to render the example in. So I don't think there's a way around adding a config option to specify this.
  2. Even if we know what to import, I don't know a way to make node-sass operate in two stages so that it first imports all the Sass without rendering it, and then renders just the example using the former as an environment.

@jgerigmeyer jgerigmeyer changed the title I want Sass examples to be compiled automtically I want Sass examples to be compiled automatically Jan 17, 2017
@mirisuzanne mirisuzanne modified the milestone: Herman 1.0 May 19, 2017
@mirisuzanne mirisuzanne assigned wlonk and unassigned davisagli May 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants