Skip to content

Commit 8748034

Browse files
authored
Max updates on the way of travel to home (brisbanesocialchess#272)
* create ignore file for pre-commit - empty for now, but keep it for later * update pre-commit config brisbanesocialchess#269 * update .prettierignore file * Adding ts, tsx to prettier in pre-commit - we don't have ts files for now but it's good to add ts here for later * add new minutes * update June 2024 - version 2.0 * create BASE_URL var in test * change http to https in comment * remove / from BASE_URL * Add meetup week page - first version not complete * working on meetup pages * update meetups * clean index.js * update meetups * create meetup * update nav in all pages * fix index.html * update default stages for testing * foo * update readme to add docker * change url go link in docker * change go url - mirror * Add nodejs to docker * change go mirror * add to set env path * update readme * up * change docker base image * change apk to apt * change apk to apt * fix and pass test * fix css issue * Skip pelicanconf.py build if pelicanconf.py not exists * update cicd * make John bigger
1 parent 6e08656 commit 8748034

22 files changed

+372
-118
lines changed

.github/workflows/pr-deploy-preview.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,34 @@ jobs:
2121
with:
2222
python-version: '3.x'
2323

24+
- name: Check if pelicanconf.py exists
25+
id: check_pelicanconf
26+
run: |
27+
if [ -f pelicanconf.py ]; then
28+
echo "file_exists=true" >> $GITHUB_OUTPUT
29+
else
30+
echo "file_exists=false" >> $GITHUB_OUTPUT
31+
fi
32+
2433
- name: Install dependencies
34+
if: steps.check_pelicanconf.outputs.file_exists == 'true'
2535
run: |
2636
python -m pip install --upgrade pip
2737
pip install pelican markdown
2838
2939
- name: Build Pelican site
40+
if: steps.check_pelicanconf.outputs.file_exists == 'true'
3041
run: pelican content -o output -s pelicanconf.py
3142

3243
- name: Upload artifact (optional)
44+
if: steps.check_pelicanconf.outputs.file_exists == 'true'
3345
uses: actions/upload-artifact@v4
3446
with:
3547
name: pelican-site
3648
path: output/
3749

3850
- name: Deploy to GitHub Pages
39-
if: github.event_name == 'pull_request'
51+
if: github.event_name == 'pull_request' && steps.check_pelicanconf.outputs.file_exists == 'true'
4052
uses: peaceiris/actions-gh-pages@v4
4153
with:
4254
github_token: ${{ secrets.GITHUB_TOKEN }}

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package-lock.json
2+
packages/cfsite/package-lock.json

Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM node:22.18.0-bullseye
2+
3+
ENV GO_VERSION=1.24.5
4+
ENV NODE_VERSION=22.18.0
5+
6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
curl \
8+
git \
9+
bash \
10+
python3 \
11+
python3-pip \
12+
build-essential \
13+
ca-certificates \
14+
tar \
15+
xz-utils \
16+
libstdc++6 \
17+
&& rm -rf /var/lib/apt/lists/*
18+
19+
RUN pip3 install pre-commit
20+
21+
RUN curl -LO https://mirrors.aliyun.com/golang/go${GO_VERSION}.linux-amd64.tar.gz && \
22+
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \
23+
rm go${GO_VERSION}.linux-amd64.tar.gz
24+
25+
ENV PATH="/usr/local/go/bin:${PATH}"
26+
27+
RUN go version && python3 --version && pip3 --version
28+
29+
WORKDIR /app
30+
31+
CMD ["pre-commit", "run", "--all-files"]

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,26 @@ npx serve
7474

7575
---
7676

77+
## Build the Docker image for running `pre-commit` easily
78+
79+
```bash
80+
docker build -t my-go-precommit .
81+
or
82+
docker build --no-cache -t my-go-precommit .
83+
```
84+
85+
And then:
86+
87+
```bash
88+
docker run --rm -v "$PWD":/app -w /app my-go-precommit
89+
```
90+
91+
Or if you want to run and keep the container and go into bash:
92+
93+
```bash
94+
docker run -it -v "$PWD":/app -w /app my-go-precommit bash
95+
```
96+
97+
---
98+
7799
© 2025 Brisbane Social Chess

docs/contact.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ <h1>Brisbane Social Chess</h1>
2424
<a href="/about.html">About</a>
2525
<a href="/games.html">Games</a>
2626
<a href="/minutes.html">Minutes</a>
27+
<a href="/meetup.html">Meetups</a>
2728
<a href="/register.html">Register</a>
2829
<a href="/rules.html">Rules</a>
2930
<a href="/terms.html">Terms</a>

docs/games.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ <h1>Brisbane Social Chess</h1>
2424
<a href="/about.html">About</a>
2525
<a href="/games.html" class="active">Games</a>
2626
<a href="/minutes.html">Minutes</a>
27+
<a href="/meetup.html">Meetups</a>
2728
<a href="/register.html">Register</a>
2829
<a href="/rules.html">Rules</a>
2930
<a href="/terms.html">Terms</a>

docs/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ <h1>Brisbane Social Chess</h1>
2626
<a href="/about.html">About</a>
2727
<a href="/games.html">Games</a>
2828
<a href="/minutes.html">Minutes</a>
29+
<a href="/meetup.html">Meetups</a>
2930
<a href="/register.html">Register</a>
3031
<a href="/rules.html">Rules</a>
3132
<a href="/terms.html">Terms</a>

docs/meetup-friday.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!DOCTYPE html>
2+
<html lang="en" dir="ltr">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Friday Night Chess - Coffee Supreme, Woolloongabba</title>
7+
<meta name="description" content="Weekly Friday night casual chess at Coffee Supreme, Woolloongabba hosted by John Bampton." />
8+
<link rel="stylesheet" href="style.css" />
9+
<link rel="icon" type="image/png" href="/assets/favicon.png" />
10+
<link rel="apple-touch-icon" href="/assets/apple-touch-icon.png" />
11+
</head>
12+
<body>
13+
<div class="background-overlay">
14+
<main class="content-wrapper">
15+
<!-- Logo -->
16+
<div class="logo">
17+
<a href="/">
18+
<img src="/assets/logo.jpg" alt="Brisbane Social Chess Logo" />
19+
</a>
20+
<h1>Brisbane Social Chess</h1>
21+
<p>A place for casual chess, for fun and friendly people.</p>
22+
</div>
23+
24+
<!-- Navigation -->
25+
<nav class="nav-links">
26+
<a href="/">Home</a>
27+
<a href="/games.html">Games</a>
28+
<a href="/minutes.html">Minutes</a>
29+
<a href="/meetup.html">Meetups</a>
30+
<a href="/register.html">Register</a>
31+
<a href="/rules.html">Rules</a>
32+
<a href="/terms.html">Terms</a>
33+
</nav>
34+
35+
<!-- Section: Meetup Info -->
36+
<section class="section">
37+
<h2>Friday Night Chess ♟️☕</h2>
38+
<p><strong>Location:</strong> Coffee Supreme, Woolloongabba</p>
39+
<p><strong>Hosted by:</strong> John Bampton</p>
40+
<div class="bio">
41+
<img src="https://avatars.githubusercontent.com/u/873384?s=400&v=4" alt="John Bampton" style="max-width: 150px; border-radius: 10px; margin-top: 10px;" />
42+
</div>
43+
<p>
44+
Welcome to Friday night chess at Coffee Supreme in Woolloongabba.<br />
45+
Come play casual games over excellent coffee or a cold drink.<br />
46+
The venue is relaxed, social, and friendly — perfect for all skill levels.
47+
</p>
48+
<p><strong>Time:</strong> 6:00 PM – 9:00 PM AEST</p>
49+
<p><strong>When:</strong> Every Friday</p>
50+
<p><strong>Address:</strong> 15 Balaclava St, Woolloongabba QLD 4102</p>
51+
52+
<div class="map">
53+
<iframe
54+
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3538.0211617421363!2d153.02726041506186!3d-27.49145638289017!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6b9159a7a0211687%3A0x85ff58a2cfd7c0e5!2sCoffee%20Supreme%20Brisbane!5e0!3m2!1sen!2sau!4v1691123456789!5m2!1sen!2sau"
55+
width="100%"
56+
height="250"
57+
style="border:0; border-radius: 10px;"
58+
allowfullscreen=""
59+
loading="lazy"
60+
></iframe>
61+
</div>
62+
</section>
63+
</main>
64+
</div>
65+
66+
<!-- Footer -->
67+
<footer class="site-footer">
68+
<p>&copy; <span id="year"></span> Brisbane Social Chess. All rights reserved.</p>
69+
</footer>
70+
<script type="text/javascript" src="/script.js"></script>
71+
</body>
72+
</html>

docs/meetup-monday.html

Whitespace-only changes.

docs/meetup-thursday.html

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!DOCTYPE html>
2+
<html lang="en" dir="ltr">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Thursday Night Chess - Royal Hotel, Nundah</title>
7+
<meta name="description" content="Weekly Thursday night casual chess at The Royal Hotel in Nundah hosted by John Bampton." />
8+
<link rel="stylesheet" href="style.css" />
9+
<link rel="icon" type="image/png" href="/assets/favicon.png" />
10+
<link rel="apple-touch-icon" href="/assets/apple-touch-icon.png" />
11+
</head>
12+
<body>
13+
<div class="background-overlay">
14+
<main class="content-wrapper">
15+
<!-- Logo -->
16+
<div class="logo">
17+
<a href="/">
18+
<img src="/assets/logo.jpg" alt="Brisbane Social Chess Logo" />
19+
</a>
20+
<h1>Brisbane Social Chess</h1>
21+
<p>A place for casual chess, for fun and friendly people.</p>
22+
</div>
23+
24+
<!-- Navigation -->
25+
<nav class="nav-links">
26+
<a href="/">Home</a>
27+
<a href="/games.html">Games</a>
28+
<a href="/minutes.html">Minutes</a>
29+
<a href="/meetup.html">Meetups</a>
30+
<a href="/register.html">Register</a>
31+
<a href="/rules.html">Rules</a>
32+
<a href="/terms.html">Terms</a>
33+
</nav>
34+
35+
<!-- Section: Meetup Info -->
36+
<section class="section">
37+
<h2>Thursday Night Chess ♟️🍺</h2>
38+
<p><strong>Location:</strong> Royal Hotel, Nundah</p>
39+
<p><strong>Hosted by:</strong> John Bampton</p>
40+
<div class="bio">
41+
<img src="https://avatars.githubusercontent.com/u/873384?s=400&v=4" alt="John Bampton" style="max-width: 150px; border-radius: 10px; margin-top: 10px;" />
42+
</div>
43+
<p>
44+
Welcome to Thursday night chess at The Royal Hotel in Nundah.<br />
45+
The Royal offers great food and drinks. On Sandgate Rd in Nundah Village, less than a 5-minute walk from Nundah Station.
46+
</p>
47+
<p><strong>Time:</strong> 6:00 PM – 8:00 PM AEST</p>
48+
<p><strong>When:</strong> Every Thursday</p>
49+
<p><strong>Address:</strong> 1259 Sandgate Rd, Nundah</p>
50+
51+
<div class="map">
52+
<iframe
53+
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3539.743539120519!2d153.0613242!3d-27.401235!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6b93df3cc8f4c4fb%3A0x5c8fe9f5679c437e!2sRoyal%20Hotel%20Nundah!5e0!3m2!1sen!2sau!4v1621066894245!5m2!1sen!2sau"
54+
width="100%"
55+
height="250"
56+
style="border:0; border-radius: 10px;"
57+
allowfullscreen=""
58+
loading="lazy"
59+
></iframe>
60+
</div>
61+
</section>
62+
</main>
63+
</div>
64+
65+
<!-- Footer -->
66+
<footer class="site-footer">
67+
<p>&copy; <span id="year"></span> Brisbane Social Chess. All rights reserved.</p>
68+
</footer>
69+
<script type="text/javascript" src="/script.js"></script>
70+
</body>
71+
</html>

0 commit comments

Comments
 (0)