Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bep/docuapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-19 16:32:44 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-22 16:23:15 +0300
commit69e8218d01e501d40bb4600ed7d08e22fde3f33c (patch)
treefa59ed04434f347872ff5732666df25571cc247c
parent1d7f108b86dfac6faa463340f6102d14ef115ba8 (diff)
Alpine Alpine 3.10.2v2.1.0
-rw-r--r--.prettierrc20
-rw-r--r--assets/js/controllers/toc.js4
-rw-r--r--exampleSite/go.sum1
-rw-r--r--go.mod2
-rw-r--r--go.sum2
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=
diff --git a/go.mod b/go.mod
index a171184..1480e9f 100644
--- a/go.mod
+++ b/go.mod
@@ -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
)
diff --git a/go.sum b/go.sum
index 649faa5..2cebf5d 100644
--- a/go.sum
+++ b/go.sum
@@ -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=