Skip to content

Commit

Permalink
Merge pull request #120 from tylerslaton/reset-story-book
Browse files Browse the repository at this point in the history
docs: update story-book readme to have a reset step
  • Loading branch information
tylerslaton authored Mar 6, 2024
2 parents a3cbe20 + 9237e27 commit ecd4f4d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/story-book/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit ecd4f4d

Please sign in to comment.