mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
Add Dart Sass support
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102
This commit is contained in:
parent
f9f779786e
commit
cea1574023
26 changed files with 804 additions and 207 deletions
|
@ -88,6 +88,18 @@ func DiffStrings(s1, s2 string) []string {
|
|||
return DiffStringSlices(strings.Fields(s1), strings.Fields(s2))
|
||||
}
|
||||
|
||||
// IsCI reports whether we're running in a CI server.
|
||||
func IsCI() bool {
|
||||
return (os.Getenv("CI") != "" || os.Getenv("CI_LOCAL") != "") && os.Getenv("CIRCLE_BRANCH") == ""
|
||||
}
|
||||
|
||||
// IsGitHubAction reports whether we're running in a GitHub Action.
|
||||
func IsGitHubAction() bool {
|
||||
return os.Getenv("GITHUB_ACTION") != ""
|
||||
}
|
||||
|
||||
// SupportsAll reports whether the running system supports all Hugo features,
|
||||
// e.g. Asciidoc, Pandoc etc.
|
||||
func SupportsAll() bool {
|
||||
return IsGitHubAction()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue