Skip to content

Running / viewing stories #4396

Answered by e111077
techanvil asked this question in Q&A
Jun 5, 2023 · 4 comments · 5 replies
Discussion options

You must be logged in to vote

Heya glad to hear your interest in our stories.

The TL;DR

If it's not on the in-progress docs site or you want to mess around with the live build of the components:

  1. Clone the repo
  2. npm ci
  3. cd into the catalog directory
  4. If the docs for the component do not yet exist:
    1. Create a markdown file in /docs/components/<componentname>.md
    2. Add the header to the page:
    ---
    name: Visual Name to Appear on Sidebar (e.g. Text Fields)
    dirname: <directory name of the component e.g. textfield>
    ---
    1. Add this macro to the page to render the playground w/ stories
    {% playgroundexample dirname=dirname %}
    <!-- optional preview height and editor height args -->
    {% playgroundexample dirname=dirname, previewHeight=400, 

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by e111077
Comment options

You must be logged in to vote
5 replies
@e111077
Comment options

@techanvil
Comment options

@Aamir333
Comment options

@e111077
Comment options

@techanvil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants