diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-30 08:53:35 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-30 08:53:35 +0200 |
| commit | c711d02fcbdab312956236729693113128a436fd (patch) | |
| tree | 1bca477bac49cb33b64300dad2dad954d34c9f03 /CLAUDE.md | |
| parent | 3bd7e523a941c8fcdd9a0385ba232134b5e00b5b (diff) | |
| parent | 1355c69b3c5746fd34aa9d33ed52d8739cc2da5f (diff) | |
| download | danixxyz-c711d02fcbdab312956236729693113128a436fd.tar.gz danixxyz-c711d02fcbdab312956236729693113128a436fd.zip | |
Merge production branch workflow docs into masterrelease_30042026-0853
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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` |
