Skip to content
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

Docs: update outdated guide to make code open by default #26872

Merged
merged 4 commits into from May 14, 2024

Commits on Apr 18, 2024

  1. docs: update outdated guide to make code open by default

    For storybook 7 or higher, the code below does not work.
    
    ```js
    export const parameters = {
      docs: {
        source: {
          state: 'open',
        },
      },
    };
    ```
    
    It should be fixed like below:
    
    ```js
    export const parameters = {
      docs: {
        canvas: {
          sourceState: 'shown'
        }
      }
    };
    ```
    
    However, this document seems not changed so far. So I updated it.
    
    ## References:
    
    - https://storybook.js.org/docs/api/doc-block-canvas#sourcestate
    - storybookjs#10430
    abiriadev committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    942579a View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Configuration menu
    Copy the full SHA
    e540371 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a71ed44 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eafbe7e View commit details
    Browse the repository at this point in the history