-
Notifications
You must be signed in to change notification settings - Fork 0
feat: migrate from Vite SPA to Astro with pandoc resume generation #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d152dbf
18a2166
4e9124b
b994d9f
c84f54f
84ef9d2
b9583e8
a061ae2
cd5afe9
13f5afc
78551e2
78c08bf
67c242b
49dd184
390c659
1d77cbb
c7123ab
63bd978
60212ce
539b4ad
e67735a
c9d3aa7
f90b45b
776385f
cf6f7ee
e07eb71
981e245
8ca3237
ce7b94a
c78be08
ea1455f
65d6d9c
b78e863
1e66d89
4736705
7304f7c
093a69a
58f1b0e
ab57764
e1c513a
e2b40e2
7811c6f
8dbed5c
57bd239
1d19824
8938e48
0fa5357
b3dc2c9
c669e14
66799c8
41ed630
d7a9db6
ca4991c
1931067
0cdab91
0ec63f1
a59b281
52d0add
ece1802
02319bc
c21d625
f3f1c6d
195b83d
f160f4e
2a9033c
a1de807
84a7f68
a3e1a39
f728156
0ec89c7
bc40ec7
ced4151
9cdda6f
a5acf2f
68411a2
d6aff75
1a15604
1637bf5
29805ee
a7d1b64
f6f6870
4f6f09c
23e511c
214b93a
67af066
edf9e61
871fb68
4213dc0
bb02145
17963fd
e9690cb
2bc7515
31b6a3d
5facdbf
f1c0cc5
98ef32a
8152d49
2092722
4dd5d2c
f45e7e8
c5fede5
2794e4a
2a84de7
ae4be7e
217ee11
3768b2a
de19c4f
06d116b
44366b0
adf276a
bf21d0c
43bd7a2
f628ee2
bbb02aa
4c0b63e
0b5c4fd
bcb5741
e46cf38
a3a6f22
479f8c9
f6adbf8
0be9ef0
663ee40
4de0e64
13dd65d
ef12bbe
e5656ad
595a670
18cfe4d
9172a64
9892fa9
9cc7bc7
5487aaf
bfb259b
7ea152d
eacd943
b95bbb0
939c2a3
c61b479
5b61921
768c70b
de46487
332943e
5a38bbc
4bf122c
0175613
ef6cb4e
a0b28a7
dcf08bc
f24b0fb
68d2060
f3a9d0a
9e14b06
b21d503
6a0ce8d
da38e76
52b21be
5770ac5
1945f81
1729296
2b681d5
4284e76
74b0778
cc507dc
5442165
b99c5e4
bf9b22b
f234613
9d44348
453f15e
7890325
ce483a6
d61e6a3
202a62c
7dab796
bee5fb6
4086f74
bd0a580
4bff309
1a876b4
c2ed2ab
8a17e17
0ccfd0d
603f219
3b0a29c
f87d53b
684f30b
907ba63
d68540b
d5801ec
87ae59f
0dd0bc2
87a1b03
4fa1f36
485eab2
5875ddd
18b1eb6
4eb297b
02945b7
f09c189
a5d555b
7875dbf
d6fded2
d86e64c
cb3b44d
ba7bdfa
6c14e86
9bdd6d6
73f6e8f
6c607c4
191745b
f04a90d
dc193e1
615335f
eb36185
96959ef
1b87b16
57a41c1
0389636
f0b9760
936d45a
6715cb3
9f5450f
d858ca0
c826f8b
e0d7204
4fff085
ad7f7c9
9783ef3
091a337
a8ad9d8
34c2f84
0c28707
79b1b4a
8b32b6d
57cbc33
cab3888
5749bf6
221649e
2a2f40b
00c797c
a9f0710
0125eb9
42769c1
8060825
6b78db2
d41b6f5
1f4d5e3
64accad
725fcfe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,8 +4,9 @@ on: | |
| pull_request: | ||
| paths: | ||
| - 'src/content/resume.json' | ||
| - 'scripts/generate-resume-*.ts' | ||
| - 'scripts/generate-resume*.ts' | ||
| - 'src/lib/dates.ts' | ||
| - 'src/pages/resume.astro' | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
@@ -37,14 +38,20 @@ jobs: | |
| node-version: 22 | ||
| cache: pnpm | ||
|
|
||
| - name: Setup pandoc | ||
| uses: pandoc/actions/setup@main | ||
|
Comment on lines
+41
to
+42
|
||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Install Playwright (for resume PDF generation) | ||
| run: npx playwright install chromium --with-deps | ||
| - name: Build site (includes resume page) | ||
| run: pnpm build | ||
|
|
||
| - name: Generate DOCX with pandoc | ||
| run: pandoc dist/resume/index.html -f html -t docx -o public/Jon_Bogaty_Resume.docx | ||
|
|
||
| - name: Generate resume files | ||
| run: pnpm generate:resume | ||
| - name: Copy PDF from build output | ||
| run: cp dist/Jon_Bogaty_Resume.pdf public/Jon_Bogaty_Resume.pdf 2>/dev/null || true | ||
|
Comment on lines
+50
to
+54
|
||
|
|
||
| - name: Check for changes | ||
| id: diff | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,78 +1,3 @@ | ||
| # CLAUDE.md | ||
|
|
||
| This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. | ||
|
|
||
| > **See also:** `AGENTS.md` for comprehensive agent instructions. | ||
|
|
||
| ## Quick Start | ||
|
|
||
| ```bash | ||
| # Check current context before starting | ||
| cat memory-bank/activeContext.md 2>/dev/null || echo "No active context" | ||
|
|
||
| # Check for project-specific instructions | ||
| cat .github/copilot-instructions.md 2>/dev/null | ||
| ``` | ||
|
|
||
| ## Development Workflow | ||
|
|
||
| ### Before Making Changes | ||
| 1. Read the issue/PR description completely | ||
| 2. Check `memory-bank/` for project context | ||
| 3. Look at recent commits for coding patterns | ||
| 4. Run tests to ensure clean starting state | ||
|
|
||
| ### Making Changes | ||
| 1. Create a feature branch if not already on one | ||
| 2. Make minimal, focused changes | ||
| 3. Write/update tests for new functionality | ||
| 4. Ensure all tests pass | ||
| 5. Update documentation if needed | ||
|
|
||
| ### Committing | ||
| ```bash | ||
| # Use conventional commits | ||
| git commit -m "feat(scope): add new feature" | ||
| git commit -m "fix(scope): resolve bug" | ||
| git commit -m "docs: update README" | ||
| git commit -m "test: add missing tests" | ||
| git commit -m "chore: update dependencies" | ||
| ``` | ||
|
|
||
| ## Code Quality Checklist | ||
|
|
||
| Before considering work complete: | ||
| - [ ] All tests pass | ||
| - [ ] Linting passes | ||
| - [ ] No new warnings introduced | ||
| - [ ] Documentation updated if needed | ||
| - [ ] Commit messages follow conventional format | ||
|
|
||
| ## Project Structure | ||
|
|
||
| ``` | ||
| . | ||
| ├── src/ # Source code | ||
| ├── tests/ # Test files | ||
| ├── docs/ # Documentation | ||
| ├── memory-bank/ # AI context files | ||
| │ ├── activeContext.md # Current focus | ||
| │ └── progress.md # Session progress | ||
| ├── .github/ | ||
| │ ├── copilot-instructions.md # Copilot context | ||
| │ └── workflows/ # CI/CD | ||
| ├── CLAUDE.md # This file | ||
| └── AGENTS.md # Agent instructions | ||
| ``` | ||
|
|
||
| ## Getting Help | ||
|
|
||
| 1. Check `AGENTS.md` for detailed instructions | ||
| 2. Check `.github/copilot-instructions.md` for dev commands | ||
| 3. Check `docs/` for architecture decisions | ||
| 4. Look at test files for usage examples | ||
|
|
||
| ## Repository-Specific Notes | ||
|
|
||
| <!-- Add repository-specific context below --> | ||
| # jbcom.github.io | ||
|
|
||
| See `AGENTS.md` for comprehensive agent instructions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import { resolve } from 'node:path' | ||
| import react from '@astrojs/react' | ||
| import tailwindcss from '@tailwindcss/vite' | ||
| import { defineConfig } from 'astro/config' | ||
|
|
||
| export default defineConfig({ | ||
| site: 'https://jbcom.github.io', | ||
| output: 'static', | ||
| integrations: [react()], | ||
| vite: { | ||
| plugins: [tailwindcss()], | ||
| resolve: { | ||
| alias: { | ||
| '@': resolve(import.meta.dirname, './src'), | ||
| }, | ||
|
Comment on lines
+12
to
+15
|
||
| }, | ||
| }, | ||
| }) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,8 @@ | |
| "!node_modules", | ||
| "!dist", | ||
| "!coverage", | ||
| "!**/*.css" | ||
| "!**/*.css", | ||
| "!**/*.astro" | ||
| ] | ||
| } | ||
| } | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pandoc/actions/setup@mainis not pinned to a tag or commit SHA, while other actions in this workflow are pinned. For supply-chain safety and reproducibility, pin this action to a specific version (tag) or, ideally, a commit SHA like the otheruses:entries.