This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1515 < title > Clippy Lints</ title >
1616
1717 < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css "/>
18- < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/styles/github.min.css "/>
18+ < link id ="githubLightHighlight " rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/github.min.css " disabled ="true " />
19+ < link id ="githubDarkHighlight " rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/github-dark.min.css " disabled ="true " />
1920
2021 <!-- The files are not copied over into the Clippy project since they use the MPL-2.0 License -->
2122 < link rel ="stylesheet " href ="https://rust-lang.github.io/mdBook/css/variables.css "/>
@@ -561,8 +562,8 @@ <h2 class="panel-title">
561562 </ a >
562563
563564 < script src ="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/12.3.2/markdown-it.min.js "> </ script >
564- < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5 .0/highlight.min.js "> </ script >
565- < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5 .0/languages/rust.min.js "> </ script >
565+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6 .0/highlight.min.js "> </ script >
566+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6 .0/languages/rust.min.js "> </ script >
566567 < script src ="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.12/angular.min.js "> </ script >
567568 < script src ="script.js "> </ script >
568569</ body >
Original file line number Diff line number Diff line change 77 if ( lang && hljs . getLanguage ( lang ) ) {
88 try {
99 return '<pre class="hljs"><code>' +
10- hljs . highlight ( lang , str , true ) . value +
10+ hljs . highlight ( str , { language : lang , ignoreIllegals : true } ) . value +
1111 '</code></pre>' ;
1212 } catch ( __ ) { }
1313 }
@@ -365,6 +365,9 @@ function setTheme(theme, store) {
365365
366366 document . getElementsByTagName ( "body" ) [ 0 ] . className = theme ;
367367
368+ document . getElementById ( "githubLightHighlight" ) . disabled = enableNight || ! enableHighlight ;
369+ document . getElementById ( "githubDarkHighlight" ) . disabled = ! enableNight && ! enableAyu ;
370+
368371 document . getElementById ( "styleHighlight" ) . disabled = ! enableHighlight ;
369372 document . getElementById ( "styleNight" ) . disabled = ! enableNight ;
370373 document . getElementById ( "styleAyu" ) . disabled = ! enableAyu ;
You can’t perform that action at this time.
0 commit comments