-
Notifications
You must be signed in to change notification settings - Fork 21
Updating the Documentation for QAP
John Pellman edited this page Oct 20, 2015
·
6 revisions
To update the documentation, you will need Jekyll (which we use to generate the html from markdown). Install it using the instructions here. Then:
- Clone the
wwwbranch of the repo.
git clone -b www https://github.com/preprocessed-connectomes-project/quality-assessment-protocol.git
- Create and edit markdown files for the documentation that you wish to update/add. These will be embedded within the layout stored in _layout/page.html. You can preview all HTML pages by typing the following command in a terminal whose working directory is the repo, and then navigating to http://127.0.0.1:4000/. The pages will be updated every time you modify their corresponding markdown files.
jekyll serve watch
- When you are done and the pages appear as they should in the preview, generate the HTML by typing the following command. This will populate the _site directory with the rendered pages.
jekyll build
- Switch to the
gh-pagesbranch of the repo.
- git checkout gh-pages
- _site should still be present in the directory, but is ignored. Copy the html files from _site into the main directory. Add them, commit them, and push them.