summaryrefslogtreecommitdiffstats
path: root/CLAUDE.md
diff options
context:
space:
mode:
Diffstat (limited to 'CLAUDE.md')
-rw-r--r--CLAUDE.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index 3afcf7c..184537d 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -42,6 +42,11 @@ DO NOT write code for shortcodes without consulting the user first. Implement:
- Theme repo: `~/Programming/GIT/danix2-hugo-theme/` → `danix_git:danix2-hugo-theme`
- Theme lives as submodule at `themes/danix-xyz-hacker/` in content repo
+**Three branches, defined roles:**
+- `master`: staging/dev branch. All feature branches merge here. Safe for WIP commits and testing.
+- `production`: live branch. Merges only from master when ready to ship. Post-receive hook fires on production pushes only.
+- 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`
@@ -52,9 +57,10 @@ DO NOT write code for shortcodes without consulting the user first. Implement:
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`
3. Bump submodule: `cd .. && git add themes/danix-xyz-hacker && git commit -m "chore: bump theme submodule (CSS rebuild)" && git push origin master`
-**Deployment:**
-- Production hook clones latest `danix2-hugo-theme` master tip on each content push
-- Theme changes deploy automatically on next content push (no submodule bump required for deployment, only for local tracking)
+**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
+3. Theme changes deploy automatically on next production push (no submodule bump required for deployment, only for local tracking)
## 🎨 Styling & Build Pipeline
- **Tailwind CSS**: Uses npm build pipeline with `tailwind.config.js`