diff options
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -48,15 +48,18 @@ DO NOT write code for shortcodes without consulting the user first. Implement: - Feature branches: work branches for features, content, or experiments. Merge to master when done. **Theme work:** -1. Edit in theme repo OR submodule (always `git checkout master` first if using submodule) -2. Commit and push to `danix2-hugo-theme` -3. Bump submodule pointer in content repo: `git add themes/danix-xyz-hacker && git commit -m "chore: bump theme submodule" && git push origin master` +1. Always edit files inside `themes/danix-xyz-hacker/` (the submodule). Never edit `danix2-hugo-theme/` directly and copy over — this causes `main.min.css` to go out of sync with the theme repo. +2. Always `git checkout master` inside the submodule before editing. +3. Commit and push from inside `themes/danix-xyz-hacker/` to `danix2-hugo-theme`. +4. Bump submodule pointer in content repo: `git add themes/danix-xyz-hacker && git commit -m "chore: bump theme submodule" && git push origin master` **CSS rebuild (after template changes with new Tailwind classes):** -1. From content repo root: `npm run build` -2. Commit compiled CSS in theme: `cd themes/danix-xyz-hacker && git add assets/css/main.min.css && git commit -m "build: recompile CSS" && git push origin master` +1. From content repo root: `npm run build` (outputs to `themes/danix-xyz-hacker/assets/css/main.min.css`) +2. Commit compiled CSS in submodule: `cd themes/danix-xyz-hacker && git add assets/css/main.min.css && git commit -m "build: recompile CSS" && git push origin master` 3. Bump submodule: `cd .. && git add themes/danix-xyz-hacker && git commit -m "chore: bump theme submodule (CSS rebuild)" && git push origin master` +> ⚠️ `main.min.css` must be committed from inside `themes/danix-xyz-hacker/` — production clones `danix2-hugo-theme` master tip directly, so any compiled CSS not committed there will be missing on deploy. + **Deployment to production:** 1. When master is ready to ship: `git checkout production && git merge master && git push origin production` 2. Post-receive hook clones latest `danix2-hugo-theme` master tip and builds the site |
