Skip to content

Authoring Workflow ​

This is the standard workflow for creating a story in scrollytale-starter.

1. Clone the Starter ​

bash
git clone https://github.com/SonghaiFan/scrollytale-starter.git
cd scrollytale-starter

2. Add Data ​

Place your CSV files in public/data/.

Example:

text
public/data/housing-gap.csv

Use simple filenames and keep them stable once referenced in story.md.

3. Edit story.md ​

story.md is the source of truth for the page.

You will usually change:

  • story title
  • data names and paths
  • section frontmatter
  • section order
  • section copy
  • chart fields such as chart, data, x, and y
  • section layout choices

4. Run the Project ​

bash
npm install
npm run dev

Then open the local Vite URL, usually:

  • http://localhost:5173
  • http://localhost:5173/authoring for the authoring UI

5. Validate Before Sharing ​

bash
npm run build

If the build passes, the story is structurally valid enough for the current starter runtime.

Recommended Story Shape ​

For v0, prefer:

  1. one hero opening
  2. two to four analytical sections
  3. one closing section

Good default section count:

  • 4 to 6 sections
  • Use bar for ranking or category comparison
  • Use line for change over time
  • Use unit for row-level presence or categorical grouping
  • Use html when you want a placeholder container or custom embedded content

What to Change First ​

If you are making a new story, start in this order:

  1. update the top frontmatter in story.md
  2. define or revise section frontmatter blocks
  3. replace section copy and headings
  4. update chart, data, x, y, series, or color
  5. update ::step blocks for scrolly sections
  6. optionally refine src/styles/custom.css

What Not to Change by Default ​

Do not change runtime files unless you need a new feature:

  • src/runtime/*
  • src/layouts/*
  • src/visualizations/*

For many stories, editing only story.md and adding a CSV is enough.

Built with VitePress for humans and AI agents.