diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-05-19 16:32:44 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-05-22 16:15:39 +0300 |
commit | 40183cd5c768cb9e11064094f6ec9bd013c53f6a (patch) | |
tree | fa59ed04434f347872ff5732666df25571cc247c | |
parent | 1d7f108b86dfac6faa463340f6102d14ef115ba8 (diff) |
Alpine Alpine 3.10.2deps/alpine2205
-rw-r--r-- | .prettierrc | 20 | ||||
-rw-r--r-- | assets/js/controllers/toc.js | 4 | ||||
-rw-r--r-- | exampleSite/go.sum | 1 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | go.sum | 2 |
5 files changed, 27 insertions, 2 deletions
diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..bb762aa --- /dev/null +++ b/.prettierrc @@ -0,0 +1,20 @@ +{ + "overrides": [ + { + "files": ["*.html"], + "options": { + "parser": "go-template", + "goTemplateBracketSpacing": true, + "bracketSameLine": true + } + }, + { + "files": ["*.js", "*.ts"], + "options": { + "useTabs": true, + "printWidth": 120, + "singleQuote": true + } + } + ] +} diff --git a/assets/js/controllers/toc.js b/assets/js/controllers/toc.js index f19f491..4bcc45c 100644 --- a/assets/js/controllers/toc.js +++ b/assets/js/controllers/toc.js @@ -60,7 +60,9 @@ export function newToCController() { rowClass: function (row) { return { - class: `toc-h${row.level}${row.active ? ' active' : ''}${row.active_parent ? ' active-parent' : ''}`, + ['x-bind:class']() { + return `toc-h${row.level}${row.active ? ' active' : ''}${row.active_parent ? ' active-parent' : ''}`; + }, }; }, diff --git a/exampleSite/go.sum b/exampleSite/go.sum index 1ae5fb1..1fa4810 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -2,6 +2,7 @@ github.com/bep/docuapi/v2 v2.0.4 h1:TU6CzjdfiWI+D/d911r8ZQG7R8h64ayEaC6iWNbJ/NQ= github.com/bep/docuapi/v2 v2.0.4/go.mod h1:hoeibCSjXWJ/fLOwPSo8WZbgl5EO3zQjS/nrAs2v2Ro= github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 h1:yIymGxglvwr9Guhk7cr9VoMQ3IgLLJ0E4PKcKCg+kJY= github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY= +github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY= github.com/olivernn/lunr.js v2.3.9+incompatible h1:eH8iBnjlR4mwlYDdNuqy9PCNLjp2bEs6aoNnTSaccx0= github.com/olivernn/lunr.js v2.3.9+incompatible/go.mod h1:yEkQ1DUSMtNsn8n2CqvQXZd0ErWPEG8g9QRmblR+KS8= github.com/slatedocs/slate v2.9.2+incompatible h1:PnIMTR1S7pE6tImIjF6ny9UaRrt6fukM93lwUwJPtjw= @@ -3,7 +3,7 @@ module github.com/bep/docuapi/v2 go 1.16 require ( - github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 // indirect + github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200 // indirect github.com/olivernn/lunr.js v2.3.9+incompatible // indirect github.com/slatedocs/slate v2.9.2+incompatible // indirect ) @@ -2,6 +2,8 @@ github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.401.201 h1:rIBco2i/51nTP github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.401.201/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY= github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 h1:yIymGxglvwr9Guhk7cr9VoMQ3IgLLJ0E4PKcKCg+kJY= github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY= +github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200 h1:og3wJvy7wxSXWmr4gDmPb+7u70fz8v9H7kRa4S2apqM= +github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY= github.com/olivernn/lunr.js v2.3.9+incompatible h1:eH8iBnjlR4mwlYDdNuqy9PCNLjp2bEs6aoNnTSaccx0= github.com/olivernn/lunr.js v2.3.9+incompatible/go.mod h1:yEkQ1DUSMtNsn8n2CqvQXZd0ErWPEG8g9QRmblR+KS8= github.com/slatedocs/slate v2.9.2+incompatible h1:PnIMTR1S7pE6tImIjF6ny9UaRrt6fukM93lwUwJPtjw= |