1
1
mirror of https://github.com/foxsen/archbase.git synced 2026-02-11 22:26:00 +08:00

Add pdf/doc generate in the workflow

Initial try.
This commit is contained in:
Zhang Fuxin
2021-10-31 11:36:58 +08:00
parent 00dfafd62a
commit e83f206b5d
3 changed files with 13 additions and 2 deletions

View File

@@ -22,8 +22,9 @@ jobs:
cache-version: 1
- name: Install Noto CJK fonts
run: sudo apt-get install -y fonts-noto-cjk
- uses: foxsen/actions/setup-tinytex-new@tinytex-v2
- name: Render Book
run: make
run: make -j8
- uses: actions/upload-artifact@v1
with:
name: _book

7
50-resources.Rmd Normal file
View File

@@ -0,0 +1,7 @@
# 相关资源 {-}
## 自动生成的各种格式
* [HTML](https://foxsen.github.io/). 在线HTML版本。
* [PDF](https://foxsen.github.io/bookdown.pdf). PDF版下载链接。
* [DOCX](https://foxsen.github.io/bookdown.docx). Word版下载链接其中目录部分需要手工选择下“更新域”才能显示。

View File

@@ -1,4 +1,7 @@
all:
all: html pdf doc
echo "done"
html:
Rscript -e 'bookdown::render_book()'
pdf: