Skip to content

Commit ba3e312

Browse files
BaseMaxjbampton
andauthored
Max updates improve (Adding dprint config, Run linter on the project, create github action to run linter on push and new PR, include font in css not html, create 404 page, delete unused files) (brisbanesocialchess#100)
* delete themes for now * create 404 page * Include font in css, remove from html files * Link logo to homepage * Start adding dprint, create github actions * create dprint - init * Setup dprint config, add lint plugins * Run linter - dprint check - dprint fmt * add cache for lint.yaml cicd * limit lint for main branch * Add dprint to path everytime * update index - fix new line * update image URLs * fix dprint * Update README.md Co-authored-by: John Bampton <jbampton@users.noreply.github.com> * delete unused index.md, create backend dir * delete .vscode, update gitignore * add .idea * update gitignore * update gitignore * Update docs/register.html Co-authored-by: John Bampton <jbampton@users.noreply.github.com> --------- Co-authored-by: John Bampton <jbampton@users.noreply.github.com>
1 parent 53a0031 commit ba3e312

File tree

28 files changed

+1033
-964
lines changed

28 files changed

+1033
-964
lines changed

.github/lint-plugins/json.wasm

2.26 MB
Binary file not shown.

.github/lint-plugins/markdown.wasm

2.06 MB
Binary file not shown.

.github/lint-plugins/toml.wasm

911 KB
Binary file not shown.

.github/lint-plugins/yaml.wasm

593 KB
Binary file not shown.

.github/workflows/git-clone-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
test-git-clone:
13-
name: 'Test git clone on ${{ matrix.os }}'
13+
name: "Test git clone on ${{ matrix.os }}"
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
fail-fast: false

.github/workflows/lint.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Dprint Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
dprint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Cache dprint
18+
uses: actions/cache@v3
19+
with:
20+
path: |
21+
~/.cache/dprint
22+
~/.dprint/bin
23+
key: ${{ runner.os }}-dprint-${{ hashFiles('dprint.json') }}
24+
restore-keys: |
25+
${{ runner.os }}-dprint-
26+
27+
- name: Install dprint
28+
if: steps.cache-dprint.outputs.cache-hit != 'true'
29+
run: curl -fsSL https://dprint.dev/install.sh | sh
30+
31+
- name: Add dprint to PATH
32+
run: echo "$HOME/.dprint/bin" >> $GITHUB_PATH
33+
34+
- name: Run dprint check
35+
run: dprint check

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121

2222
- uses: actions/setup-python@v5
2323
with:
24-
python-version: '3.x'
25-
architecture: 'x64'
24+
python-version: "3.x"
25+
architecture: "x64"
2626

2727
- name: Install dependencies
2828
run: |

.github/workflows/wrangler.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
name: 🤓 😎 Site
1313
steps:
1414
- uses: actions/checkout@v4
15-
15+
1616
- name: Setup Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '22'
20-
19+
node-version: "22"
20+
2121
- name: 🚀 Publish
2222
uses: cloudflare/wrangler-action@v3
2323
with:
2424
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2525
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
26-
workingDirectory: 'packages/cfsite'
26+
workingDirectory: "packages/cfsite"
2727
command: deploy

.gitignore

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1-
zola.exe
2-
node_modules
3-
public
1+
# Editor directories
2+
.vscode/
3+
.idea/
4+
*.suo
5+
*.ntvs*
6+
*.njsproj
7+
*.sln
8+
9+
# OS files
10+
.DS_Store
11+
Thumbs.db
12+
13+
# Logs
14+
*.log
15+
16+
# Temporary files
17+
*.tmp
18+
*.temp
19+
20+
# Build output
21+
dist/
22+
build/
23+
24+
# npm package lock file
25+
package-lock.json
26+
yarn.lock
27+
28+
# Environment files
29+
.env
30+
.env.local
31+
.env.*.local
32+
33+
# Backup files
34+
*~
35+
*.bak
36+
37+
# Dependency directories
38+
node_modules/
39+
40+
# Public folder
41+
public/
42+
43+
# Archive files
44+
*.rar
45+
*.zip

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ Read below for instructions about the current static development site hosted on
1515

1616
## About Brisbane Social Chess
1717

18-
Brisbane Social Chess is a community-focused website dedicated to chess enthusiasts in Brisbane.
18+
Brisbane Social Chess is a community-focused website dedicated to chess enthusiasts in Brisbane.
1919
Our goal is to provide news, events, resources, and a platform for social chess activities.
2020

2121
---
2222

2323
## Features
2424

25-
- Responsive and modern website
26-
- Easy content management via Markdown files
25+
- Responsive and modern website
26+
- Easy content management via Markdown files
2727
- Static site generated using [Zola](https://www.getzola.org/) — a fast, Rust-powered static site generator similar to Jekyll
2828

2929
---
@@ -32,15 +32,16 @@ Our goal is to provide news, events, resources, and a platform for social chess
3232

3333
### Install Zola
3434

35-
Download and install Zola from the [official releases page](https://github.com/getzola/zola/releases).
36-
- For Windows: download the latest ZIP file containing the `.exe`
35+
Download and install Zola from the [official releases page](https://github.com/getzola/zola/releases).
36+
37+
- For Windows: download the latest ZIP file containing the `.exe`
3738
- For macOS/Linux: follow the installation instructions on [Zola’s docs](https://www.getzola.org/documentation/getting-started/installation/)
3839

3940
Verify installation by running:
4041

4142
```bash
4243
zola -V
43-
````
44+
```
4445

4546
Expected output:
4647

@@ -87,9 +88,9 @@ The output will be in the `public/` directory, ready to be served or deployed.
8788

8889
### Customize Your Site
8990

90-
* Edit `config.toml` to update site metadata such as title and base URL
91-
* Add or modify Markdown files in the `content/` directory to change site content
92-
* Customize templates and static assets in `templates/` and `static/` folders as needed
91+
- Edit `config.toml` to update site metadata such as title and base URL
92+
- Add or modify Markdown files in the `content/` directory to change site content
93+
- Customize templates and static assets in `templates/` and `static/` folders as needed
9394

9495
---
9596

0 commit comments

Comments
 (0)