Skip to content

Commit c474bf8

Browse files
committed
WIP automatic build
1 parent 42e13c8 commit c474bf8

6 files changed

Lines changed: 32 additions & 5 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
permissions:
99
contents: write # Required for deploying to gh-pages branch

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.DS_Store
2+
.vscode/
3+
build/
4+

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@ build_dir = repo
55
preview:
66
python $(server)
77

8+
build:
9+
python $(server) build
10+
811
# usage: make push m="commit message"
912
push:
1013
git add -A && \
1114
git commit -m "$(m)" && \
12-
git push origin master
15+
git push origin main
1316

1417
# usage: make deploy m="commit message"
1518
deploy:
1619
python $(server) build && \
1720
cd ../deploy && \
18-
git pull origin master && \
21+
git pull origin main && \
1922
cp -r ../$(build_dir)/build/* . && \
2023
cp -r ../$(build_dir)/.gitignore . && \
2124
git add -A && \
2225
git commit -m 'deploy: $(m)' && \
23-
git push origin master
26+
git push origin main

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CodeClash Website
2+
3+
This is the code repository for the CodeClash website, built using Flask and Markdown.
4+
5+
```bash
6+
# To run the development server
7+
$ make preview
8+
# To build the static site
9+
$ make build

requirements.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
click==8.0.4
2+
Flask==2.0.3
3+
Flask-FlatPages==0.6
4+
Flask-Markdown==0.3
5+
Frozen-Flask==0.15
6+
Jinja2==3.1.1
7+
Markdown==2.6.9
8+
urllib3>=1.24.2
9+
Werkzeug==2.2.2

templates/arenas.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ <h1>Arenas</h1>
1212
{% if page.image %}
1313
<img src="{{ page.image }}" alt="{{ page.title }}">
1414
{% endif %}
15-
<h3 style="margin: 0 auto;">{{ page.title }}</h3>
15+
<a href="{{ url_for("page", path=page.path) }}">
16+
<b>{{ page.title }}</b>
17+
</a>
1618
<p style="margin: 0.5em auto;">{{ page.description }}</p>
1719
</div>
1820
{%- endfor %}

0 commit comments

Comments
 (0)