Skip to content

Commit

Permalink
Ship it all i will fix it on my end
Browse files Browse the repository at this point in the history
  • Loading branch information
brettimus committed Aug 22, 2024
1 parent 2fff118 commit 3e9d9f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 33 deletions.
33 changes: 1 addition & 32 deletions www/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,7 @@ export default defineConfig({
github: "https://github.com/fiberplane/fpx",
discord: "https://discord.com/invite/cqdY6SpfVR",
},
sidebar: [
{
label: "Home",
items: [
// Each item here is one entry in the navigation menu.
{ label: "Get started", slug: "home/get-started" },
],
},
{
label: "Components",
items: [
{ label: "Client library", slug: "components/client-library" },
{ label: "Studio", slug: "components/studio" },
],
},
{
label: "Features",
items: [
{ label: "Making requests", slug: "features/making-requests" },
{ label: "Showing traces", slug: "features/showing-traces" },
{
label: "Generating with AI",
slug: "features/generating-with-ai",
},
{
label: "Generating prompts for tests",
slug: "features/generating-prompts-for-tests",
},
{ label: "Webhooks", slug: "features/webhooks" },
],
},
],

components: {
Header: "@/components/Header.astro",
Pagination: "@/components/Pagination.astro",
Expand Down
10 changes: 10 additions & 0 deletions www/src/components/ThemeProvider.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{/* This is intentionally inlined to avoid FOUC. */}
<script is:inline>
window.addEventListener('load', () => {
const theme = 'light';
document.documentElement.dataset.theme = theme;
window.StarlightThemeProvider.updatePickers(theme);
});
window.addEventListener('astro:load', () => {
const theme = 'light';
document.documentElement.dataset.theme = theme;
window.StarlightThemeProvider.updatePickers(theme);
});
window.StarlightThemeProvider = (() => {
const storedTheme =
typeof localStorage !== 'undefined' && localStorage.getItem('starlight-theme');
Expand Down
2 changes: 1 addition & 1 deletion www/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
actions: [
{
text: "Get started",
link: "home/get-started",
link: "docs/home/get-started",
icon: "right-arrow",
variant: "primary",
attrs: {
Expand Down

0 comments on commit 3e9d9f4

Please sign in to comment.