From e76fcf1d0729f5ba85f93863ba5464fa78670493 Mon Sep 17 00:00:00 2001 From: Cheng Lai Date: Mon, 21 Mar 2022 20:59:08 +0800 Subject: [PATCH] Remove PDF build(#163) * Update PDF link * Update path * Remove PDF links --- README.md | 2 +- config.ini | 1 - info/info.md | 49 ------------------------------------------------- 3 files changed, 1 insertion(+), 51 deletions(-) diff --git a/README.md b/README.md index 8f14d07..02e5f2f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 本开源项目试图给读者讲解现代机器学习系统的设计原理和实现经验。 -[机器学习系统:设计和实现](https://openmlsys.github.io/) | [PDF](https://git.openi.org.cn/attachments/f3b71767-584c-4258-9745-3d309c356c76?type=0) +[机器学习系统:设计和实现](https://openmlsys.github.io/) | [PDF将在勘误后,四月底发布] ## 发布 diff --git a/config.ini b/config.ini index 32d69e0..cdab45a 100644 --- a/config.ini +++ b/config.ini @@ -74,7 +74,6 @@ sphinx_configs = numfig_format = {'figure': '图%%s', 'table': '表%%s', 'code-b # items: name, URL, and a fontawesome icon # (https://fontawesome.com/icons?d=gallery). Items are separated by commas. header_links = GitHub, https://github.com/openmlsys/openmlsys-zh, fab fa-github, - PDF, https://git.openi.org.cn/attachments/f3b71767-584c-4258-9745-3d309c356c76?type=0, fas fa-file-pdf, favicon = static/favicon.png diff --git a/info/info.md b/info/info.md index 643e567..0ae7ade 100644 --- a/info/info.md +++ b/info/info.md @@ -26,55 +26,6 @@ d2lbook build html 需要注意的是docs目录下的.nojekyll不要删除了,不然网页会没有渲染。 -## 编译PDF版本 - -编译pdf版本需要xelatex、librsvg2-bin(svg图片转pdf)和思源字体。在Ubuntu可以这样安装。 - -``` -sudo apt-get install texlive-full -sudo apt-get install librsvg2-bin -``` - -``` -wget https://github.com/adobe-fonts/source-han-sans/raw/release/OTF/SourceHanSansSC.zip -wget https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SourceHanSerifSC_SB-H.zip -wget https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SourceHanSerifSC_EL-M.zip - -unzip SourceHanSansSC.zip -unzip SourceHanSerifSC_EL-M.zip -unzip SourceHanSerifSC_SB-H.zip - -sudo mv SourceHanSansSC SourceHanSerifSC_EL-M SourceHanSerifSC_SB-H /usr/share/fonts/opentype/ -sudo fc-cache -f -v -``` - - -这时候可以通过 `fc-list :lang=zh` 来查看安装的中文字体。 - -同样的去下载和安装英文字体 - -``` -wget -O source-serif-pro.zip https://www.fontsquirrel.com/fonts/download/source-serif-pro -unzip source-serif-pro -d source-serif-pro -sudo mv source-serif-pro /usr/share/fonts/opentype/ - -wget -O source-sans-pro.zip https://www.fontsquirrel.com/fonts/download/source-sans-pro -unzip source-sans-pro -d source-sans-pro -sudo mv source-sans-pro /usr/share/fonts/opentype/ - -wget -O source-code-pro.zip https://www.fontsquirrel.com/fonts/download/source-code-pro -unzip source-code-pro -d source-code-pro -sudo mv source-code-pro /usr/share/fonts/opentype/ - -sudo fc-cache -f -v -``` - -然后就可以编译了。 - -``` -d2lbook build pdf -``` - ## 样式规范 贡献请遵照本教程的[样式规范](style.md)。