@@ -67,7 +67,7 @@ while (dirs.length) {
67
67
const lang = langClass . replace ( 'language-' , '' ) ;
68
68
const lines = node . html ( ) . split ( '\n' ) ;
69
69
const boring = lines . map ( ( line ) =>
70
- line . includes ( '<span class="boring">' )
70
+ line . includes ( '<span class="boring">' ) ,
71
71
) ;
72
72
const ellipsis = lines . map ( ( line ) => line . includes ( '// ...' ) ) ;
73
73
const target = entities . decode ( node . text ( ) ) ;
@@ -105,7 +105,11 @@ while (dirs.length) {
105
105
foundScript = true ;
106
106
}
107
107
} ) ;
108
- const pathsWithoutScript = [ 'build/toc.html' , 'build/build/index.html' , 'build/binding/index.html' ] ;
108
+ const pathsWithoutScript = [
109
+ 'build/toc.html' ,
110
+ 'build/build/index.html' ,
111
+ 'build/binding/index.html' ,
112
+ ] ;
109
113
if ( ! foundScript && ! pathsWithoutScript . includes ( path ) ) {
110
114
throw new Error ( 'theme script not found' ) ;
111
115
}
@@ -121,5 +125,8 @@ fs.copyFileSync('build/highlight.css', 'build/ayu-highlight.css');
121
125
var bookjs = fs . readFileSync ( 'build/book.js' , 'utf8' ) ;
122
126
bookjs = bookjs
123
127
. replace ( 'set_theme(theme, false);' , '' )
124
- . replace ( 'document.querySelectorAll("code.hljs")' , 'document.querySelectorAll("code.hidelines")' ) ;
128
+ . replace (
129
+ 'document.querySelectorAll("code.hljs")' ,
130
+ 'document.querySelectorAll("code.hidelines")' ,
131
+ ) ;
125
132
fs . writeFileSync ( 'build/book.js' , bookjs ) ;
0 commit comments