← Studio library

Publishing the studio

Reference notes. Source retained; historical claims may need rechecking.

Studio reference illustration

Publishing the Studio

What this is. The UI/UX Studio (9 - System/ui-ux/) is a live public site at https://studio.smartrules.ai (also served at smartrules.ai/studio). Editing the local files changes nothing anyone can see. Every change ends with this. Verified working 05-08-2026.

Just run the script

9 - System/ui-ux/publish.sh does all five steps and verifies the live site (15-08-2026). ./publish.sh --dry stages and repairs links without uploading, so you can see what would change. It resolves its own folder, so it works from anywhere and on any machine. It also improves on step 2 below: instead of unlinking every ../../ href, it resolves each relative link inside the staged tree and unlinks only the ones that escape the site or point at nothing — so real in-site links between subfolders survive.

The five steps (what the script does)

  1. Copy to a staging folder. cp -R "9 - System/ui-ux" <scratch>/studio-site, then delete .DS_Store and any assets-old/.
  2. Repair the links, in python over **/*.html:
  3. data-local="file://…/skills/<name>/SKILL.md" where <name> is in the public pack → https://github.com/gfrankgva/studio-skills/blob/master/<name>/SKILL.md
  4. every other file:// or ../../ href → data-local="…" (visible, not a broken link)
  5. Assert zero data-local="file:// left. Last run: 17 rewritten, 49 unlinked.
  6. Upload: rsync -az --delete <scratch>/studio-site/ louis:/tmp/studio-stage/
  7. Publish: ssh louis "sudo rsync -a --delete /tmp/studio-stage/ /var/www/studio/ && sudo chown -R www-data:www-data /var/www/studio"
  8. Verify against the LIVE site, never the local files. Every new page returns 200, plus one count that must have moved — the number of criteria, or a string only the new build contains. A local file that looks right proves nothing.

Two things that will trip you

And tell Frank the URL

Never a file path. https://studio.smartrules.ai/people/index.html

Related: 5 - Handovers/ui-ux-library-02-aug-26-23h.md (where this recipe was born), memory reference-uiux-studio.

Source previewDownload original source