ysshah / LabDocsShareLaTeX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Physics 111B LaTeX Lab Writeups

Usage instructions

First-time setup

  1. Make a GitHub account
  2. Get added as a collaborator to this repository
  3. Make a ShareLaTeX account
  4. On ShareLaTeX, click "New Project" then "Import from GitHub"
  5. Link GitHub account to ShareLaTeX account
  6. Click this repository to import its contents
  7. Make changes
  8. Click "Menu" on top left, then under "Sync" click "GitHub"
  9. Click "Push ShareLaTeX changes to GitHub"
  10. Website PDF will be automatically updated

General process

  1. Open the ShareLaTeX project corresponding to this GitHub repository
  2. Click "Menu" on top left, then under "Sync" click "GitHub"
  3. If there are changes in the repository, click "Pull GitHub changes to ShareLaTeX"
  4. Make changes
  5. Open the GitHub sync box again, and click "Push ShareLaTeX changes to GitHub"
  6. Website PDF will be automatically updated

Steps to Replicate this Repository

Here's what I did to create this repository.

  1. Make a GitHub account and create this repository
  2. Login to Travis CI with GitHub account and enable builds on this repository
  3. Install the Travis CI command line tool here
  4. Follow these instructions. Essentially:
    1. Create an SSH key, replace <repo> with name of repository

      ssh-keygen -t rsa -b 4096 -C '<repo>@travis-ci.org' -f ./deploy_rsa
    2. Add the public SSH key to your Pantheon user's SSH keys

    3. Use travis encrypt to add the key to the .travis.yml file

      travis encrypt-file deploy_rsa --add
      
    4. Delete the key since we don't need it anymore

      rm -f deploy_rsa deploy_rsa.pub
      
  5. Commented code to installing LaTeX and build the PDFs are in .travis.yml and create.py

About


Languages

Language:TeX 97.0%Language:Python 3.0%