Skip to content

Commit fc57eb5

Browse files
committed
feat: refresh certprep site, add tracks, and switch to GitHub Pages
1 parent 5136fd1 commit fc57eb5

23 files changed

Lines changed: 664 additions & 249 deletions

.github/workflows/deploy.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test & Deploy (Cloudflare Pages)
1+
name: Test & Deploy (GitHub Pages)
22

33
on:
44
push:
@@ -7,7 +7,15 @@ on:
77

88
env:
99
NODE_VERSION: 20
10-
CLOUDFLARE_PAGES_PROJECT: certforge-dev
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: pages
18+
cancel-in-progress: true
1119

1220
jobs:
1321
build:
@@ -32,10 +40,19 @@ jobs:
3240
- name: Build site
3341
run: npm run build
3442

35-
- name: Publish to Cloudflare Pages
36-
uses: cloudflare/pages-action@v1
43+
- name: Upload Pages artifact
44+
uses: actions/upload-pages-artifact@v3
3745
with:
38-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
39-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
40-
projectName: ${{ env.CLOUDFLARE_PAGES_PROJECT }}
41-
directory: dist
46+
path: dist
47+
48+
deploy:
49+
name: Deploy to GitHub Pages
50+
needs: build
51+
runs-on: ubuntu-latest
52+
environment:
53+
name: github-pages
54+
url: ${{ steps.deployment.outputs.page_url }}
55+
steps:
56+
- name: Deploy
57+
id: deployment
58+
uses: actions/deploy-pages@v4

.husky/_/husky.sh

100755100644
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#!/usr/bin/env sh
2-
# shellcheck shell=sh
1+
echo "husky - DEPRECATED
2+
3+
Please remove the following two lines from $0:
34
4-
if [ -z "$husky_skip_init" ]; then
5-
husky_skip_init=1
5+
#!/usr/bin/env sh
6+
. \"\$(dirname -- \"\$0\")/_/husky.sh\"
67
7-
export PATH="${PATH}:./node_modules/.bin"
8-
fi
8+
They WILL FAIL in v10.0.0
9+
"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# CertForge Static Site
1+
# CertPrep Static Site
22

3-
A lightweight Astro site that showcases every CertForge certification domain, links to the open-source prep repositories, and highlights the hands-on demos that live inside each repo. The site is optimized for Cloudflare Pages and enforces tests locally and in CI before deployments run.
3+
A lightweight Astro site that showcases every CertPrep certification domain, links to the open-source prep repositories, and highlights the hands-on demos that live inside each repo. The site is optimized for Cloudflare Pages and enforces tests locally and in CI before deployments run.
44

55
## Tech Stack
66

@@ -28,7 +28,7 @@ npm test # one-off
2828
npm run test:watch
2929
```
3030

31-
The tests verify that each track’s domain weights total 100%, every repo link resolves to the CertForge org, and that each track exposes labs/scripts for the website to promote.
31+
The tests verify that each track’s domain weights total 100%, every repo link resolves to the CertPrep org, and that each track exposes labs/scripts for the website to promote.
3232

3333
## Deployment
3434

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'astro/config';
22

33
export default defineConfig({
4-
site: 'https://certforge.dev',
4+
site: 'https://certprep.dev',
55
integrations: [],
66
build: {
77
format: 'directory',

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "certforge-site",
2+
"name": "certprep-site",
33
"version": "1.0.0",
44
"private": true,
55
"type": "module",

public/certforge-logo.svg

Lines changed: 0 additions & 92 deletions
This file was deleted.

public/certprep-logo.svg

Lines changed: 29 additions & 0 deletions
Loading

src/components/DomainDetails.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const { track }: { track: Track } = Astro.props;
88
<div style="display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; align-items:center;">
99
<div>
1010
<p class="tag" style="margin:0;">{track.examCode}</p>
11-
<h3 id={`domains-${track.id}`} style="margin:0.45rem 0;">{track.title} · Domain Map</h3>
11+
<h3 id={`domains-${track.id}`} style="margin:0.45rem 0;">{track.title} · Exam Blueprint</h3>
1212
<p style="max-width:640px; color:var(--text-muted);">
13-
Weighted to the official blueprint so your study plan mirrors the scoring rubric. Each tile links to runnable labs inside the repo.
13+
Weighted to the official blueprint so your study plan mirrors the scoring rubric. Each tile links to the docs, labs, or scripts that cover the domain.
1414
</p>
1515
</div>
1616
<div style="text-align:right;">

src/components/TrackCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { track }: { track: Track } = Astro.props;
55
---
66

77
<article class="card" id={track.id}>
8-
<div class="tag">{track.examCode} · {track.status === "available" ? "Available" : track.status}</div>
8+
<div class="tag">{track.examCode}: {track.title}</div>
99
<h3>{track.title}</h3>
1010
<p>{track.summary}</p>
1111
<ul style="margin:0; padding-left:1.15rem; color:var(--text-muted);">

0 commit comments

Comments
 (0)