@@ -169,12 +169,10 @@ function linkManPages(text) {
169169 const displayAs = `<code>${ name } (${ number } ${ optionalCharacter } )</code>` ;
170170
171171 if ( BSD_ONLY_SYSCALLS . has ( name ) ) {
172- return `${ beginning } <a href="https://www.freebsd.org/cgi/man.cgi` +
173- `?query=${ name } &sektion=${ number } ">${ displayAs } </a>` ;
172+ return `${ beginning } <a href="https://www.freebsd.org/cgi/man.cgi?query=${ name } &sektion=${ number } ">${ displayAs } </a>` ;
174173 }
175174
176- return `${ beginning } <a href="http://man7.org/linux/man-pages/man${ number } ` +
177- `/${ name } .${ number } ${ optionalCharacter } .html">${ displayAs } </a>` ;
175+ return `${ beginning } <a href="http://man7.org/linux/man-pages/man${ number } /${ name } .${ number } ${ optionalCharacter } .html">${ displayAs } </a>` ;
178176 } ) ;
179177}
180178
@@ -212,17 +210,14 @@ function preprocessElements({ filename }) {
212210 } else if ( node . type === 'code' ) {
213211 if ( ! node . lang ) {
214212 console . warn (
215- `No language set in ${ filename } , ` +
216- `line ${ node . position . start . line } ` ) ;
213+ `No language set in ${ filename } , line ${ node . position . start . line } `
214+ ) ;
217215 }
218216 const className = isJSFlavorSnippet ( node ) ?
219217 `language-js ${ node . lang } ` :
220218 `language-${ node . lang } ` ;
221219 const highlighted =
222- `<code class='${ className } '>` +
223- ( getLanguage ( node . lang || '' ) ?
224- highlight ( node . lang , node . value ) : node ) . value +
225- '</code>' ;
220+ `<code class='${ className } '>${ ( getLanguage ( node . lang || '' ) ? highlight ( node . lang , node . value ) : node ) . value } </code>` ;
226221 node . type = 'html' ;
227222
228223 if ( isJSFlavorSnippet ( node ) ) {
@@ -356,8 +351,7 @@ function parseYAML(text) {
356351
357352 result += '</table>\n</details>\n' ;
358353 } else {
359- result += `${ added . description } ${ deprecated . description } ` +
360- `${ removed . description } \n` ;
354+ result += `${ added . description } ${ deprecated . description } ${ removed . description } \n` ;
361355 }
362356
363357 if ( meta . napiVersion ) {
@@ -420,15 +414,14 @@ function buildToc({ filename, apilinks }) {
420414 const hasStability = node . stability !== undefined ;
421415 toc += ' ' . repeat ( ( depth - 1 ) * 2 ) +
422416 ( hasStability ? `* <span class="stability_${ node . stability } ">` : '* ' ) +
423- `<a href="#${ isDeprecationHeading ? node . data . hProperties . id : id } ">` +
424- `${ headingText } </a>${ hasStability ? '</span>' : '' } \n` ;
417+ `<a href="#${ isDeprecationHeading ? node . data . hProperties . id : id } ">${ headingText } </a>${ hasStability ? '</span>' : '' } \n` ;
425418
426419 let anchor =
427420 `<span><a class="mark" href="#${ id } " id="${ id } ">#</a></span>` ;
428421
429422 if ( realFilename === 'errors' && headingText . startsWith ( 'ERR_' ) ) {
430- anchor += `<span><a class="mark" href="# ${ headingText } " ` +
431- ` id="${ headingText } ">#</a></span>`;
423+ anchor +=
424+ `<span><a class="mark" href="# ${ headingText } " id="${ headingText } ">#</a></span>`;
432425 }
433426
434427 const api = headingText . replace ( / ^ .* : \s + / , '' ) . replace ( / \( .* / , '' ) ;
@@ -478,8 +471,7 @@ function altDocs(filename, docCreated, versions) {
478471 `${ host } /docs/latest-v${ versionNum } /api/${ filename } .html` ;
479472
480473 const wrapInListItem = ( version ) =>
481- `<li><a href="${ getHref ( version . num ) } ">${ version . num } ` +
482- `${ version . lts ? ' <b>LTS</b>' : '' } </a></li>` ;
474+ `<li><a href="${ getHref ( version . num ) } ">${ version . num } ${ version . lts ? ' <b>LTS</b>' : '' } </a></li>` ;
483475
484476 function isDocInVersion ( version ) {
485477 const [ versionMajor , versionMinor ] = version . num . split ( '.' ) . map ( Number ) ;
0 commit comments