-
-
Notifications
You must be signed in to change notification settings - Fork 570
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
Components documentation improvements #2121
Conversation
|
This comment was marked as outdated.
This comment was marked as outdated.
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
Updated the pull request, here is a summary of the changes:
|
* main: (121 commits) i18n(zh-cn): Update components.mdx (withastro#2240) i18n(zh-cn): Update frontmatter.mdx (withastro#2239) i18n(zh-cn): Update pages.mdx (withastro#2238) i18n(zh-cn): Add synced tabs persistence (withastro#2236) Update examples index hero button action variants (withastro#2234) i18n(fr): update `guides/components` (withastro#2232) i18n(fr): update `guides/pages` (withastro#2224) [i18nIgnore] docs: update `index.mdx` hero action buttons variants (withastro#2233) i18n(fr): update `reference/frontmatter` (withastro#2223) i18n(fr): update `index` (withastro#2222) docs: add Cloudflare Docs to showcase (withastro#2221) i18n(ko-KR): update `pages.mdx` (withastro#2227) i18n(ko-KR): update `components.mdx` (withastro#2225) i18n(ko-KR): update `fontmatter.md` (withastro#2231) i18n(ko-KR): update `manual-setup.mdx` (withastro#2230) [ci] format i18n(ko-KR): update `index.mdx` (withastro#2229) i18n(ko-KR): update `site-search.mdx` (withastro#2228) i18n(ko-KR): update `customization.mdx` (withastro#2226) i18n(fr): add missing `syncKey` to various pages (withastro#2218) ...
In anticipation of #2249, I updated the PR with Markdoc support:
|
* main: (37 commits) [ci] format i18n(ko-KR): update `manual-setup.mdx` (withastro#2294) i18n(ko-KR): update `configuration.mdx` (withastro#2295) [ci] release (withastro#2292) Add support for SSR (withastro#1255) Add Markdoc preset and example (withastro#2249) Refactor sidebar persistence logic for better slow device performance (withastro#2242) [ci] format Add docs.ryzekit.com to showcase (withastro#2291) Update astro dependency to 4.15.3 across monorepo (withastro#2289) [ci] release (withastro#2290) Prevent Zod errors from crashing build (withastro#2288) i18n(fr): update `guides/css-and-tailwind` (withastro#2286) i18n(ko-KR): update `css-and-tailwind.mdx` (withastro#2284) Add WCAG AAA colour contrast option to theme editor (withastro#2282) [ci] release (withastro#2283) Parse `<StarlightPage />` frontmatter asynchronously (withastro#2279) Ensure unhandled directives are restored without any extra whitespace (withastro#2281) i18n(fr): update `resources/plugins` (withastro#2278) i18n(ko-KR): update `plugins.mdx` (withastro#2277) ...
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work on this @HiDeoo! From the nice new preview pane design to the careful work structuring these pages in a consistent way that is flexible across all the different components we have, this is lightyears ahead of where we were. Stellar work 💖
Description
This PR is a follow-up of #1938 to improve the components documentation and move away from the single page currently used.
This pull request is a draft as it only includes a global component guide and the new references for the
<Tabs>
and<Badge>
components. The idea is to first get feedback on the new format, discuss remaining questions and then continue with the rest of the components once the format is agreed upon.The
<Badge>
page was chosen as it's relatively simple and small while the<Tabs>
page was chosen as it's a more complex one which involves 2 components.To give a brief overview of some of the changes per page:
Global Components Guide
ComponentProps
to address Export Component type to user #2010.Component References
The global structure is as follows:
Some other notes:
and vice versa(decided that it was not useful after discussing this).required
tag is not included in the title (this allows for switching languages without losing position compared to the other reference pages).Remaining tasks
i18next
for UI strings and add newinjectTranslations
plugin callback #1923 to be merged/guides/components/
)