Skip to content

Commit afe0228

Browse files
committed
first commit
1 parent cc57c05 commit afe0228

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+6456
-7
lines changed

.github/workflows/main.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
name: Build, Test and Deploy
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions-rs/toolchain@v1
16+
with:
17+
toolchain: stable
18+
- name: Install mdbook
19+
run: |
20+
mkdir bin
21+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
22+
echo "$(pwd)/bin" >> $GITHUB_PATH
23+
- run: mdbook build && mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook
24+
- uses: JamesIves/[email protected]
25+
with:
26+
branch: gh-pages # The branch the action should deploy to.
27+
folder: book # The folder the action should deploy.

.gitignore

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Generated by Cargo
2-
# will have compiled files and executables
3-
/target/
1+
book
2+
.DS_Store
3+
debug/
4+
target/
45

56
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
67
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
78
Cargo.lock
89

9-
# These are backup files generated by rustfmt
10-
**/*.rs.bk
10+
.idea/*

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
# rust_magazine_2022
2-
Rust 杂志 2022
1+
# Rust Magazine 2022
32

43
![2022](https://user-images.githubusercontent.com/27893/150057562-c5db14c6-1742-43b9-add8-2dbe37c8fb7d.png)
4+
5+
6+
## 说明
7+
8+
Rust Magazine 中文精选 2021 坚持了一年,虽然受到社区广大朋友欢迎,但投稿数量不是很理想,所以本来在 2022 年不打算继续维护。然而,一些朋友私聊我说,Rust Magazine 内容不错,值得继续搞,我接受这这个建议,但是从之前的月刊,改为季刊!
9+
10+
同时,也欢迎大家投稿!
11+
12+
13+

book.toml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[book]
2+
authors = ["blackanger"]
3+
description = "The roots aren't deep but the seeds are planted!"
4+
language = "en"
5+
multilingual = false
6+
src = "src"
7+
title = "Rust Magazine 2022"
8+
9+
10+
11+
[preprocessor.mermaid]
12+
command = "mdbook-mermaid"
13+
14+
15+
[output.html]
16+
theme = "mytheme"
17+
default-theme = "rust"
18+
git-repository-url = "https://github.com/RustMagazine/rust_magazine_2022"
19+
additional-js = ["mermaid.min.js", "mermaid-init.js", "smart-anchor.js"]
20+
mathjax-support = true
21+
22+
23+
[output.html.playground]
24+
editable = true
25+
copy-js = true
26+
27+
[output.html.fold]
28+
enable = true
29+
level = 0

mermaid-init.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mermaid.initialize({startOnLoad:true});

mermaid.min.js

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mytheme/FontAwesome/css/font-awesome.min.css

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
132 KB
Binary file not shown.
Binary file not shown.

mytheme/FontAwesome/fonts/fontawesome-webfont.svg

+2,671
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

mytheme/ayu-highlight.css

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*
2+
Based off of the Ayu theme
3+
Original by Dempfi (https://github.com/dempfi/ayu)
4+
*/
5+
6+
.hljs {
7+
display: block;
8+
overflow-x: auto;
9+
background: #191f26;
10+
color: #e6e1cf;
11+
padding: 0.5em;
12+
}
13+
14+
.hljs-comment,
15+
.hljs-quote {
16+
color: #5c6773;
17+
font-style: italic;
18+
}
19+
20+
.hljs-variable,
21+
.hljs-template-variable,
22+
.hljs-attribute,
23+
.hljs-attr,
24+
.hljs-regexp,
25+
.hljs-link,
26+
.hljs-selector-id,
27+
.hljs-selector-class {
28+
color: #ff7733;
29+
}
30+
31+
.hljs-number,
32+
.hljs-meta,
33+
.hljs-builtin-name,
34+
.hljs-literal,
35+
.hljs-type,
36+
.hljs-params {
37+
color: #ffee99;
38+
}
39+
40+
.hljs-string,
41+
.hljs-bullet {
42+
color: #b8cc52;
43+
}
44+
45+
.hljs-title,
46+
.hljs-built_in,
47+
.hljs-section {
48+
color: #ffb454;
49+
}
50+
51+
.hljs-keyword,
52+
.hljs-selector-tag,
53+
.hljs-symbol {
54+
color: #ff7733;
55+
}
56+
57+
.hljs-name {
58+
color: #36a3d9;
59+
}
60+
61+
.hljs-tag {
62+
color: #00568d;
63+
}
64+
65+
.hljs-emphasis {
66+
font-style: italic;
67+
}
68+
69+
.hljs-strong {
70+
font-weight: bold;
71+
}
72+
73+
.hljs-addition {
74+
color: #91b362;
75+
}
76+
77+
.hljs-deletion {
78+
color: #d96c75;
79+
}

0 commit comments

Comments
 (0)