-
Notifications
You must be signed in to change notification settings - Fork 50
/
Makefile
54 lines (40 loc) · 1.55 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
pdfbook:
sed -i 's/gh-pages/pdf/g' _bookdown.yml;\
sed -i 's/colorlinks: true/colorlinks: false/g' index.Rmd;\
# Rscript -e 'library(bookdown); render_book("index.Rmd", pdf_book(keep_tex=TRUE))'
Rscript -e 'library(bookdown); render_book("index.Rmd", "pdf_book")'
bs4:
rm -rf gh-pages/libs;\
sed -i 's/pdf/gh-pages/g' _bookdown.yml;\
sed -i 's/colorlinks: false/colorlinks: true/g' index.Rmd;\
Rscript -e 'library(bookdown); render_book("index.Rmd", "bs4_book")';\
sed -i 's/Chalkduster/Comic Sans MS/g' gh-pages/related-tools.html
gitbook:
rm -rf gh-pages/libs;\
Rscript -e 'library(bookdown); render_book("index.Rmd", "gitbook")';\
sed -i 's/Chalkduster/Comic Sans MS/g' gh-pages/related-tools.html
##pdf:
## pagedjs-cli ./gh-pages/index.html -o treedata-book.pdf
latex:
Rscript -e 'rmarkdown::pandoc_convert("treedata.knit.md", to = "latex", output = "treedata.tex", options = "--standalone")'
epub:
Rscript -e 'library(bookdown); render_book("index.Rmd", "epub_book")'
word:
Rscript -e 'library(bookdown); render_book("index.Rmd", "word_document2")';\
mv gh-pages/treedata.docx ./treedata.docx
softwareinfo:
Rscript -e 'rmarkdown::render("software-info.Rmd", rmarkdown::md_document(variant="gfm"))';\
sed -i 's/─//g' software-info.md;\
sed -i 's/✔//g' software-info.md
clean:
Rscript -e 'bookdown::clean_book()';\
rm -rf _bookdown_files
cover:
Rscript -e 'source("book-cover.R")'
largeImg:
ls -lhS gh-pages/treedata_files/figure-html | head
publish:
cd gh-pages;\
git add .;\
git commit -m 'update';\
git push -u origin gh-pages