mirror of
https://github.com/tonytins/tomas.git
synced 2025-03-15 12:21:23 +00:00
deploy: aaaad6faf9
This commit is contained in:
parent
49dec67afb
commit
da9eba14f7
2 changed files with 4 additions and 4 deletions
4
book.js
4
book.js
|
@ -68,7 +68,7 @@ function playground_text(playground, hidden = true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// updates the visibility of play button based on `no_run` class and
|
// updates the visibility of play button based on `no_run` class and
|
||||||
// used crates vs ones available on http://play.rust-lang.org
|
// used crates vs ones available on https://play.rust-lang.org
|
||||||
function update_play_button(pre_block, playground_crates) {
|
function update_play_button(pre_block, playground_crates) {
|
||||||
var play_button = pre_block.querySelector(".play-button");
|
var play_button = pre_block.querySelector(".play-button");
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ function playground_text(playground, hidden = true) {
|
||||||
// even if highlighting doesn't apply
|
// even if highlighting doesn't apply
|
||||||
code_nodes.forEach(function (block) { block.classList.add('hljs'); });
|
code_nodes.forEach(function (block) { block.classList.add('hljs'); });
|
||||||
|
|
||||||
Array.from(document.querySelectorAll("code.language-rust")).forEach(function (block) {
|
Array.from(document.querySelectorAll("code.hljs")).forEach(function (block) {
|
||||||
|
|
||||||
var lines = Array.from(block.querySelectorAll('.boring'));
|
var lines = Array.from(block.querySelectorAll('.boring'));
|
||||||
// If no lines were hidden, return
|
// If no lines were hidden, return
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* Tomorrow Night Theme */
|
/* Tomorrow Night Theme */
|
||||||
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
|
/* https://github.com/jmblog/color-themes-for-highlightjs */
|
||||||
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
||||||
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
|
/* https://github.com/jmblog/color-themes-for-highlightjs */
|
||||||
|
|
||||||
/* Tomorrow Comment */
|
/* Tomorrow Comment */
|
||||||
.hljs-comment {
|
.hljs-comment {
|
||||||
|
|
Loading…
Add table
Reference in a new issue