From 1338b78f61fc55faf710ecf3d4c0fd0bb3821061 Mon Sep 17 00:00:00 2001 From: Andrew Gioia Date: Thu, 23 Feb 2023 08:48:33 -0500 Subject: [PATCH] Updates hugo build process to use embedded dart sass, no longer need to watch multiple compile processes --- docs/assets/css/docs.css | 2 +- docs/index.html | 6 ++- docs/sets/index.html | 38 ++++++++++--------- .../src/{resources => assets}/scss/_home.scss | 0 .../{resources => assets}/scss/_layout.scss | 0 .../src/{resources => assets}/scss/_sets.scss | 2 +- .../src/{resources => assets}/scss/_type.scss | 0 .../{resources => assets}/scss/_utils.scss | 0 docs/src/{resources => assets}/scss/docs.scss | 0 docs/src/layouts/_default/baseof.html | 6 ++- docs/src/static/assets/css/docs.css | 2 +- package.json | 23 +++++++++++ 12 files changed, 57 insertions(+), 22 deletions(-) rename docs/src/{resources => assets}/scss/_home.scss (100%) rename docs/src/{resources => assets}/scss/_layout.scss (100%) rename docs/src/{resources => assets}/scss/_sets.scss (99%) rename docs/src/{resources => assets}/scss/_type.scss (100%) rename docs/src/{resources => assets}/scss/_utils.scss (100%) rename docs/src/{resources => assets}/scss/docs.scss (100%) create mode 100644 package.json diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 205ea4e..f48d414 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -1500,7 +1500,7 @@ object details .tags a.card::before { transform: rotate(-20deg) translateY(-3px) translateX(6px); } object details .tags a.card:hover::before { - transform: rotate(-30deg) translateY(-3px) translateX(6px) scale(1.04); + transform: rotate(-30deg) translateY(-3px) translateX(6px) scale(1.05); } object.active { visibility: visible; diff --git a/docs/index.html b/docs/index.html index d151a58..ae09859 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,7 +9,11 @@ - + + + + + diff --git a/docs/sets/index.html b/docs/sets/index.html index b85cdc6..aa29798 100644 --- a/docs/sets/index.html +++ b/docs/sets/index.html @@ -9,7 +9,11 @@ - + + + + + @@ -708,22 +712,6 @@ chr Chronicles -
- - rin - Rinascimento
ren Renaissance +
+ + rin + Rinascimento
diff --git a/docs/src/resources/scss/_home.scss b/docs/src/assets/scss/_home.scss similarity index 100% rename from docs/src/resources/scss/_home.scss rename to docs/src/assets/scss/_home.scss diff --git a/docs/src/resources/scss/_layout.scss b/docs/src/assets/scss/_layout.scss similarity index 100% rename from docs/src/resources/scss/_layout.scss rename to docs/src/assets/scss/_layout.scss diff --git a/docs/src/resources/scss/_sets.scss b/docs/src/assets/scss/_sets.scss similarity index 99% rename from docs/src/resources/scss/_sets.scss rename to docs/src/assets/scss/_sets.scss index f8d463d..04d1f58 100644 --- a/docs/src/resources/scss/_sets.scss +++ b/docs/src/assets/scss/_sets.scss @@ -584,7 +584,7 @@ object { } &:hover::before { - transform: rotate(-30deg) translateY(-3px) translateX(6px) scale(1.04); + transform: rotate(-30deg) translateY(-3px) translateX(6px) scale(1.05); } } } diff --git a/docs/src/resources/scss/_type.scss b/docs/src/assets/scss/_type.scss similarity index 100% rename from docs/src/resources/scss/_type.scss rename to docs/src/assets/scss/_type.scss diff --git a/docs/src/resources/scss/_utils.scss b/docs/src/assets/scss/_utils.scss similarity index 100% rename from docs/src/resources/scss/_utils.scss rename to docs/src/assets/scss/_utils.scss diff --git a/docs/src/resources/scss/docs.scss b/docs/src/assets/scss/docs.scss similarity index 100% rename from docs/src/resources/scss/docs.scss rename to docs/src/assets/scss/docs.scss diff --git a/docs/src/layouts/_default/baseof.html b/docs/src/layouts/_default/baseof.html index bfb0b29..9b6b8f3 100644 --- a/docs/src/layouts/_default/baseof.html +++ b/docs/src/layouts/_default/baseof.html @@ -9,7 +9,11 @@ - + + {{ $options := (dict "targetPath" "static/assets/css/docs.css" "transpiler" "dartsass") }} + {{ $sass := resources.Get "scss/docs.scss" }} + {{ $style := $sass | resources.ToCSS $options }} + diff --git a/docs/src/static/assets/css/docs.css b/docs/src/static/assets/css/docs.css index 205ea4e..f48d414 100644 --- a/docs/src/static/assets/css/docs.css +++ b/docs/src/static/assets/css/docs.css @@ -1500,7 +1500,7 @@ object details .tags a.card::before { transform: rotate(-20deg) translateY(-3px) translateX(6px); } object details .tags a.card:hover::before { - transform: rotate(-30deg) translateY(-3px) translateX(6px) scale(1.04); + transform: rotate(-30deg) translateY(-3px) translateX(6px) scale(1.05); } object.active { visibility: visible; diff --git a/package.json b/package.json new file mode 100644 index 0000000..fd1bc92 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "keyrune4", + "version": "4.0.0", + "author": "Andrew Gioia", + "description": "Magic: the Gathering icon font", + "license": "(OFL-1.1 AND GPL-3.0-only)", + "homepage": "https://keyrune.andrewgioia.com", + "main": "dist/css/keyrune.css", + "directories": { + "doc": "docs" + }, + "scripts": { + "build": "" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/andrewgioia/keyrune.git" + }, + "bugs": { + "url": "https://github.com/andrewgioia/keyrune/issues", + "email": "andrew@gioia.email" + }, +} \ No newline at end of file