...
 
Commits (2)
    https://gitcode.net/rcore-os/rCore-Tutorial-Book-v3/-/commit/7ebc3f85999a50be19b28b45da9d988435c11324 Update conf.py to support building epub 2023-05-02T20:07:41-07:00 Yifan Wu shinbokuow@163.com https://gitcode.net/rcore-os/rCore-Tutorial-Book-v3/-/commit/0f74d5671d43458e0e1f8bf061a01d0e703e99b3 Update epub build guide 2023-05-03T11:49:05+08:00 Yifan Wu shinbokuow@163.com
......@@ -126,3 +126,9 @@ class RVLexer(RegexLexer):
}
lexers['riscv'] = RVLexer()
# epub build config
import errno
import sphinx.util.osutil
sphinx.util.osutil.ENOENT = errno.ENOENT
version = release
\ No newline at end of file
......@@ -30,3 +30,10 @@
4. 打上必要的补丁:在根目录下执行 ``git apply --reject scripts/latexpdf.patch`` 。
5. 构建:在根目录下执行 ``make latexpdf`` ,过程中会有很多 latex 的警告,但可以忽略。
6. 构建结束后,电子版 pdf 可以在 ``build/latex/rcore-tutorial-book-v3.pdf`` 找到。
.. note::
**如何生成epub格式**
1. 配置好 Sphinx Python 环境。
2. ``make epub`` 构建 epub 格式输出,产物可以在 ``build/epub/rCore-Tutorial-Book-v3.epub`` 中找到。
\ No newline at end of file