Skip to content

Adding all samples for badges in sidebar as example#2881

Merged
delucis merged 14 commits intowithastro:mainfrom
mseibert:patch-1
Feb 18, 2025
Merged

Adding all samples for badges in sidebar as example#2881
delucis merged 14 commits intowithastro:mainfrom
mseibert:patch-1

Conversation

@mseibert
Copy link
Copy Markdown
Contributor

@mseibert mseibert commented Feb 15, 2025

Description

  • With this PR all types of badges will be shown directly in the docs which is important to help people chose the right one for their use case.
  • The current status quo is less verbose. But it puts the work on the reader to try out every badge type to see and test it. That is cumbersome, takes time and unnecessary.
  • The visual appeal of the badges should be visible directly.

Deeplink: https://deploy-preview-2881--astro-starlight.netlify.app/guides/sidebar/#badge-variants-and-custom-styling

image

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 15, 2025

⚠️ No Changeset found

Latest commit: 21ce126

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the 📚 docs Documentation website changes label Feb 15, 2025
@astrobot-houston
Copy link
Copy Markdown
Contributor

Hello! Thank you for opening your first PR to Starlight! ✨

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any issues you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. In a few minutes, you’ll be able to see a preview of your changes on Netlify 🤩

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

@astrobot-houston
Copy link
Copy Markdown
Contributor

astrobot-houston commented Feb 15, 2025

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale File Note
en guides/sidebar.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 15, 2025

Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit 21ce126
🔍 Latest deploy log https://app.netlify.com/sites/astro-starlight/deploys/67b3b8fc78f1e30008e19d28
😎 Deploy Preview https://deploy-preview-2881--astro-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@mseibert mseibert changed the title Adding all samples for badges as example Adding all samples for badges in sidebar as example Feb 15, 2025
@trueberryless
Copy link
Copy Markdown
Contributor

Hello and welcome to the Starlight project!

Thank you for taking the time to create such a detailed Pull Request!

I'm not one of the maintainers, but I generally think that they want to keep the documentation as simple as possible. Looking at the differences between the current documentation and this request, I think that we can agree that your request takes up more space then the current docs:

Current documentation Your request
image image

In my opinion this is not necessary because if the reader wants to look at all the different Badges, they can just go to the Badges page and under the Usage section, they can see all the Badges available: https://deploy-preview-2881--astro-starlight.netlify.app/components/badges/#usage

image

So personally, I think that it is not necessary to list all the Badge variantes on the Sidebar Navigation page, because there is already an exclusive page for all the props and things regarding Badges. Moreover, I really think that the documentation should not be too bloated and more subtle and discreet. I really like the section as it is (just my thoughts).

One last thing to notice:

I think if you make a docs change in the Starlight repository, you don't need to include a changeset because the website is deployed by Netlify. As far as I know, you just need to include a changeset if a change somewhere inside the package folder is happening.

@mseibert
Copy link
Copy Markdown
Contributor Author

In my opinion this is not necessary because if the reader wants to look at all the different Badges, they can just go to the Badges page and under the Usage section, they can see all the Badges available: https://deploy-preview-2881--astro-starlight.netlify.app/components/badges/#usage

Touché, I did not see this other page. Maybe we could agree that a link to this other section could be useful?

See how to use all the different variants, different sizes, and custumizations in the "Usage" section of the Badge component.

That would have helped me not come up with this suggestion here. Or even leaner:

Learn more about using and customizing badges.

What do you think?

@trueberryless
Copy link
Copy Markdown
Contributor

trueberryless commented Feb 16, 2025

I agree that a link could not hurt anyone, I like both examples, maybe a combination of the things I like from both:

Learn more about using and customizing badges.

(Not the entire sentence is a link + its lean as you said)

Now it's up to the maintainers to decide... ⌛ In the meantime you could adjust the changes, remove the changeset and edit the title and description if you want... Or you wait until one of the maintainers says what would be best... As you like!

@mseibert
Copy link
Copy Markdown
Contributor Author

In the meantime you could adjust the changes, remove the changeset and edit the title and description if you want...

Will do.

@mseibert
Copy link
Copy Markdown
Contributor Author

Back to start and added link at right point:

image

@mseibert
Copy link
Copy Markdown
Contributor Author

I think if you make a docs change in the Starlight repository, you don't need to include a changeset because the website is deployed by Netlify. As far as I know, you just need to include a changeset if a change somewhere inside the package folder is happening.

Erased changeset.

Co-authored-by: trueberryless <99918022+trueberryless@users.noreply.github.com>
@mseibert
Copy link
Copy Markdown
Contributor Author

@trueberryless Good catch. Sorry for missing that.

Copy link
Copy Markdown
Contributor

@SnowDingo SnowDingo left a comment

Choose a reason for hiding this comment

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

Thank you @mseibert for your contribution!

I agree with your latest changes, and I think the addition of the link makes the documentation more concise and also user-friendly.
Because I am not a Starlight maintainer, I can't merge this but I would approve this PR.

Thank you!!
SnowDingo

@trueberryless
Copy link
Copy Markdown
Contributor

@trueberryless Good catch. Sorry for missing that.

No problem, looks good to me now! 🎉

Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution @mseibert and thanks everyone for reviewing this — I think it ended up in a great spot 🙌

@delucis delucis merged commit 8039167 into withastro:main Feb 18, 2025
9 checks passed
ArmandPhilippot added a commit to ArmandPhilippot/starlight that referenced this pull request Feb 18, 2025
ArmandPhilippot added a commit that referenced this pull request Feb 19, 2025
HiDeoo added a commit to HiDeoo/starlight that referenced this pull request Feb 19, 2025
* main: (493 commits)
  i18n(de): update `sidebar.mdx` (withastro#2900)
  Adding all samples for badges in sidebar as example (withastro#2881)
  i18n(fr): fix highlighting in `reference/plugins.md` (withastro#2898)
  i18n(fr): update `reference/plugins` & `guides/i18n` (withastro#2886)
  i18n(fr): update `reference/overrides` & `guides/sidebar` (withastro#2887)
  i18n(fr): add `guides/route-data` and `reference/route-data` (withastro#2884)
  i18n(fr): update `guides/overriding-components` (withastro#2885)
  i18n(fr): update `reference/configuration` (withastro#2888)
  i18n(de): update German translation with withastro#2578 (withastro#2882)
  [ci] format
  i18n(ru): update some translations (withastro#2895)
  i18n(de): update `reference/configuration.mdx` (withastro#2883)
  [ci] format
  i18n(ko-KR): update `configuration.mdx` (withastro#2892)
  i18n(ko-KR): update `overrides.md` (withastro#2893)
  i18n(ko-KR): update `overriding-components.mdx` (withastro#2890)
  i18n(ko-KR): update `i18n.mdx` and `plugins.md` (withastro#2889)
  [ci] format
  i18n(ko-KR): create `guides/route-data.mdx` and `reference/route-data.mdx` (withastro#2896)
  i18n(ko-KR): update `/resources/plugins.mdx` (withastro#2894)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 docs Documentation website changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants