docs: rewrite guides/sidebar examples to be more generic#1751
docs: rewrite guides/sidebar examples to be more generic#1751HiDeoo merged 4 commits intowithastro:mainfrom
guides/sidebar examples to be more generic#1751Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| label: 'Constellations', | ||
| translations: { | ||
| 'pt-BR': 'Guias', | ||
| 'pt-BR': 'Constelação', |
There was a problem hiding this comment.
| label: 'Andromeda', | ||
| translations: { | ||
| 'pt-BR': 'Componentes', | ||
| 'pt-BR': 'Andrômeda', |
There was a problem hiding this comment.
| label: 'Scorpius', | ||
| translations: { | ||
| 'pt-BR': 'Internacionalização (i18n)', | ||
| 'pt-BR': 'Escorpião', |
There was a problem hiding this comment.
Reference: https://pt.wikipedia.org/wiki/Scorpius
|
delucis
left a comment
There was a problem hiding this comment.
This is absolutely fantastic — thank you @HiDeoo!
I wonder if @Fryuni or @yanthomasdev are available to confirm the Portuguese snippet: https://starlight-git-fork-hideoo-hd-docs-refactor-601622-astrodotbuild.vercel.app/guides/sidebar/#internationalization
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
* main: docs: rewrite `guides/sidebar` examples to be more generic (withastro#1751) i18n(ja): Update community-content.mdx (withastro#1756) i18n(ja): Update configuration.mdx (withastro#1755) i18n(zh-cn): Update `configuration.mdx` (withastro#1753) i18n(ko-KR): update `configuration.mdx` (withastro#1752)
* main: (32 commits) i18n(pt-br): Update `getting-started.mdx` (withastro#1776) i18n(es): update `configuration` (withastro#1766) [ci] format Add TrueCharts to showcases (withastro#1773) i18n(zh-cn): Update `sidebar.mdx` (withastro#1761) i18n(ko-KR): update `sidebar.mdx` (withastro#1760) i18n(fr): update `guides/sidebar` (withastro#1758) test: fix Windows path separator test issues (withastro#1759) i18n(fr): Update `reference/configuration.mdx` from withastro#1729 (withastro#1757) docs: rewrite `guides/sidebar` examples to be more generic (withastro#1751) i18n(ja): Update community-content.mdx (withastro#1756) i18n(ja): Update configuration.mdx (withastro#1755) i18n(zh-cn): Update `configuration.mdx` (withastro#1753) i18n(ko-KR): update `configuration.mdx` (withastro#1752) docs: add caution about scripts processing when using head config (withastro#1729) i18n(es): update `community-content` (withastro#1740) i18n(pt-br): Update `resources/community-content.mdx` (withastro#1747) format: quick fix [ci] format [ci] format ...
What kind of changes does this PR include?
Description
While working #1750, I realized that the "Sidebar Navigation" guide was present in a lot of search results for unrelated queries (and will be even more after the
pagefindv1.1.0 update). This is because the sidebar examples embedded in the guide are re-using the Starlight documentation site's sidebar making it appear in search results for queries like "component", "CSS", etc.This pull request rewrites the guide examples to be more generic and use constellations/stars/moons instead that are being used in other guides.
#scroll to the top of the page and others solutions involve JS)