Skip to content

Commit

Permalink
Merge branch 'main' into hd-style-details
Browse files Browse the repository at this point in the history
* 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
  ...
  • Loading branch information
HiDeoo committed Apr 22, 2024
2 parents 1a5d2e1 + 6ed9819 commit ade0395
Show file tree
Hide file tree
Showing 34 changed files with 779 additions and 698 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-vans-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Refactors `<ThemeSelect>` custom element logic to improve performance
5 changes: 5 additions & 0 deletions .changeset/swift-files-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Fixes responding to system color scheme changes when theme is `auto`
Binary file added docs/src/assets/showcase/truecharts.org.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/src/components/showcase-sites.astro
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,5 @@ import FluidGrid from './fluid-grid.astro';
href="https://docs.fontawesome.com/"
thumbnail="docs.fontawesome.com.png"
/>
<Card title="TrueCharts" href="https://truecharts.org/" thumbnail="truecharts.org.png" />
</FluidGrid>
5 changes: 4 additions & 1 deletion docs/src/components/sidebar-preview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ function makeEntries(items: SidebarConfig): SidebarEntry[] {
return {
type: 'link',
label: item.label,
href: item.link,
// Empty hrefs are used to represent internal links that do not exist in the Starlight
// docs. Using a non-existing anchor link like `#_` will not trigger a page reload or any
// scrolling.
href: item.link.length > 0 ? item.link : '#_',
isCurrent: false,
badge: item.badge,
attrs: item.attrs ?? {},
Expand Down
27 changes: 15 additions & 12 deletions docs/src/content/docs/es/reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ starlight({
});
```

Las entradas en el `head` son convertidas directamente a elementos HTML y no pasan por el [procesamiento de script](https://docs.astro.build/es/guides/client-side-scripts/#procesamiento-de-scripts) o [estilo](https://docs.astro.build/es/guides/styling/#estilando-en-astro) de Astro.
Si necesitas importar activos locales como scripts, estilos o im谩genes, [anula el componente Head](/es/guides/overriding-components/#reusa-un-componente-integrado).

#### `HeadConfig`

```ts
Expand Down Expand Up @@ -489,18 +492,18 @@ Si necesitas establecer variantes adicionales o favicons de respaldo, puedes agr

```js
starlight({
favicon: '/images/favicon.svg'.
head: [
// Agregar un favicon ICO de respaldo para Safari.
{
tag: 'link',
attrs: {
rel: 'icon',
href:'/images/favicon.ico',
sizes: '32x32',
},
},
],
favicon: '/images/favicon.svg',
head: [
// Agregar un favicon ICO de respaldo para Safari.
{
tag: 'link',
attrs: {
rel: 'icon',
href: '/images/favicon.ico',
sizes: '32x32',
},
},
],
});
```

Expand Down
5 changes: 5 additions & 0 deletions docs/src/content/docs/es/resources/community-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ Explora contenido producido por la comunidad mantenido por usuarios de Starlight
title="Publicaci贸n de documentaci贸n con Astro Starlight"
description="Comenzando con la documentaci贸n de Starlight."
/>
<LinkCard
href="https://events-3bg.pages.dev/jotter/starlight/guide/"
title="Habilita View Transitions"
description="Consigue esa apariencia SPA con el soporte de View Transitions de Bag of Tricks"
/>

</CardGrid>

Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/es/resources/showcase.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar:

:::tip[隆Agrega el tuyo!]
驴Has construido un sitio de Starlight o una herramienta para Starlight?
隆Abre una PR agregando un enlace a esta p谩gina!
[Abre una PR](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md#showcase) agregando un enlace a esta p谩gina!
:::

## Sitios
Expand Down

0 comments on commit ade0395

Please sign in to comment.