mirror of
https://github.com/gnu4cn/ccna60d.git
synced 2024-05-21 04:55:00 +08:00
Refactored.
This commit is contained in:
parent
0cb8768492
commit
31cba71a9e
48
README.md
48
README.md
@ -9,7 +9,9 @@
|
||||
- Gitlab: [gitlab.com/unisko/ccna60d](https://gitlab.com/unisko/ccna60d/)
|
||||
|
||||
|
||||
- [ccna60d.xfoss.com](https://ccna60d.xfoss.com/)
|
||||
在线阅读:[ccna60d.xfoss.com](https://ccna60d.xfoss.com/)
|
||||
|
||||
本地阅读:[`mdbook` 本地运行](./src/howto_read_locally.md)
|
||||
|
||||
|
||||
___
|
||||
@ -56,50 +58,6 @@ _2017-07-14_
|
||||
* 完成第36天--EIGRP 章节的修订,EIGRP已无问题
|
||||
|
||||
|
||||
|
||||
|
||||
## 在本地阅读
|
||||
|
||||
在本地阅读本书,需要安装 `mdbook` 程序。根据操作系统的不同,安装 `mdbook` 程序有所不同。
|
||||
|
||||
|
||||
### 在 Linux 系统上
|
||||
|
||||
```console
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
cargo install mdbook
|
||||
```
|
||||
|
||||
### 在 Windows 上
|
||||
|
||||
在 “Powershell(管理员)”("Administrator: Windows Powershell") 中,先安装 `choco`
|
||||
|
||||
```powershell
|
||||
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||
```
|
||||
|
||||
经由 `choco` 安装 `msys2`
|
||||
|
||||
```powershell
|
||||
choco install -y msys2
|
||||
```
|
||||
|
||||
在 `msys2` 中安装 `mdbook`
|
||||
|
||||
```console
|
||||
pacman -S mingw-w64-x86_64-mdbook
|
||||
```
|
||||
|
||||
安装好 `mdbook` 后, 带一些命令行参数和开关运行服务器:
|
||||
|
||||
```console
|
||||
mdbook serve ~/rust-lang-zh_CN -p 8080 -n 127.0.0.1 --open
|
||||
```
|
||||
|
||||
> 注:当在 Windows 系统上时,咱们要在 `msys2` 的终端窗口中运行此命令。
|
||||
|
||||
此时,将在操作系统的默认浏览器中,打开本书。
|
||||
|
||||
___
|
||||
|
||||
**推荐模拟器**
|
||||
|
@ -9,7 +9,9 @@
|
||||
- Gitlab: [gitlab.com/unisko/ccna60d](https://gitlab.com/unisko/ccna60d/)
|
||||
|
||||
|
||||
- [ccna60d.xfoss.com](https://ccna60d.xfoss.com/)
|
||||
在线阅读:[ccna60d.xfoss.com](https://ccna60d.xfoss.com/)
|
||||
|
||||
本地阅读:[`mdbook` 本地运行](./howto_read_locally.md)
|
||||
|
||||
|
||||
___
|
||||
@ -58,51 +60,6 @@ _2017-07-14_
|
||||
|
||||
* 完成第36天--EIGRP 章节的修订,EIGRP已无问题
|
||||
|
||||
|
||||
|
||||
|
||||
## 在本地阅读
|
||||
|
||||
在本地阅读本书,需要安装 `mdbook` 程序。根据操作系统的不同,安装 `mdbook` 程序有所不同。
|
||||
|
||||
|
||||
### 在 Linux 系统上
|
||||
|
||||
```console
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
cargo install mdbook
|
||||
```
|
||||
|
||||
### 在 Windows 上
|
||||
|
||||
在 “Powershell(管理员)”("Administrator: Windows Powershell") 中,先安装 `choco`
|
||||
|
||||
```powershell
|
||||
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||
```
|
||||
|
||||
经由 `choco` 安装 `msys2`
|
||||
|
||||
```powershell
|
||||
choco install -y msys2
|
||||
```
|
||||
|
||||
在 `msys2` 中安装 `mdbook`
|
||||
|
||||
```console
|
||||
pacman -S mingw-w64-x86_64-mdbook
|
||||
```
|
||||
|
||||
安装好 `mdbook` 后, 带一些命令行参数和开关运行服务器:
|
||||
|
||||
```console
|
||||
mdbook serve ~/rust-lang-zh_CN -p 8080 -n 127.0.0.1 --open
|
||||
```
|
||||
|
||||
> 注:当在 Windows 系统上时,咱们要在 `msys2` 的终端窗口中运行此命令。
|
||||
|
||||
此时,将在操作系统的默认浏览器中,打开本书。
|
||||
|
||||
___
|
||||
|
||||
**推荐模拟器**
|
||||
|
41
src/howto_read_locally.md
Normal file
41
src/howto_read_locally.md
Normal file
@ -0,0 +1,41 @@
|
||||
## 在本地阅读
|
||||
|
||||
在本地阅读本书,需要安装 `mdbook` 程序。根据操作系统的不同,安装 `mdbook` 程序有所不同。
|
||||
|
||||
|
||||
### 在 Linux 系统上
|
||||
|
||||
```console
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
cargo install mdbook
|
||||
```
|
||||
|
||||
### 在 Windows 上
|
||||
|
||||
在 “Powershell(管理员)”("Administrator: Windows Powershell") 中,先安装 `choco`
|
||||
|
||||
```powershell
|
||||
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||
```
|
||||
|
||||
经由 `choco` 安装 `msys2`
|
||||
|
||||
```powershell
|
||||
choco install -y msys2
|
||||
```
|
||||
|
||||
在 `msys2` 中安装 `mdbook`
|
||||
|
||||
```console
|
||||
pacman -S mingw-w64-x86_64-mdbook
|
||||
```
|
||||
|
||||
安装好 `mdbook` 后, 带一些命令行参数和开关运行服务器:
|
||||
|
||||
```console
|
||||
mdbook serve ~/rust-lang-zh_CN -p 8080 -n 127.0.0.1 --open
|
||||
```
|
||||
|
||||
> 注:当在 Windows 系统上时,咱们要在 `msys2` 的终端窗口中运行此命令。
|
||||
|
||||
此时,将在操作系统的默认浏览器中,打开本书。
|
Loading…
Reference in New Issue
Block a user