Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:project_reproducibility_guides_with_gh-pages [2024/07/29 16:44] – vsydnor | tools:project_reproducibility_guides_with_gh-pages [2025/08/18 10:44] (current) – [Step 4. doc/index.md] will | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === Creating a Reproducibility Guide using Github Pages === | + | ====== 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) that walks others through our project, code, analyses, and how to reproduce or implement all code associated with a given publication. | + | 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. Navigate to your local github | + | To uses github's built-in support for the [[https:// |
+ | a minimal documentation setup includes a '' | ||
+ | < | ||
+ | docs/ | ||
+ | _config.yaml | ||
+ | index.md | ||
+ | </ | ||
+ | ===== Step 1. make docs/ ===== | ||
- | **Step 2. Create | + | First, create |
< | < | ||
- | git switch –orphan gh-pages | + | cd / |
+ | mkdir docs | ||
</ | </ | ||
- | **Step 3. Create a _config.yml file which includes the page title, description, | + | ===== Step 2. docs/ |
- | Your _config.yml file should look something like this: | + | |
+ | Create a '' | ||
+ | Your '' | ||
< | < | ||
Line 21: | Line 31: | ||
</ | </ | ||
- | The title appears at the top of the Project Page. This can be left blank, commented out, or deleted if desired.\\ | + | * 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), | + | |
- | The theme controls what your Project Page looks like. Themes can be selected with jekyll-theme-themename; | + | |
- | **Step 4. Create an index.md file.**\\ | + | ===== Step 4. doc/ |
+ | |||
+ | Create an '' | ||
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:// | 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:// | ||
- | **Step 5. Add, commit | + | Here's a contrived example |
+ | < | ||
+ | # My Project | ||
+ | This project | ||
+ | ```bash | ||
+ | ./ | ||
+ | ./ | ||
+ | ``` | ||
+ | |||
+ | > [!NOTE] | ||
+ | > Watch out for this made up statistical //edge case// | ||
+ | </ | ||
+ | ===== Step 5. commit | ||
+ | Add, commit and push your config file, index file, and logo images. (Here we are using the '' | ||
< | < | ||
- | git add _config.yml index.md project_abstract.png | + | git add docs |
- | git commit -m “initiating Project Page!” #edit the message after -m to your liking | + | git commit -m "initiating Project Page!" |
- | git push gh-pages | + | git push origin main |
</ | </ | ||
- | **Step 6. Tell github to build your Project Page from your gh-pages | + | ===== Step 6. configure github ===== |
- | Finally, go to your github repository on github.com (in the web browser) and follow these steps: | + | Finally, tell github to build your Project Page from /docs on your main branch. |
+ | Go to your github repository on github.com (in the web browser) and follow these steps: | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
Your site should be live 8-)! At https:// | Your site should be live 8-)! At https:// | ||
+ | {{: |