- Make a GitHub account
- Get added as a collaborator to this repository
- Make a ShareLaTeX account
- On ShareLaTeX, click "New Project" then "Import from GitHub"
- Link GitHub account to ShareLaTeX account
- Click this repository to import its contents
- Make changes
- Click "Menu" on top left, then under "Sync" click "GitHub"
- Click "Push ShareLaTeX changes to GitHub"
- Website PDF will be automatically updated
- Open the ShareLaTeX project corresponding to this GitHub repository
- Click "Menu" on top left, then under "Sync" click "GitHub"
- If there are changes in the repository, click "Pull GitHub changes to ShareLaTeX"
- Make changes
- Open the GitHub sync box again, and click "Push ShareLaTeX changes to GitHub"
- Website PDF will be automatically updated
Here's what I did to create this repository.
- Make a GitHub account and create this repository
- Login to Travis CI with GitHub account and enable builds on this repository
- Install the Travis CI command line tool here
- Follow these instructions. Essentially:
-
Create an SSH key, replace
<repo>
with name of repositoryssh-keygen -t rsa -b 4096 -C '<repo>@travis-ci.org' -f ./deploy_rsa
-
Add the public SSH key to your Pantheon user's SSH keys
-
Use
travis encrypt
to add the key to the .travis.yml filetravis encrypt-file deploy_rsa --add
-
Delete the key since we don't need it anymore
rm -f deploy_rsa deploy_rsa.pub
-
- Commented code to installing LaTeX and build the PDFs are in
.travis.yml
andcreate.py