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: Add details for React version used by addon-docs #25550

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

kylegach
Copy link
Contributor

What I did

  • Add details about React version for addon-docs
  • Fix formatting of "Learn more" sections
    • Use bold text instead of heading
      • The correct heading level is often h2, which is much more attention grabbing than we want
      • Using a better heading level size, h4, is often incorrect, semantically
        • h4's styles are just bold normal text
      • There's no value in having these headings in the "On this page" TOCs, because it's just duplicating what's in the sidebar navigation

Checklist for Contributors

Testing

Manual testing

  1. Follow the steps in the contributing instructions for this branch, docs-no-react-peer-for-addon-docs

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/src/sandbox-templates.ts

  • 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 canary-release-pr.yml --field pr=<PR_NUMBER>

@kylegach kylegach added documentation ci:docs Run the CI jobs for documentation checks only. labels Jan 10, 2024
@kylegach kylegach self-assigned this Jan 10, 2024
Copy link
Contributor

@jonniebigodes jonniebigodes left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this @kylegach. Appreciate it. I'm going to approve this to unblock you, as I only have one question regarding this pull request.

docs/writing-docs/build-documentation.md Show resolved Hide resolved
docs/writing-docs/mdx.md Outdated Show resolved Hide resolved
@kylegach kylegach force-pushed the docs-no-react-peer-for-addon-docs branch from 85a2a0b to e705dfa Compare January 11, 2024 15:52
@@ -459,7 +459,16 @@ If you're still encountering issues, we recommend reaching out to the community

If you turned off inline rendering for your stories via the [`inline`](../api/doc-block-story.md#inline) configuration option, you would run into a situation where the associated controls are not updating the story within the documentation page. This is a known limitation of the current implementation and will be addressed in a future release.

#### Learn more about Storybook documentation
### The React version used is unexpected
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JReinhold — Does this look like sufficient documentation?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@JReinhold JReinhold left a comment

Choose a reason for hiding this comment

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

This is perfect!

@@ -459,7 +459,16 @@ If you're still encountering issues, we recommend reaching out to the community

If you turned off inline rendering for your stories via the [`inline`](../api/doc-block-story.md#inline) configuration option, you would run into a situation where the associated controls are not updating the story within the documentation page. This is a known limitation of the current implementation and will be addressed in a future release.

#### Learn more about Storybook documentation
### The React version used is unexpected
Copy link
Contributor

Choose a reason for hiding this comment

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

- Use bold text instead of heading
    - The correct heading level is often h2, which is much more attention grabbing than we want
    - Using a better heading level size, h4, is often incorrect, semantically
        - h4's styles are just bold normal text
    - There's no value in having these headings in the "On this page" TOCs, because it's just duplicating what's in the sidebar navigation
@kylegach kylegach force-pushed the docs-no-react-peer-for-addon-docs branch from e705dfa to 4267381 Compare January 18, 2024 20:25
@kylegach kylegach merged commit 56cf5f3 into next Jan 18, 2024
18 checks passed
@kylegach kylegach deleted the docs-no-react-peer-for-addon-docs branch January 18, 2024 20:28
@github-actions github-actions bot mentioned this pull request Jan 18, 2024
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:docs Run the CI jobs for documentation checks only. documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants