Fix design-build output: use ./designs/ (per-project) instead of hardcoded path
This commit is contained in:
@@ -77,10 +77,10 @@ Be specific in the agent prompt about what file to create. The agent should:
|
|||||||
|
|
||||||
### Step 5: Save the output
|
### Step 5: Save the output
|
||||||
|
|
||||||
Create an output directory and save:
|
Create an output directory in the current project and save:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir -p /home/sam/chats/sys_config/docker/penpot_designs/<project-name>
|
mkdir -p ./designs/<project-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
Write the generated code to `index.html` in that directory.
|
Write the generated code to `index.html` in that directory.
|
||||||
@@ -88,16 +88,16 @@ Write the generated code to `index.html` in that directory.
|
|||||||
Also save a `README.md` with:
|
Also save a `README.md` with:
|
||||||
- The original design spec
|
- The original design spec
|
||||||
- The DESIGN.md URL used
|
- The DESIGN.md URL used
|
||||||
- How to preview: `cd <dir> && python3 -m http.server 3000`
|
- How to preview: `cd ./designs/<project-name> && python3 -m http.server 3000`
|
||||||
|
|
||||||
### Step 6: Show the result
|
### Step 6: Show the result
|
||||||
|
|
||||||
Tell the user:
|
Tell the user:
|
||||||
```
|
```
|
||||||
Code generated → /home/sam/chats/sys_config/docker/penpot_designs/<project>/index.html
|
Code generated → ./designs/<project>/index.html
|
||||||
|
|
||||||
To preview:
|
To preview:
|
||||||
cd /home/sam/chats/sys_config/docker/penpot_designs/<project>/
|
cd ./designs/<project>/
|
||||||
python3 -m http.server 3000
|
python3 -m http.server 3000
|
||||||
→ Open http://localhost:3000
|
→ Open http://localhost:3000
|
||||||
|
|
||||||
@@ -120,9 +120,9 @@ Same format as design-explore. See `~/.agents/skills/design-explore/SKILL.md` fo
|
|||||||
|
|
||||||
## Output Location
|
## Output Location
|
||||||
|
|
||||||
All generated projects go to:
|
All generated projects go to the current working directory:
|
||||||
```
|
```
|
||||||
/home/sam/chats/sys_config/docker/penpot_designs/<project-name>/
|
./designs/<project-name>/
|
||||||
```
|
```
|
||||||
|
|
||||||
This keeps designs organized and previewable. Create the parent directory if it doesn't exist.
|
This keeps designs with the project — they can be rsync'd to servers, committed to git, or referenced by other tools. The parent `./designs/` directory is created if it doesn't exist.
|
||||||
|
|||||||
Reference in New Issue
Block a user