mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 02:24:19 +02:00
docs: switch to dart sass
This commit is contained in:
3
.github/workflows/docs.yml
vendored
3
.github/workflows/docs.yml
vendored
@@ -35,6 +35,9 @@ jobs:
|
|||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Install Dart Sass
|
||||||
|
run: sudo snap install dart-sass
|
||||||
|
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: npm run docs-build
|
run: npm run docs-build
|
||||||
|
|
||||||
|
@@ -160,9 +160,6 @@
|
|||||||
"scss/**/*.scss",
|
"scss/**/*.scss",
|
||||||
"!scss/tests/**"
|
"!scss/tests/**"
|
||||||
],
|
],
|
||||||
"hugo-bin": {
|
|
||||||
"buildTags": "extended"
|
|
||||||
},
|
|
||||||
"jspm": {
|
"jspm": {
|
||||||
"registry": "npm",
|
"registry": "npm",
|
||||||
"main": "js/bootstrap",
|
"main": "js/bootstrap",
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
{{- if (ne .Page.Layout "examples") }}
|
{{- if (ne .Page.Layout "examples") }}
|
||||||
{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}}
|
{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}}
|
||||||
{{- $sassOptions := dict "targetPath" $targetDocsCssPath "outputStyle" "expanded" "precision" 6 -}}
|
{{- $sassOptions := dict "transpiler" "dartsass" "targetPath" $targetDocsCssPath "outputStyle" "expanded" -}}
|
||||||
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
|
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
|
||||||
|
|
||||||
{{ if eq hugo.Environment "production" -}}
|
{{ if eq hugo.Environment "production" -}}
|
||||||
|
Reference in New Issue
Block a user