Skip to content

Docs: Remove duplicate addonDocs import used in autodocs documentation - #36056

Merged
jonniebigodes merged 3 commits into
storybookjs:nextfrom
mikareich:patch-2
Aug 31, 2026
Merged

jonniebigodes merged 3 commits into
storybookjs:nextfrom
mikareich:patch-2

Conversation

@mikareich

@mikareich mikareich commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Removed duplicate import statement for addonDocs in the preview configuration.

What I did

I noticed a duplicate import statement in the documentation:

import addonDocs from '@storybook/addon-docs';
import addonDocs from '@storybook/addon-docs';

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

Caution

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

I am pretty sure this doesnt require manual testing since I literally just removed one duplicate line in an example snippet in the documentation. If this breaks things then there is a bigger issue then this commit lol...

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/src/sandbox-templates.ts

  • Declare whether manual QA will be needed for this PR during the next release, through qa:needed or qa:skip

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook publish.yml --field pr=<PR_NUMBER>

Removed duplicate import statement for addonDocs in the preview configuration.
@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 90b5c9da-b814-4328-849f-cd58bfa76451

📥 Commits

Reviewing files that changed from the base of the PR and between 29a4df8 and f3f13f0.

📒 Files selected for processing (1)
  • docs/_snippets/tags-autodocs-in-preview.md
💤 Files with no reviewable changes (1)
  • docs/_snippets/tags-autodocs-in-preview.md

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


Walkthrough

The change removes one blank line from the React CSF Next preview documentation snippet. No functional or semantic content changes.

Changes

Cohort / File(s) Summary
Documentation formatting
docs/_snippets/tags-autodocs-in-preview.md
Removes a blank line after the addonDocs import in the TypeScript example.

Merge Risk: ⚪ Minimal · up to f3f13

This change only removes a duplicate import from a documentation example and introduces no actionable merge-blocking risk.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

Comment @coderabbitai help to get the list of available commands.

@jonniebigodes jonniebigodes self-assigned this Aug 26, 2026
@jonniebigodes jonniebigodes added documentation ci:docs Run the CI jobs for documentation checks only. labels Aug 26, 2026

@jonniebigodes jonniebigodes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikareich, thanks for taking the time to put together this pull request and helping us improve the documentation by catching this small but important typo in the examples. We appreciate it.

I've checked it and will be more than glad to get this in once the checklist clears.

Hope you have a great day.

Stay safe

@jonniebigodes jonniebigodes changed the title fix: remove duplicate addonDocs import in preview.tsx Docs: remove duplicate addonDocs import in preview.tsx Aug 26, 2026
@jonniebigodes jonniebigodes added the qa:skip Pull Requests that do not need any QA. (e.g. documentation) label Aug 26, 2026
@jonniebigodes jonniebigodes changed the title Docs: remove duplicate addonDocs import in preview.tsx Docs: Remove duplicate addonDocs import used in autodocs documentation Aug 26, 2026
@valentinpalkovic valentinpalkovic added the sev:S4 Low priority. Wait for community PRs. label Aug 27, 2026
@jonniebigodes
jonniebigodes merged commit 9a802b5 into storybookjs:next Aug 31, 2026
14 checks passed
@github-actions github-actions Bot mentioned this pull request Sep 1, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-scan:human ci:docs Run the CI jobs for documentation checks only. documentation qa:skip Pull Requests that do not need any QA. (e.g. documentation) sev:S4 Low priority. Wait for community PRs.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants