Skip to content

Commit

Permalink
Fix base url for GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bbecquet committed Feb 14, 2025
1 parent 685f804 commit 9ce5382
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion docs/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { defineConfig } from "astro/config";
import starlightClientMermaid from "@pasqal-io/starlight-client-mermaid";

export default defineConfig({
site: "https://pasqal-io.github.io",
base: "starlight-client-mermaid",
integrations: [
starlight({
editLink: {
Expand All @@ -11,7 +13,10 @@ export default defineConfig({
},
plugins: [starlightClientMermaid()],
sidebar: [
{ label: "Usage", items: ["getting-started", "configuration"] },
{
label: "Usage",
items: ["getting-started", "configuration"],
},
"demo",
],
social: {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import { Steps, Tabs, TabItem } from '@astrojs/starlight/components'

</Tabs>

2. Configure the plugin in your [Starlight configuration](https://starlight.astro.build/reference/configuration/#plugins) in the `astro.config.mjs` file. See the [plugin configuration](/configuration) page for available options.
2. Configure the plugin in your [Starlight configuration](https://starlight.astro.build/reference/configuration/#plugins) in the `astro.config.mjs` file. See the [plugin configuration](./configuration) page for available options.

```diff lang="js"
// astro.config.mjs
Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ hero:
html: '<span style="font-size:8rem">💻🧜‍♀️</span>'
actions:
- text: Get Started
link: /getting-started/
link: ./getting-started
icon: rocket
- text: Demo
variant: minimal
link: /demo
link: ./demo
icon: right-arrow
---

Expand All @@ -26,7 +26,7 @@ import { Card, CardGrid } from '@astrojs/starlight/components'

<CardGrid stagger>
<Card title="Install the plugin" icon="puzzle">
Check the [getting started guide](/getting-started/) for installation instructions.
Check the [getting started guide](./getting-started/) for installation instructions.
</Card>
<Card title="Configure the plugin" icon="setting">
Edit your config in the `astro.config.mjs` file.
Expand Down

0 comments on commit 9ce5382

Please sign in to comment.