-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format markdown (use prettier), and do some fixes
Showing
162 changed files
with
996 additions
and
1,141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
+ 2016-03-20 | ||
* 所有章节翻译完成 | ||
+ 2016-03-03 | ||
* 目录翻译和结构建立 | ||
|
||
- 2016-03-20 | ||
- 所有章节翻译完成 | ||
- 2016-03-03 | ||
- 目录翻译和结构建立 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Copyright (c) 2016-2023 The Slackware Linux CN Community (https://github.com/slackwarecn/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
# ============================================================================== | ||
# make all/pdf/epub/mobi/clean | ||
# make <all|html|pdf|epub|mobi> | ||
# ============================================================================== | ||
GITBOOK = gitbook | ||
RM = rm | ||
|
||
TARGET = slackbook_cn | ||
FORMATS = pdf epub mobi | ||
|
||
.PHONY: all clean html $(FORMATS) | ||
.PHONY: all clean html format $(FORMATS) | ||
|
||
all: html $(FORMATS) | ||
|
||
html: | ||
$(GITBOOK) build . $(TARGET)_html | ||
gitbook build . $(TARGET)_html | ||
|
||
$(FORMATS): | ||
$(GITBOOK) $@ . $(TARGET).$@ | ||
gitbook $@ . $(TARGET).$@ | ||
|
||
clean: | ||
-$(RM) -f $(addprefix $(TARGET)., $(FORMATS)) | ||
-$(RM) -rf $(TARGET)_html | ||
format: | ||
@prettier -wu $(shell find * -type f -name '*.md') | ||
|
||
clean: | ||
rm -rf $(TARGET)_html $(addprefix $(TARGET)., $(FORMATS)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
## Slackware中文手册 | ||
## Slackware 中文手册 | ||
|
||
### 关于本书 | ||
|
||
本书是[Slackbook][ID_SLACKBOOK]的中文版,项目托管于[Github][ID_GITHUB]。 | ||
本书是[Slackbook][id_slackbook]的中文版,项目托管于[Github][id_github]。 | ||
|
||
### 修订历史 | ||
|
||
你可以在[这里][ID_CHANGES]查看该文档的修订历史。 | ||
你可以在[这里][id_changes]查看该文档的修订历史。 | ||
|
||
### 获取文档 | ||
|
||
+ [在线阅读][ID_ONLINE] | ||
+ [发布页面][ID_RELEASES] | ||
- [在线阅读][id_online] | ||
- [发布页面][id_releases] | ||
|
||
### 本地编译 | ||
|
||
确保你的系统中有`xdg-utils`、`wget`、`xz-utils`和`python2.6+`以安装[Calibre][ID_CALIBRE]。[GitBook][ID_GITBOOK]需要此软件进行PDF、EPUB和MOBI的格式转换。 | ||
[GitBook][id_gitbook]需要[Calibre][id_calibre]以输出 PDF、EPUB 和 MOBI 格式。安装此软件前,确保你的 Slackware Linux 中已安装`python3`、`wget`、`xdg-utils`和`xz`软件包。 | ||
|
||
``` | ||
$ sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin | ||
$ sudo npm install -g @0y0/gitbook-cli | ||
$ git clone https://github.com/slackwarecn/slackbook_cn | ||
$ cd slackbook_cn | ||
$ make all | ||
```shell | ||
curl -fsSL https://download.calibre-ebook.com/linux-installer.sh | sudo -E bash -s | ||
sudo npm install -g @0y0/gitbook-cli | ||
git clone https://github.com/slackwarecn/slackbook_cn.git | ||
cd ./slackbook_cn/ | ||
make all | ||
``` | ||
|
||
> 因为GitBook官方已经[不再支持CLI][ID_GITBOOK_DEPRECATION],所以这里使用了非官方维护的版本。 | ||
> 因为 GitBook 官方已经[不再支持 CLI][id_gitbook_deprecation],所以这里使用了非官方维护的版本。 | ||
### 贡献力量 | ||
|
||
如果你想为项目贡献你的力量,请务必事先阅读[CONTRIBUTING.md](CONTRIBUTING.md)。 | ||
|
||
[ID_GITHUB]: https://github.com/slackwarecn/slackbook_cn "访问项目主页" | ||
[ID_SLACKBOOK]: http://slackbook.org "访问The Revised Slackware Book Project主页" | ||
[ID_CHANGES]: https://github.com/slackwarecn/slackbook_cn/blob/master/CHANGES.md "查看修订历史" | ||
[ID_ONLINE]: https://slackwarecn.gitbook.io/slackbook_cn "阅读在线版本" | ||
[ID_RELEASES]: https://github.com/slackwarecn/slackbook_cn/releases "查看已发布文档" | ||
[ID_GITBOOK]: https://github.com/GitbookIO/gitbook "Gitbook项目主页" | ||
[ID_GITBOOK_DEPRECATION]: https://github.com/GitbookIO/gitbook#%EF%B8%8F-deprecation-warning "查看GitBook官方不再支持CLI公告" | ||
[ID_CALIBRE]: https://github.com/kovidgoyal/calibre/releases "点此获取Calibre" | ||
[id_github]: https://github.com/slackwarecn/slackbook_cn "访问项目主页" | ||
[id_slackbook]: http://slackbook.org "访问The Revised Slackware Book Project主页" | ||
[id_changes]: https://github.com/slackwarecn/slackbook_cn/blob/master/CHANGES.md "查看修订历史" | ||
[id_online]: https://slackwarecn.gitbook.io/slackbook_cn "阅读在线版本" | ||
[id_releases]: https://github.com/slackwarecn/slackbook_cn/releases "查看已发布文档" | ||
[id_gitbook]: https://github.com/GitbookIO/gitbook "Gitbook项目主页" | ||
[id_gitbook_deprecation]: https://github.com/GitbookIO/gitbook#%EF%B8%8F-deprecation-warning "查看GitBook官方不再支持CLI公告" | ||
[id_calibre]: https://github.com/kovidgoyal/calibre/releases "点此获取Calibre" | ||
|
||
### 版权 | ||
|
||
Copyright (c) 2016-2023 The Slackware Linux CN Community (https://github.com/slackwarecn/) |
Oops, something went wrong.