-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Provide clear documentation for Dart Sass installation, configuration, and usage #1921
Comments
Current Sass docs link for reference What scope and place would you like Sass setup docs to have? A short section at the beginning of that page? A separate page with a lot of optional details? I feel like short setup notes would be helpful and reasonable. But I don’t think extensive configuration or usage of sass itself is in scope for Hugo. So what are you looking for in configuration and usage beyond what is already documented? |
This isn't actionable at the moment. If we add something to the docs at some point, it would be somewhere else. We have a broad spectrum of users, from those have never used the command line, to those who build everything from source. Inexperienced users sometimes have trouble modifying their PATH environment variable, but I don't think it is our job to teach them. I recently removed this from the Hugo installation documentation, for very good reasons, replacing it with:
For inexperienced users, using a package manager is easier, assuming they can install a package manager. Ideally there would be dart-sass-embedded community packages (not created or maintained by the Hugo developers) for:
Note that the Hugo Snap package already includes dart-sass-embedded. Once the dart-sass-embedded packages for Chocolately and Scoop are approved and tested in the wild, it will be trivial to add these to the corresponding Hugo packages as dependencies. Related article by @brycewray: Footnotes
|
Thank you for the work you've done creating installers for Snap, Chocolatey, and Scoop, @jmooring. I agree that there's only so much that can be communicated in a ReadMe.
There are some particulars about installing and configuring Embedded Dart Sass that were exceptionally unintuitive even for more experienced developers, that
I was only able to work out this detail thanks to Bryce Wray's articles. This is the chain of Hugo documentation that I believe most likely for user who notice their need for Dart Sass Embedded:
With a lack of any installation instructions in that chain, it's likely users will get confused, maybe google and wind up who knows where, try to install a different Sass package, or try to install the Node package. |
Homebrew now has a dart-sass-embedded formula. (See completed issue).
|
Temporary documentation here: |
This will ultimately change with gohugoio/hugo#11059. |
Embedded Dart Sass was deprecated in favor of Dart Sass. Hugo v0.114.0 and later are compatible with both Dart Sass (v1.63.4 and later) and Embedded Dart Sass (v1.62.1 and earlier). To install Dart Sass:
You may also install prebuilt binaries for Linux, macOS, and Windows. Run |
@jmooring that table is great. A foot note: I haven't checked, but I was also hoping that this move also would get the dart binary into the build setups of the most popular build hosts (e.g. Netlify, |
@bep @jmooring I've been talking to the Cloudflare Pages folks about that, since their new "v2" build image already has https://discord.com/channels/595317990191398933/1110589273549328485/1120739643235782826 |
See gohugoio/hugo#8299 (comment)
Ref: https://discourse.gohugo.io/t/first-stable-release-of-dart-sass-embedded/36911/2
The text was updated successfully, but these errors were encountered: