Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Commit efd1b84

Browse files
committed
Set site and base to resolve asset paths
1 parent c8b04af commit efd1b84

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,7 @@ const starlightOptions = starlight({
7474
});
7575

7676
export default defineConfig({
77+
site: "https://fabrix-framework.github.io",
78+
base: "/docs",
7779
integrations: [astroReact(), starlightOptions],
7880
});

src/content/docs/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ The `url` prop specifies the endpoint of your GraphQL server. This is the URL wh
4747

4848
In this example, `http://localhost:3000/graphql` is the URL where your GraphQL server is running. Replace this with the appropriate URL for your server.
4949

50-
The `componentRegistry` prop defines which components Fabrix should use to render different fields and data types. It acts as a mapping between GraphQL types and React components. Fabrix includes a default component registry, such as Chakra UI components, but you can also provide your own custom registry. See [Component registry](/guides/component-registry) for more detail.
50+
The `componentRegistry` prop defines which components Fabrix should use to render different fields and data types. It acts as a mapping between GraphQL types and React components. Fabrix includes a default component registry, such as Chakra UI components, but you can also provide your own custom registry. See [Component registry](/docs/guides/component-registry) for more detail.
5151

5252
All set! Now you can start using Fabrix in your app.

src/content/docs/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hero:
1111
file: ../../assets/logo_mark.svg
1212
actions:
1313
- text: Getting Started
14-
link: /getting-started
14+
link: /docs/getting-started
1515
icon: right-arrow
1616
---
1717
import { Card, CardGrid } from '@astrojs/starlight/components';
@@ -22,19 +22,19 @@ import AboutAstro from '../../components/About.astro';
2222
<CardGrid stagger>
2323
<Card title="Works with your existing app" icon="download" >
2424
Fabrix can work with any existing React app, and can be used with any GraphQL schema.
25-
See the [Component API](/guides/component) for more information.
25+
See the [Component API](/docs/guides/component) for more information.
2626
</Card>
2727
<Card title="Bring your own component" icon="seti:react">
28-
Fabrix is designed to be agnostic to the components you use. You can use any component library, or [even build your own](/guides/component-registry).
28+
Fabrix is designed to be agnostic to the components you use. You can use any component library, or [even build your own](/docs/guides/component-registry).
2929
We already have several component libraries that you can use out of the box.
3030
</Card>
3131
<Card title="Fabrix editor" icon="pen">
3232
Fabrix comes with a powerful editor that allows you to see how your GraphQL schema will be rendered in real time.
33-
See the [Fabrix editor](/tools/fabrix-editor) for more information.
33+
See the [Fabrix editor](/docs/tools/fabrix-editor) for more information.
3434
</Card>
3535
<Card title="Directive API" icon="seti:graphql">
3636
Fabrix comes with a powerful directive API that allows you to customize how your components are rendered.
37-
See the [Directive API](/guides/directives) for more information.
37+
See the [Directive API](/docs/guides/directives) for more information.
3838
</Card>
3939
</CardGrid>
4040

0 commit comments

Comments
 (0)