forked from cooplab/popgen-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuilding_html
More file actions
23 lines (14 loc) · 707 Bytes
/
Copy pathbuilding_html
File metadata and controls
23 lines (14 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Notes on Building the Site
You need latexmk and pandoc. Then use:
$ make clean site
`.eps` images will not work — be sure to convert all `.eps` files to `.png` and
use the `.png` versions in LaTeX files.
$ find . -name '*.eps' -type f | xargs -n1 -I{} basename {} .eps | xargs -n1 -I{} convert {}.eps {}.png
Then to deploy, use:
$ make deploy
This pushes `html/` with `git subtree`, e.g. like
$ git subtree push --prefix html upstream gh-pages
For reference, [this](https://github.com/X1011/git-directory-deploy)
`deploy.sh` is used to deploy to the `gh-pages` branch. I've modified this
version accordingly (e.g. works with BSD `ls`, by using `-A` instead of
`--almost-all`)