gopl-zh.github.com/README.md

47 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Go語言聖經中文版
Go語言聖經 [《The Go Programming Language》](http://gopl.io) 中文版本,僅供學習交流之用。
- 項目主頁http://github.com/golang-china/gopl-zh
- 項目進度http://github.com/golang-china/gopl-zh/blob/master/progress.md
- 參與人員http://github.com/golang-china/gopl-zh/blob/master/CONTRIBUTORS.md
- 離線版本http://github.com/golang-china/gopl-zh/archive/gh-pages.zip
- 在線預覽http://golang-china.github.io/gopl-zh
- 原版官網http://gopl.io
[![](cover_small.jpg)](https://github.com/golang-china/gopl-zh)
### 從源文件構建
先安裝NodeJS和GitBook命令行工具(`npm install gitbook-cli -g`命令)。
1. 下載 https://github.com/golang-china/gopl-zh/archive/master.zip ,獲取源文件。
2. 切換到 `gopl-zh` 目録,運行 `gitbook install`安裝GitBook插件。
3. 運行`gitbook build`,生成`_book`目録。
4. 打開`_book/index.html`文件。
### 簡體/繁體轉換
切片到 `gopl-zh` 目録:
- `make zh2tw``go run zh2tw.go . "\.md$" zh2tw`,轉繁體。
- `make tw2zh``go run zh2tw.go . "\.md$" tw2zh`,轉簡體。
如果是使用簡體中文的用戶,可在執行上述命令前運行`make tw2zh`命令,將繁體中文轉換爲簡體中文。
### Markdown 格式預覽
- [SUMMARY-github.md](SUMMARY-github.md)
# 版權聲明
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="./images/by-nc-sa-4.0-88x31.png"></img></a>
嚴禁任何商業行爲使用或引用該文檔的全部或部分內容!
歡迎大家提供建議!