Skip to content

Commit ecd4f4d

Browse files
authored
Merge pull request #120 from tylerslaton/reset-story-book
docs: update story-book readme to have a reset step
2 parents a3cbe20 + 9237e27 commit ecd4f4d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

examples/story-book/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,17 @@ by `index.html` which has some JS/CSS to make the story styling consistent and r
3434
3. **View the story.**
3535

3636
Open `index.html` in your browser to view the generated story.
37+
38+
4. (optional) **Generate a new story.**
39+
40+
To generate another story, you'll first need to delete the existing `pages` directory. In the `examples/story-book` directory, run the following command:
41+
42+
```shell
43+
rm -rf pages
44+
```
45+
46+
After that, you can generate a new story by running the `story-book.gpt` script again with a different prompt or number of pages.
47+
48+
```shell
49+
gptscript story-book.gpt --prompt "The Three Little Pigs" --pages 5
50+
```

0 commit comments

Comments
 (0)