Coder Social home page Coder Social logo

kuanhsiaokuo / programming_anatomy_in_rust Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 34.29 MB

以rust为例分享学习编程常考虑的方方面面

Home Page: https://kuanhsiaokuo.github.io/programming_anatomy_in_rust

License: MIT License

JavaScript 2.78% CSS 2.43% Rust 90.75% Handlebars 1.09% Shell 1.57% C 0.13% C++ 0.04% Makefile 0.02% Python 0.95% Nix 0.07% HTML 0.13% Ruby 0.04%
rust rust-book

programming_anatomy_in_rust's Introduction

编程解剖 in rust

以rust为例分享学习编程常考虑的方方面面

本地运行

cargo install mdbook
mdbook serve

git lfs配置

git lfs install 
git lfs track '*.img'

项目基础结构

{{#check | }}

  1. 每个文件夹下的同名md文件介绍当前文件夹的内容
  2. 关于待完成内容:主要基于mdbook-checklist插件
    - [待完成](checklist.md) 
  1. 添加待完成锚点的格式

check空格之后的内容不能有空格, 且只能为英文 " | "之后的内容可以有空格,可以为中文

{{#check Note-1 | This is an important note}}
  • checklist页面渲染效果:
- <SUMMARY对应标题名>
    - [This is an important note](Note-1)

这种写法会自动在本地生成md文件:src/checklist.md, 但是不用管它,最后渲染还是以mdbook-checklist的内容为准

用到的工具

来自:Mdbook - Apple Power User

mdbook-checklist: 整理待办事项

ANSSI-FR/mdbook-checklist: mdbook preprocessor for generating checklists and indexes

cargo install mdbook-checklist

mdbook-checklist - crates.io: Rust Package Registry

mdbook-pagetoc: 添加业内目录

JorelAli/mdBook-pagetoc: A page table of contents for mdBook

mdbook-admonish: 使用新的css文件

相关资源

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.

常用格式

note
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
abstract, summary, tldr
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
info, todo
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
tip, hint, important
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
success, check, done
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
question, help, faq
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
warning, caution, attention
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
failure, fail, missing
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
danger, error
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
bug
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
example
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.
quote, cite
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.

github action

> [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环境变量

programming_anatomy_in_rust's People

Contributors

kuanhsiaokuo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kkthmyh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.