Skip to content

Commit f84de8e

Browse files
authored
Merge pull request #3 from trueberryless/docs/fix-links
docs: fix all links
2 parents d2920ce + 9e69a4a commit f84de8e

File tree

8 files changed

+108
-11
lines changed

8 files changed

+108
-11
lines changed

docs/astro.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import starlight from '@astrojs/starlight'
22
import { defineConfig } from 'astro/config'
33
import starlightTelescope from 'starlight-telescope'
4+
import starlightLinksValidator from 'starlight-links-validator'
45

56
export default defineConfig({
67
site: 'https://frostybee.github.io',
@@ -23,7 +24,13 @@ export default defineConfig({
2324
editLink: {
2425
baseUrl: 'https://github.com/frostybee/starlight-telescope/edit/main/docs/',
2526
},
26-
plugins: [starlightTelescope()],
27+
plugins: [
28+
starlightTelescope(),
29+
starlightLinksValidator({
30+
errorOnFallbackPages: false,
31+
errorOnInconsistentLocale: true
32+
})
33+
],
2734
sidebar: [
2835
{
2936
label: 'Start Here',

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@astrojs/starlight": "^0.37.4",
1717
"astro": "^5.16.15",
1818
"sharp": "^0.34.5",
19+
"starlight-links-validator": "^0.19.2",
1920
"starlight-telescope": "workspace:*"
2021
},
2122
"engines": {

docs/src/content/docs/configuration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ theme: {
172172
}
173173
```
174174

175-
See the [Styling Guide](/guides/styling/) for more theming options.
175+
See the [Styling Guide](/starlight-telescope/guides/styling/) for more theming options.
176176

177177
## Complete Example
178178

docs/src/content/docs/getting-started.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ starlightTelescope({
100100
## Next Steps
101101

102102
<CardGrid>
103-
<LinkCard title="Configuration" href="/configuration/" description="All configuration options" />
104-
<LinkCard title="Keyboard Shortcuts" href="/guides/keyboard-shortcuts/" description="Customize shortcuts" />
105-
<LinkCard title="Features" href="/guides/features/" description="Search, pins, and recent pages" />
106-
<LinkCard title="Styling Guide" href="/guides/styling/" description="Theme customization" />
103+
<LinkCard title="Configuration" href="/starlight-telescope/configuration/" description="All configuration options" />
104+
<LinkCard title="Keyboard Shortcuts" href="/starlight-telescope/guides/keyboard-shortcuts/" description="Customize shortcuts" />
105+
<LinkCard title="Features" href="/starlight-telescope/guides/features/" description="Search, pins, and recent pages" />
106+
<LinkCard title="Styling Guide" href="/starlight-telescope/guides/styling/" description="Theme customization" />
107107
</CardGrid>

docs/src/content/docs/guides/features.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The `threshold` option (0.0–1.0) controls match strictness. Lower values requi
2525
- `0.3`: Minor typos allowed (default)
2626
- `0.6+`: Lenient matching
2727

28-
Other options include `distance`, `ignoreLocation`, and `keys`. See [Configuration → fuseOptions](/configuration/#fuseoptions) for details.
28+
Other options include `distance`, `ignoreLocation`, and `keys`. See [Configuration → fuseOptions](/starlight-telescope/configuration/#fuseoptions) for details.
2929

3030
### Performance
3131

@@ -83,10 +83,10 @@ Stored in `localStorage` under `telescope_recentPages`. Click **Clear** to remov
8383

8484
### Configuration
8585

86-
Set `recentPagesCount` to control how many pages are shown (0–20). Set to `0` to disable. See [Configuration → recentPagesCount](/configuration/#recentpagescount).
86+
Set `recentPagesCount` to control how many pages are shown (0–20). Set to `0` to disable. See [Configuration → recentPagesCount](/starlight-telescope/configuration/#recentpagescount).
8787

8888
---
8989

9090
## Locale Behavior
9191

92-
Both pinned and recent pages are locale-aware. Pages saved in English only appear when viewing English docs. See [Internationalization](/guides/internationalization/) for details.
92+
Both pinned and recent pages are locale-aware. Pages saved in English only appear when viewing English docs. See [Internationalization](/starlight-telescope/guides/internationalization/) for details.

docs/src/content/docs/guides/keyboard-shortcuts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ starlightTelescope({
2525
})
2626
```
2727

28-
See [Configuration → shortcut](/configuration/#shortcut) for all options.
28+
See [Configuration → shortcut](/starlight-telescope/configuration/#shortcut) for all options.
2929

3030
### Browser Conflicts
3131

docs/src/content/docs/guides/styling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Starlight handles theme detection via the `data-theme` attribute on the root ele
4848

4949
Colors can also be set via the plugin configuration instead of CSS. This is useful for quick customization without a separate stylesheet.
5050

51-
See [Configuration → theme](/configuration/#theme) for available properties.
51+
See [Configuration → theme](/starlight-telescope/configuration/#theme) for available properties.
5252

5353
## CSS Classes
5454

pnpm-lock.yaml

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)