Skip to content

docs: update story-book readme to have a reset step #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```