Before you add your bio, you probably want to get the code, right? To do this, we are going to fork the repo, clone it to our local machines, make edits, and push to master. Since this is not a formal code repo (e.g., we don't really need pull requests or continuous integration to test code) we are going to stick to working on the main branch (called master) and you are responsible for testing your changes locally, and then telling someone (@vsoch is a good person) if you mess up. If this freaks you out, you can also send your photo and bio to @vsoch and she will be glad to add it for you!
To contribute to the web based documentation, you should obtain a GitHub account and fork the Langlotz Lab Site repository. Once forked, you will want to clone the fork of the repo to your computer. Let's say my Github username is vsoch, and I am using ssh:
git clone [email protected]:vsoch/radinformatics.github.io.git
cd radinformatics.github.io/
This step is required if you want to render your work locally before committing your changes. For the purpose of simplicity, we will articulate how to install Jekyll and its dependencies on a Mac.
brew install ruby
gem install jekyll
gem install bundler
bundle install
Now you can see the site locally by running the server with jekyll:
bundle exec jekyll serve
(Note: I don't use a Mac and I didn't install the packages using the Gemfile as above - so if you hit any errors with this process please submit an issue! If there are problems then @vsoch can make a dockerized development environment).
This will make the site viewable at http://localhost:4000/
If you want a nice look into how this works, you will probably want to look into the config file, or ask @vsoch (v) questions on Slack or the Google Group.
Each news item that is rendered automatically in the site feed is done very simply - you just add a new markdown file to the folder _posts/
. There are a few rules you must follow:
The name of the markdown file must be in the format YYYY-MM-DD-meaningful-name.md
For example, 2016-09-23-first-post.md
Jekyll has this thing they call front matter which is basically a header in your markdown file. For our news feed, the header should look something like this:
---
title: "IIBIS Retreat at Stanford"
author_profile: false
categories: news
sidebar:
nav: "docs"
---
The title is self explanatory, as is the "categories" and "sidebar" (which you should not change). Actually, the only thing you need to change is the title.
Once the header is done, you simply write your post after it in Markdown Syntax. All and any HTML tags are fair game as well! Once you add the post, if you have set the category correctly to "news" it should show up in the site feed. It's that easy!
All of the pages are in the pages folder, named in a somewhat logical manner. If you want to edit content for a page, just edit the corresponding file. If you need to do something more advanced like edit a sidebar, you should look at the navigation data yml document, which renders into the navigation.
Full instructions for adding your bio are included in adding-your-bio.md
Now that you are ready to go, you might want to look at working-with-github.md