Skip to content

fix: point demo card links to valid storybook stories - #919

Merged
davidhu2000 merged 1 commit into
davidhu2000:mainfrom
anth0nycodes:anthony/fix-storybook-card-links
Sep 28, 2026
Merged

davidhu2000 merged 1 commit into
davidhu2000:mainfrom
anth0nycodes:anthony/fix-storybook-card-links

Conversation

@anth0nycodes

@anth0nycodes anth0nycodes commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What changes are introduced?

The loader name links on the demo page pointed to storybook?path=/docs/<name>--docs, which doesn't resolve. No docs pages exist: the stories come from scripts/stories.template, which exports only Primary and has no autodocs tag.

The links now go to storybook/?path=/story/<name>--primary, which matches the live Storybook URLs (e.g. https://www.davidhu.io/react-spinners/storybook/?path=/story/clockloader--primary).

  • vite.config.mjs: fix the link in the static loader cards generated into index.html
  • examples/components/SpinnerCard.tsx: fix the link in the React-rendered cards

Any screenshots?

before link: https://www.davidhu.io/react-spinners/storybook?path=/docs/circleloader--docs

image

after link: https://www.davidhu.io/react-spinners/storybook/?path=/story/circleloader--primary

image

@davidhu2000
davidhu2000 merged commit 4f96c31 into davidhu2000:main Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants