File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,10 @@ dependencies {
94
94
95
95
task extractDocResources (type : Sync ) {
96
96
dependsOn configurations. docs
97
- from " src/docs/asciidoc/"
98
97
from {
99
98
configurations. docs. collect { zipTree(it) }
100
99
}
100
+ from " src/docs/asciidoc/"
101
101
into " $buildDir /asciidoc/build"
102
102
}
103
103
Original file line number Diff line number Diff line change
1
+ < script type ="text/javascript " src ="js/tocbot/tocbot.min.js "> </ script >
2
+ < script type ="text/javascript " src ="js/toc.js "> </ script >
3
+ < script type ="text/javascript " src ="js/switch-language.js "> </ script >
Original file line number Diff line number Diff line change
1
+ function globalSwitch ( ) {
2
+ $ ( '.switch--item' ) . each ( function ( ) {
3
+ $ ( this ) . off ( 'click' ) ;
4
+ $ ( this ) . on ( 'click' , function ( ) {
5
+ selectedText = $ ( this ) . text ( )
6
+ selectedIndex = $ ( this ) . index ( )
7
+ $ ( ".switch--item" ) . filter ( function ( ) { return ( $ ( this ) . text ( ) === selectedText ) } ) . each ( function ( ) {
8
+ $ ( this ) . addClass ( 'selected' ) ;
9
+ $ ( this ) . siblings ( ) . removeClass ( 'selected' ) ;
10
+ selectedContent = $ ( this ) . parent ( ) . siblings ( ".content" ) . eq ( selectedIndex )
11
+ selectedContent . removeClass ( 'hidden' ) ;
12
+ selectedContent . siblings ( ) . addClass ( 'hidden' ) ;
13
+ } ) ;
14
+ } ) ;
15
+ } ) ;
16
+ }
17
+
18
+ $ ( globalSwitch ) ;
You can’t perform that action at this time.
0 commit comments