Skip to content

Commit

Permalink
add ch2
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangHanDong committed Feb 24, 2021
1 parent 6392824 commit 81cc6ad
Show file tree
Hide file tree
Showing 60 changed files with 6,348 additions and 2 deletions.
14 changes: 13 additions & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@ multilingual = false
src = "src"
title = "rust-magazine"

[preprocessor.mermaid]
command = "mdbook-mermaid"

[output.html]
theme = "mytheme"
default-theme = "rust"
google-analytics = "UA-188947685-1"
git-repository-url = "https://github.com/RustMagazine/rust_magazine_2021"
additional-js = ["mermaid.min.js", "mermaid-init.js"]


[output.html.playground]
editable = true
editable = true
copy-js = true




1 change: 1 addition & 0 deletions mermaid-init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mermaid.initialize({startOnLoad:true});
32 changes: 32 additions & 0 deletions mermaid.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions mytheme/FontAwesome/css/font-awesome.min.css

Large diffs are not rendered by default.

Binary file added mytheme/FontAwesome/fonts/FontAwesome.otf
Binary file not shown.
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions mytheme/FontAwesome/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
79 changes: 79 additions & 0 deletions mytheme/ayu-highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*
Based off of the Ayu theme
Original by Dempfi (https://github.com/dempfi/ayu)
*/

.hljs {
display: block;
overflow-x: auto;
background: #191f26;
color: #e6e1cf;
padding: 0.5em;
}

.hljs-comment,
.hljs-quote {
color: #5c6773;
font-style: italic;
}

.hljs-variable,
.hljs-template-variable,
.hljs-attribute,
.hljs-attr,
.hljs-regexp,
.hljs-link,
.hljs-selector-id,
.hljs-selector-class {
color: #ff7733;
}

.hljs-number,
.hljs-meta,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
color: #ffee99;
}

.hljs-string,
.hljs-bullet {
color: #b8cc52;
}

.hljs-title,
.hljs-built_in,
.hljs-section {
color: #ffb454;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-symbol {
color: #ff7733;
}

.hljs-name {
color: #36a3d9;
}

.hljs-tag {
color: #00568d;
}

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

.hljs-addition {
color: #91b362;
}

.hljs-deletion {
color: #d96c75;
}
Loading

0 comments on commit 81cc6ad

Please sign in to comment.