Compare commits

...

5 Commits

Author SHA1 Message Date
XhmikosR 2538f04a2b Merge branch 'main' into xmr/docs-sass 2024-03-19 15:57:43 +02:00
XhmikosR 05b8256c0d Merge branch 'main' into xmr/docs-sass 2024-03-08 12:58:53 +02:00
XhmikosR 41724a7559 Merge branch 'main' into xmr/docs-sass 2024-03-06 21:16:57 +02:00
XhmikosR a945139a80 Create netlify.toml 2024-03-03 08:33:14 +02:00
XhmikosR 0d73736616 docs: switch to dart sass 2024-03-03 08:33:14 +02:00
4 changed files with 17 additions and 4 deletions
+3
View File
@@ -35,6 +35,9 @@ jobs:
- name: Install npm dependencies
run: npm ci
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Build docs
run: npm run docs-build
+13
View File
@@ -0,0 +1,13 @@
# https://gohugo.io/functions/resources/tocss/#installation-overview
[build.environment]
DART_SASS_VERSION = "1.71.1"
[build]
command = """\
curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
rm dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz && \
export PATH=/opt/build/repo/dart-sass:$PATH && \
npm run netlify \
"""
-3
View File
@@ -163,9 +163,6 @@
"scss/**/*.scss",
"!scss/tests/**"
],
"hugo-bin": {
"buildTags": "extended"
},
"jspm": {
"registry": "npm",
"main": "js/bootstrap",
+1 -1
View File
@@ -9,7 +9,7 @@
{{- end }}
{{- if (ne .Page.Layout "examples") }}
{{- $sassOptions := dict "outputStyle" "expanded" "precision" 6 -}}
{{- $sassOptions := dict "transpiler" "dartsass" "outputStyle" "expanded" -}}
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}}