Creating Github site and hosting annotations
This application allows for the site to be hosted on GitHub pages. Unfortunately new annotations can not be created using GitHub pages without deploying the flask application to a remote server. There are instructions on how to do this with Heroku here.
New annotations can still be created and shared by using the Vagrant instance to create annotations on the local machine and pushing the changes to GitHub. This section give instructions on how to create a GitHub pages site. The options are forking or cloning. Choose one. There are multiple options to cater to comfort level. All git
commands are done in the command line.
- Here is a quick tutorial https://swcarpentry.github.io/git-novice/
- Extremely helpful cheat sheet https://github.github.com/training-kit/downloads/github-git-cheat-sheet.pdf
Forking or templating - Best if you haven’t created anything locally that you want to save
- Login into Github account.
- Navigate to https://github.com/dnoneill/annotate
- Click the
Fork
button to keep the repository nameannotate
- Click the
Use this template
button (should be green) to rename the repository something other thanannotate
. If you preform this step make sure to follow the steps for renaming the repo before proceeding.
- Click the
- After forking the site, go to the Settings tab.
- Scroll down to the GitHub Pages section
- In the Source dropdown select “master branch”
- Click “Save”
- Follow the directions in Running Locally section
Cloning - Best if you have created annotations locally that you want to save.
- Clone site
git clone https://github.com/dnoneill/annotate.git
- Create new repository on GitHub
- This can be done by logging into GitHub account and pressing
New
button
- This can be done by logging into GitHub account and pressing
- Remove origin
git remote rm origin
- Point to new origin
git remote add origin https://github.com/<username>/<reponame>.git
- Push to repo
git push -u origin master
- Go to the repo page, and click on the Settings tab.
- Scroll down to the GitHub Pages section
- In the Source dropdown select “master branch”
- Click “Save”
- Follow the directions in Running Locally section
If you have changed the repo name from annotate
to something else
- Go to _config.yml file.
- Replace baseurl with
/<reponame>