Skip to content

Commit 6ebbc92

Browse files
authored
Merge pull request #12 from dallay/fix/docs-404-links-3929495371038838219
2 parents 973641c + e0434c5 commit 6ebbc92

7 files changed

Lines changed: 16 additions & 15 deletions

File tree

docs/website/src/content/docs/en/404.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hero:
1111
icon: right-arrow
1212
variant: primary
1313
- text: View Documentation
14-
link: guides/getting-started/
14+
link: ../guides/getting-started/
1515
icon: open-book
1616
variant: minimal
1717
---

docs/website/src/content/docs/en/guides/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ make test
4343

4444
## Next Steps
4545

46-
- Explore the [Project Structure](./structure/) to understand how files are organized.
47-
- Check the [Features Checklist](./features/) for available functionalities.
48-
- Learn about standard [Development Procedures](./development/).
46+
- Explore the [Project Structure](../structure/) to understand how files are organized.
47+
- Check the [Features Checklist](../features/) for available functionalities.
48+
- Learn about standard [Development Procedures](../development/).

docs/website/src/content/docs/en/guides/release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This guide explains how to publish releases and snapshots to Maven Central using
88

99
Before you can publish, ensure you have:
1010

11-
1. **GPG Key configured**: Follow the [GPG Setup Guide](gpg-setup) to create and configure your signing key
11+
1. **GPG Key configured**: Follow the [GPG Setup Guide](../gpg-setup/) to create and configure your signing key
1212
2. **Maven Central access**: Repository secrets configured:
1313
- `SIGNING_IN_MEMORY_KEY`: Your GPG private key
1414
- `SIGNING_IN_MEMORY_KEY_PASSWORD`: GPG key passphrase
@@ -127,6 +127,6 @@ Use this checklist before publishing:
127127

128128
## See Also
129129

130-
- [GPG Setup Guide](gpg-setup)
130+
- [GPG Setup Guide](../gpg-setup/)
131131
- [GitHub Workflows](https://github.com/dallay/starter-gradle/blob/main/.github/workflows/README.md)
132132
- [Contributing Guide](https://github.com/dallay/starter-gradle/blob/main/.github/CONTRIBUTING.md)

docs/website/src/content/docs/es/404.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hero:
1111
icon: right-arrow
1212
variant: primary
1313
- text: Ver Documentación
14-
link: guides/getting-started/
14+
link: ../guides/getting-started/
1515
icon: open-book
1616
variant: minimal
1717
---

docs/website/src/content/docs/es/guides/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ make test
4848

4949
## Siguientes Pasos
5050

51-
- Explora la [Estructura del Proyecto](./structure/) para entender cómo están organizados los archivos.
52-
- Consulta la [Lista de Funcionalidades](./features/) para conocer las capacidades disponibles.
53-
- Aprende sobre los [Procedimientos de Desarrollo](./development/) estándar.
51+
- Explora la [Estructura del Proyecto](../structure/) para entender cómo están organizados los archivos.
52+
- Consulta la [Lista de Funcionalidades](../features/) para conocer las capacidades disponibles.
53+
- Aprende sobre los [Procedimientos de Desarrollo](../development/) estándar.

docs/website/src/content/docs/es/guides/release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Esta guía explica cómo publicar releases y snapshots en Maven Central usando G
88

99
Antes de poder publicar, asegúrate de tener:
1010

11-
1. **Clave GPG configurada**: Sigue la [Guía de Configuración GPG](gpg-setup) para crear y configurar tu clave de firma
11+
1. **Clave GPG configurada**: Sigue la [Guía de Configuración GPG](../gpg-setup/) para crear y configurar tu clave de firma
1212
2. **Acceso a Maven Central**: Secrets del repositorio configurados:
1313
- `SIGNING_IN_MEMORY_KEY`: Tu clave privada GPG
1414
- `SIGNING_IN_MEMORY_KEY_PASSWORD`: Contraseña de la clave GPG
@@ -127,6 +127,6 @@ Usa este checklist antes de publicar:
127127

128128
## Ver También
129129

130-
- [Guía de Configuración GPG](gpg-setup)
130+
- [Guía de Configuración GPG](../gpg-setup/)
131131
- [GitHub Workflows](https://github.com/dallay/starter-gradle/blob/main/.github/workflows/README.md)
132132
- [Guía de Contribución](https://github.com/dallay/starter-gradle/blob/main/.github/CONTRIBUTING.md)

docs/website/src/pages/404.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro'
33
import { Icon } from '@astrojs/starlight/components'
44
55
const baseUrl = import.meta.env.BASE_URL
6+
const normalizedBaseUrl = baseUrl.endsWith('/') ? baseUrl : baseUrl + '/'
67
78
// Detect locale from pathname (e.g., /starter-gradle/es/...)
89
const pathname = Astro.url.pathname
@@ -40,7 +41,7 @@ const labels = t[locale]
4041
<p class="tagline">{labels.tagline}</p>
4142

4243
<div class="actions">
43-
<a href={`${baseUrl}${locale}/`} class="primary-button">
44+
<a href={`${normalizedBaseUrl}${locale}/`} class="primary-button">
4445
<Icon name="right-arrow" />
4546
<span>{labels.home}</span>
4647
</a>
@@ -51,11 +52,11 @@ const labels = t[locale]
5152
</div>
5253

5354
<div class="links-grid">
54-
<a href={`${baseUrl}${locale}/guides/getting-started/`} class="link-card">
55+
<a href={`${normalizedBaseUrl}${locale}/guides/getting-started/`} class="link-card">
5556
<Icon name="rocket" />
5657
<span>{labels.gettingStarted}</span>
5758
</a>
58-
<a href={`${baseUrl}${locale}/guides/structure/`} class="link-card">
59+
<a href={`${normalizedBaseUrl}${locale}/guides/structure/`} class="link-card">
5960
<Icon name="puzzle" />
6061
<span>{labels.structure}</span>
6162
</a>

0 commit comments

Comments
 (0)