Skip to content

Commit e5e8749

Browse files
authored
Merge pull request #2 from mgrover1/add-update-template
Add updated template
2 parents 20735a2 + e1ebf97 commit e5e8749

14 files changed

Lines changed: 124 additions & 1 deletion

getting-started.md

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
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+
![](images/github-workflow-permissions.png)
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+
![](images/github-workflow-read-write.png)
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+
![](images/github-action-deploymen.png)
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+
![](images/view-action.png)
32+
33+
Select the "MyST Github Pages Deploy", and select the failing action.
34+
35+
![](images/see-failing-action.png)
36+
37+
Click the Re-run jobs tab at the top, and select re-run failed jobs
38+
39+
![](images/rerun-failing-jobs.png)
40+
41+
Click the Re-run jobs button, which will initiate the publishing.
42+
43+
![](images/submit-failing-jobs.png)
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+
![](images/find-gear-logo.png)
52+
53+
Make sure the "Use your Github Pages website" is selected.
54+
![](images/use-github-pages-link.png)
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+
![](images/select_project_proposal.png)
115+
116+
2. Populate the issue form:
117+
118+
![](images/project_proposal_form.png)
119+
120+
3. Submit new issue
121+
122+
![](images/submit_issue.png)

images/find-gear-logo.png

545 KB
Loading

images/github-pages-deployment.png

527 KB
Loading
415 KB
Loading
564 KB
Loading

images/project_proposal_form.png

48.7 KB
Loading

images/rerun-failing-jobs.png

379 KB
Loading

images/see-failing-action.png

379 KB
Loading

images/select_project_proposal.png

6 KB
Loading

images/submit-failing-jobs.png

421 KB
Loading

0 commit comments

Comments
 (0)