File tree Expand file tree Collapse file tree 5 files changed +27
-2
lines changed Expand file tree Collapse file tree 5 files changed +27
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "overrides": [
3
+ {
4
+ "files": ["*.html"],
5
+ "options": {
6
+ "parser": "go-template",
7
+ "goTemplateBracketSpacing": true,
8
+ "bracketSameLine": true
9
+ }
10
+ },
11
+ {
12
+ "files": ["*.js", "*.ts"],
13
+ "options": {
14
+ "useTabs": true,
15
+ "printWidth": 120,
16
+ "singleQuote": true
17
+ }
18
+ }
19
+ ]
20
+ }
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ export function newToCController() {
60
60
61
61
rowClass : function ( row ) {
62
62
return {
63
- class : `toc-h${ row . level } ${ row . active ? ' active' : '' } ${ row . active_parent ? ' active-parent' : '' } ` ,
63
+ [ 'x-bind:class' ] ( ) {
64
+ return `toc-h${ row . level } ${ row . active ? ' active' : '' } ${ row . active_parent ? ' active-parent' : '' } ` ;
65
+ } ,
64
66
} ;
65
67
} ,
66
68
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ github.com/bep/docuapi/v2 v2.0.4 h1:TU6CzjdfiWI+D/d911r8ZQG7R8h64ayEaC6iWNbJ/NQ=
2
2
github.com/bep/docuapi/v2 v2.0.4 /go.mod h1:hoeibCSjXWJ/fLOwPSo8WZbgl5EO3zQjS/nrAs2v2Ro =
3
3
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 h1:yIymGxglvwr9Guhk7cr9VoMQ3IgLLJ0E4PKcKCg+kJY =
4
4
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 /go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY =
5
+ github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200 /go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY =
5
6
github.com/olivernn/lunr.js v2.3.9+incompatible h1:eH8iBnjlR4mwlYDdNuqy9PCNLjp2bEs6aoNnTSaccx0 =
6
7
github.com/olivernn/lunr.js v2.3.9+incompatible /go.mod h1:yEkQ1DUSMtNsn8n2CqvQXZd0ErWPEG8g9QRmblR+KS8 =
7
8
github.com/slatedocs/slate v2.9.2+incompatible h1:PnIMTR1S7pE6tImIjF6ny9UaRrt6fukM93lwUwJPtjw =
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/bep/docuapi/v2
3
3
go 1.16
4
4
5
5
require (
6
- github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 // indirect
6
+ github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200 // indirect
7
7
github.com/olivernn/lunr.js v2.3.9+incompatible // indirect
8
8
github.com/slatedocs/slate v2.9.2+incompatible // indirect
9
9
)
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.401.201 h1:rIBco2i/51nTP
2
2
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.401.201 /go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY =
3
3
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 h1:yIymGxglvwr9Guhk7cr9VoMQ3IgLLJ0E4PKcKCg+kJY =
4
4
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 /go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY =
5
+ github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200 h1:og3wJvy7wxSXWmr4gDmPb+7u70fz8v9H7kRa4S2apqM =
6
+ github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200 /go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY =
5
7
github.com/olivernn/lunr.js v2.3.9+incompatible h1:eH8iBnjlR4mwlYDdNuqy9PCNLjp2bEs6aoNnTSaccx0 =
6
8
github.com/olivernn/lunr.js v2.3.9+incompatible /go.mod h1:yEkQ1DUSMtNsn8n2CqvQXZd0ErWPEG8g9QRmblR+KS8 =
7
9
github.com/slatedocs/slate v2.9.2+incompatible h1:PnIMTR1S7pE6tImIjF6ny9UaRrt6fukM93lwUwJPtjw =
You can’t perform that action at this time.
0 commit comments