以rust为例分享学习编程常考虑的方方面面
cargo install mdbook
mdbook serve
git lfs install
git lfs track '*.img'
{{#check | }}
- 每个文件夹下的同名md文件介绍当前文件夹的内容
- 关于待完成内容:主要基于mdbook-checklist插件
- [待完成](checklist.md)
- 添加待完成锚点的格式
check空格之后的内容不能有空格, 且只能为英文 " | "之后的内容可以有空格,可以为中文
{{#check Note-1 | This is an important note}}
- checklist页面渲染效果:
- <SUMMARY对应标题名>
- [This is an important note](Note-1)
这种写法会自动在本地生成md文件:src/checklist.md, 但是不用管它,最后渲染还是以mdbook-checklist的内容为准
ANSSI-FR/mdbook-checklist: mdbook preprocessor for generating checklists and indexes
cargo install mdbook-checklist
mdbook-checklist - crates.io: Rust Package Registry
JorelAli/mdBook-pagetoc: A page table of contents for mdBook
- tommilligan/mdbook-admonish: A preprocessor for mdbook to add Material Design admonishments.
- mdbook-admonish - crates.io: Rust Package Registry
- Overview - The mdbook-admonish book
- Admonitions - Material for MkDocs
All supported directives are listed below.
The following steps can lead to irrecoverable data corruption.
This syntax won't work in Python 3:
```python
print "Hello, world!"
```
Styled with my custom CSS class.
Content will be hidden initially.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
- rust-cargo-install · Actions · GitHub Marketplace
- ekalinin/github-markdown-toc: Easy TOC creation for GitHub README.md
> [Access Token | Code Cookbook](https://michaelcurrin.github.io/code-cookbook/recipes/ci-cd/github-actions/tokens/access-token.html)
1. 设置token:[Personal access tokens](https://github.com/settings/tokens)
2. 给指定repository设置secret:repository -> settings -> secrets -> Actions
3. 新建一个名为**GH_MD_TOC**的repository secret,将第一步的token设置进去
4. 将这个secret设置为action环境变量