Files
openmlsys-zh/info/info.md
Cheng Lai e76fcf1d07 Remove PDF build(#163)
* Update PDF link

* Update path

* Remove PDF links
2022-03-21 20:59:08 +08:00

36 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 环境安装
机器学习系统书籍部署在Github是依赖于d2lbook工具实现的。因此我们首先要安装d2lbook。
```bash
git clone git@github.com:d2l-ai/d2l-book.git
cd d2l-book
python setup.py install
```
使用d2lbook构建HTML需要安装`pandoc`, 可以使用`apt-get install pandoc`如果是MacOS可以用Homebrew和。
构建PDF时如果有SVG图片需要安装LibRsvg来转换SVG图片安装`librsvg`可以通过`apt-get install librsvg`如果是MacOS可以用Homebrew
当然构建PDF必须要有LaTeX如安装[Tex Live](https://www.tug.org/texlive/).
## 编译HTML版本
在编译前先下载[openmlsys-zh](https://github.com/openmlsys/openmlsys-zh) 所有的编译命令都在改文件目录内执行。
```bash
git clone git@github.com:openmlsys/openmlsys-zh.git
cd openmlsys-zh
```
使用d2lbook工具编译HTML。
```
d2lbook build html
```
生成的html会在`_build/html`
此时我们将编译好的html整个文件夹下的内容拷贝至openmlsys.github.io的docs发布。
需要注意的是docs目录下的.nojekyll不要删除了不然网页会没有渲染。
## 样式规范
贡献请遵照本教程的[样式规范](style.md)。
## 中英文术语对照
翻译请参照[中英文术语对照](terminology.md)。