====== Creating a Reproducibility Guide using Github Pages ====== Let's do reproducible science! We can create a Github Page that goes along with our project repo (our project code on github) that walks others through our project, code, analyses, and how to reproduce or implement all code associated with a given publication. **Step 1. Create a /docs directory in your local github repository** cd /path/to/mygithub/repo mkdir docs **Step 2. Create a _config.yml file in docs which includes the page title, description, logo (image file), and theme for your Project Page.**\\ Your _config.yml file should look something like this: title:
Cortical Myelin Maturation description:
Project Information and Reproducibility Guide logo: ./project_abstract.png theme: jekyll-theme-minimal
The title appears at the top of the Project Page. This can be left blank, commented out, or deleted if desired.\\ The description appears somewhere below the title. This can be left blank, commented out, or deleted if desired.\\ If using a logo (project_abstract.png), you must upload the image file to the gh-pages branch (see below). This can be commented out or deleted if desired.\\ The theme controls what your Project Page looks like. Themes can be selected with jekyll-theme-themename; supported themes are listed here https://pages.github.com/themes/ and you can preview what they look by searching here http://jekyllthemes.org/ **Step 4. Create an index.md file.**\\ This file includes all of the text, links, etc. that you want to include on your Project Page! The text you write should comply to and will follow the formatting of Markdown syntax: https://github.com/Manuel83/sample/blob/master/index.md. Here is [[https://github.com/PennLINC/thalamocortical_development/blob/gh-pages/index.md | an example of an index.md file]] that served as one of Valerie’s study reproducibility guides. **Step 5. Add, commit and push your config file, index file, and logo image to the gh-pages branch** git add docs git commit -m “initiating Project Page!” #edit the message after -m to your liking git push origin main **Step 6. Tell github to build your Project Page from /docs on your main branch**\\ Finally, go to your github repository on github.com (in the web browser) and follow these steps: * Click on Settings on your repo page * Click on Pages on the left column * Under “Build and deployment” select “Deploy from a branch” * Under Branch, choose "main" and "/docs" Your site should be live 8-)! At https://labneurocogdevel.github.io/my_reponame or https://mygitusername.github.io/my_reponame (depending where your repo lives)