|
| 1 | +# Getting Started |
| 2 | + |
| 3 | +## How to Deploy on Github Pages |
| 4 | +By default, your website will be deployed to github pages, using the path of: |
| 5 | + |
| 6 | +mgrover1.github.io/hackathon-template-github |
| 7 | + |
| 8 | +In order for this to work, you will need to follow these steps: |
| 9 | + |
| 10 | +### 1. Make sure Github Actions has permission to write to your repository |
| 11 | + |
| 12 | +This setting can be found under Settings -> Actions -> General -> Workflow Permissions |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +If you scroll to the bottom of the General Actions Permission, select "Read and write permissions", which will ensure your action is enabled correctly, publishing your content! |
| 17 | + |
| 18 | + |
| 19 | +### 2. Enable Github Pages for your repository |
| 20 | + |
| 21 | +Continue to scroll down your page, and select "Pages", which give you an option of where to gather your content from. |
| 22 | + |
| 23 | +Select "Github Actions", which will pull the website from the action. |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +### 3. Rerun the Action now that settings have been properly configured. |
| 28 | + |
| 29 | +Go to the top of your screen, and select Actions, which will have two options on the left. |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +Select the "MyST Github Pages Deploy", and select the failing action. |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +Click the Re-run jobs tab at the top, and select re-run failed jobs |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | +Click the Re-run jobs button, which will initiate the publishing. |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | +### 4. Make sure your pages link is linked on your repository |
| 46 | + |
| 47 | +Go to the main page for your repository (ex. https://github.com/mgrover1/hackathon-template-github) |
| 48 | + |
| 49 | +Notice the gear logo on the right - click on that! (this should be to the right of the About section) |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +Make sure the "Use your Github Pages website" is selected. |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +Follow that link, you are good to go! Congratulations on deploying your first hackathon website 🚀 |
| 58 | + |
| 59 | +## How to Edit Content |
| 60 | + |
| 61 | +All of the content for this template is built from markdown, a plain text format that is used to build the web content! |
| 62 | + |
| 63 | +For more on markdown, please see this [markdown tutorial](https://www.markdowntutorial.com/) |
| 64 | + |
| 65 | +### Editing Content on Github |
| 66 | + |
| 67 | +If you are interested in editing the content directly on the github website, please see [this tutorial](https://docs.github.com/en/get-started/start-your-journey/hello-world) that walks through Github |
| 68 | + |
| 69 | +### Editing Content Locally |
| 70 | + |
| 71 | +If you are interested in editing/rendering this content locally, please follow these steps: |
| 72 | + |
| 73 | +1. Move into your directory of the content |
| 74 | + |
| 75 | +```bash |
| 76 | +cd hackathon-template-github |
| 77 | +``` |
| 78 | + |
| 79 | +2. Install a conda environment using the environment file* |
| 80 | + |
| 81 | +* if you are new to conda environments, please see this [getting started with conda content from the software carpentries](https://edcarp.github.io/introduction-to-conda-for-data-scientists/02-working-with-environments/index.html) |
| 82 | + |
| 83 | +```bash |
| 84 | +conda env create -f environment.yml |
| 85 | +conda activate hackathon-template-github-dev |
| 86 | +``` |
| 87 | + |
| 88 | +3. Build your content locally using myst (and open the link returned) |
| 89 | + |
| 90 | +```bash |
| 91 | +myst start |
| 92 | +``` |
| 93 | + |
| 94 | +Running this command will start up your website, which should look something like: |
| 95 | + |
| 96 | +```👉 http://localhost:3000 👈``` |
| 97 | + |
| 98 | +4. Edit your content |
| 99 | + |
| 100 | +Now, you can open your README.md in your editor of choice, and add/remove/change the content, which will render immediately within your browser |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | +## How to propose projects |
| 105 | + |
| 106 | +For each project, submit a Project Proposal to this repository, identifying the scope of that topic. This will help ensure each project has a plan that can be executed during the event. |
| 107 | + |
| 108 | +To submit topics of interest use the GitHub issue form below: |
| 109 | + |
| 110 | +mgrover1/hackathon-template-github/issues/new/choose |
| 111 | + |
| 112 | +1. Select the project proposal issue template. |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | +2. Populate the issue form: |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | +3. Submit new issue |
| 121 | + |
| 122 | + |
0 commit comments