From 9237e272d5221d9a9dc2c2aaff08583d7b40b8be Mon Sep 17 00:00:00 2001 From: tylerslaton Date: Wed, 6 Mar 2024 16:09:41 -0500 Subject: [PATCH] docs: update story-book readme to have a reset step Signed-off-by: tylerslaton --- examples/story-book/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/story-book/README.md b/examples/story-book/README.md index 0ebd5cc6..0a1f1b63 100644 --- a/examples/story-book/README.md +++ b/examples/story-book/README.md @@ -34,3 +34,17 @@ by `index.html` which has some JS/CSS to make the story styling consistent and r 3. **View the story.** Open `index.html` in your browser to view the generated story. + +4. (optional) **Generate a new story.** + + To generate another story, you'll first need to delete the existing `pages` directory. In the `examples/story-book` directory, run the following command: + + ```shell + rm -rf pages + ``` + + After that, you can generate a new story by running the `story-book.gpt` script again with a different prompt or number of pages. + + ```shell + gptscript story-book.gpt --prompt "The Three Little Pigs" --pages 5 + ``` \ No newline at end of file