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/30 10:56] – vsydnor | tools:project_reproducibility_guides_with_gh-pages [2025/08/18 10:44] (current) – [Step 4. doc/index.md] will | ||
---|---|---|---|
Line 3: | Line 3: | ||
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. | 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** | + | To uses github' |
+ | a minimal documentation setup includes a '' | ||
+ | < | ||
+ | docs/ | ||
+ | _config.yaml | ||
+ | index.md | ||
+ | </ | ||
+ | ===== Step 1. make docs/ ===== | ||
+ | |||
+ | First, create a '' | ||
< | < | ||
cd / | cd / | ||
Line 9: | Line 19: | ||
</ | </ | ||
- | **Step 2. Create a _config.yml file in docs which includes the page title, description, | + | ===== Step 2. docs/ |
- | Your _config.yml file should look something like this: | + | |
+ | Create a '' | ||
+ | Your '' | ||
< | < | ||
Line 19: | 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 docs | 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 origin main | git push origin main | ||
</ | </ | ||
- | **Step 6. Tell github to build your Project Page from /docs on your main branch**\\ | + | ===== 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:// | ||
+ | |||
+ | {{: |