diff --git a/LICENSE b/LICENSE index 5e3df793ca8..385b09dbf08 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 [Astro contributors](https://github.com/withastro/starbook/graphs/contributors) +Copyright (c) 2023 [Astro contributors](https://github.com/withastro/starlight/graphs/contributors) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/README.md b/docs/README.md index 998403428ea..ff08cbf6dd2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,9 +1,9 @@ -# StarBook Docs +# Starlight Docs -This directory contains the StarBook documentation website (built with StarBook!) +This directory contains the Starlight documentation website (built with Starlight!) -[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starbook/tree/main/docs) -[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starbook/tree/main/docs) +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starlight/tree/main/docs) +[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/docs) ## 🧞 Commands diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 3ad9a5fcee8..f8c0786f70f 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -1,13 +1,13 @@ import { defineConfig } from 'astro/config'; -import starbook from 'starbook'; +import starlight from 'starlight'; // https://astro.build/config export default defineConfig({ integrations: [ - starbook({ - title: 'StarBook Docs', + starlight({ + title: 'Starlight Docs', editLink: { - baseUrl: 'https://github.com/withastro/starbook/edit/main/docs/', + baseUrl: 'https://github.com/withastro/starlight/edit/main/docs/', }, locales: { root: { diff --git a/docs/package.json b/docs/package.json index 40dbee65361..ac1301cb111 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,5 +1,5 @@ { - "name": "starbook-docs", + "name": "starlight-docs", "private": true, "type": "module", "version": "0.0.1", @@ -12,6 +12,6 @@ }, "dependencies": { "astro": "^2.1.7", - "starbook": "workspace:*" + "starlight": "workspace:*" } } diff --git a/docs/src/content/config.ts b/docs/src/content/config.ts index 2271861924d..62061bde09b 100644 --- a/docs/src/content/config.ts +++ b/docs/src/content/config.ts @@ -1,5 +1,5 @@ import { defineCollection } from 'astro:content'; -import { docsSchema } from 'starbook/schema'; +import { docsSchema } from 'starlight/schema'; export const collections = { docs: defineCollection({ diff --git a/docs/src/content/docs/getting-started.md b/docs/src/content/docs/getting-started.md index d989a065258..64d872558e3 100644 --- a/docs/src/content/docs/getting-started.md +++ b/docs/src/content/docs/getting-started.md @@ -2,22 +2,22 @@ title: Getting Started --- -Welcome to StarBook, an intuitive and user-friendly website builder that allows you to easily create and manage your documentation website. In this introductory guide, we will explore the main features and benefits of StarBook. +Welcome to Starlight, an intuitive and user-friendly website builder that allows you to easily create and manage your documentation website. In this introductory guide, we will explore the main features and benefits of Starlight. -## Getting Started with StarBook +## Getting Started with Starlight -To get started with StarBook, you will first need to install it. StarBook is built on top of the [Astro](https://astro.build) all-in-one framework, which means you will also need to install Astro before installing StarBook. Once both are installed, you can create a new StarBook project using the following command: +To get started with Starlight, you will first need to install it. Starlight is built on top of the [Astro](https://astro.build) all-in-one framework, which means you will also need to install Astro before installing Starlight. Once both are installed, you can create a new Starlight project using the following command: ```sh # create a new project with npm -npm create astro --template starbook +npm create astro --template starlight ``` This will create a new project directory with all the necessary files and configurations for your documentation website. -## Creating Content with StarBook +## Creating Content with Starlight -StarBook supports authoring content in Markdown and MDX, which means you can write your documentation using a simple and easy-to-learn syntax. You can also use a range of features and components supported by Docusaurus, GitBook, VitePress, MkDocs, Nextra, and Sphinx, including: +Starlight supports authoring content in Markdown and MDX, which means you can write your documentation using a simple and easy-to-learn syntax. You can also use a range of features and components supported by Docusaurus, GitBook, VitePress, MkDocs, Nextra, and Sphinx, including: - Syntax highlighting for code blocks - Tables and lists @@ -28,14 +28,14 @@ StarBook supports authoring content in Markdown and MDX, which means you can wri With these features, you can create rich and engaging documentation that is easy to read and understand. -### Customizing Your StarBook Website +### Customizing Your Starlight Website -One of the main benefits of StarBook is its flexibility and customization options. You can easily customize your website's layout, theme, and styling using the Astro framework's built-in tools and features. For example, you can customize your website's color scheme, fonts, and typography, as well as add custom components and plugins. +One of the main benefits of Starlight is its flexibility and customization options. You can easily customize your website's layout, theme, and styling using the Astro framework's built-in tools and features. For example, you can customize your website's color scheme, fonts, and typography, as well as add custom components and plugins. -### Deploying Your StarBook Website +### Deploying Your Starlight Website -Once you have created and customized your StarBook website, you can deploy it to a web server or hosting platform of your choice. Astro provides built-in support for several popular hosting platforms, including Netlify and Vercel, which means you can deploy your website with just a few simple commands. +Once you have created and customized your Starlight website, you can deploy it to a web server or hosting platform of your choice. Astro provides built-in support for several popular hosting platforms, including Netlify and Vercel, which means you can deploy your website with just a few simple commands. ## Conclusion -StarBook is a powerful and flexible website builder that makes it easy to create and manage your documentation website. With support for Markdown and MDX, as well as a range of features and components, you can create rich and engaging content that is easy to read and understand. So why not give StarBook a try today and see how it can help you take your documentation to the next level! +Starlight is a powerful and flexible website builder that makes it easy to create and manage your documentation website. With support for Markdown and MDX, as well as a range of features and components, you can create rich and engaging content that is easy to read and understand. So why not give Starlight a try today and see how it can help you take your documentation to the next level! diff --git a/docs/src/content/docs/guides/i18n.md b/docs/src/content/docs/guides/i18n.md index a6f48ffccc4..d1b71eeb692 100644 --- a/docs/src/content/docs/guides/i18n.md +++ b/docs/src/content/docs/guides/i18n.md @@ -2,20 +2,20 @@ title: Internationalization (i18n) --- -StarBook provides built-in support for multilingual sites. +Starlight provides built-in support for multilingual sites. ## Configure i18n -1. Tell StarBook about the languages you support by passing a `locales` object to the StarBook integration: +1. Tell Starlight about the languages you support by passing a `locales` object to the Starlight integration: ```js // astro.config.mjs import { defineConfig } from 'astro/config'; - import starbook from 'starbook'; + import starlight from 'starlight'; export default defineConfig({ integrations: [ - starbook({ + starlight({ // Set English as the default language for this site. defaultLocale: 'en', locales: { diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx index 68a0b347c5f..910a195e4ac 100644 --- a/docs/src/content/docs/index.mdx +++ b/docs/src/content/docs/index.mdx @@ -2,7 +2,7 @@ title: Welcome, world --- -My docs are built with StarBook. +My docs are built with Starlight. :::tip[Did you know?] Astro helps you build faster websites with [“Islands Architecture”](https://docs.astro.build/en/concepts/islands/). diff --git a/docs/src/content/docs/reference/configuration.md b/docs/src/content/docs/reference/configuration.md index 53ba874699f..b0385718317 100644 --- a/docs/src/content/docs/reference/configuration.md +++ b/docs/src/content/docs/reference/configuration.md @@ -2,9 +2,9 @@ title: Configuration Reference --- -## Configure the `starbook` integration +## Configure the `starlight` integration -You can pass the following options to the `starbook` integration. +You can pass the following options to the `starlight` integration. ### `title` (required) @@ -29,17 +29,17 @@ Configure the table of contents shown on the right of each page. By default, `Skip to content - - diff --git a/packages/starbook/style/asides.css b/packages/starbook/style/asides.css deleted file mode 100644 index 8e9b1030a3f..00000000000 --- a/packages/starbook/style/asides.css +++ /dev/null @@ -1,49 +0,0 @@ -.starbook-aside { - padding: 1rem; - border-inline-start: 0.25rem solid; - color: var(--sb-color-white); -} -.starbook-aside--note { - --sb-color-asides-text-accent: var(--sb-color-blue-high); - border-color: var(--sb-color-blue); - background-color: var(--sb-color-blue-low); -} -.starbook-aside--tip { - --sb-color-asides-text-accent: var(--sb-color-purple-high); - border-color: var(--sb-color-purple); - background-color: var(--sb-color-purple-low); -} -.starbook-aside--caution { - --sb-color-asides-text-accent: var(--sb-color-orange-high); - border-color: var(--sb-color-orange); - background-color: var(--sb-color-orange-low); -} -.starbook-aside--danger { - --sb-color-asides-text-accent: var(--sb-color-red-high); - border-color: var(--sb-color-red); - background-color: var(--sb-color-red-low); -} - -.starbook-aside__title { - display: flex; - gap: 0.5rem; - align-items: center; - font-size: var(--sb-text-h5); - font-weight: 600; - line-height: var(--sb-line-height-headings); - color: var(--sb-color-asides-text-accent); -} - -.starbook-aside__icon { - font-size: 1.333em; - width: 1em; - height: 1em; -} - -.starbook-aside__title + .starbook-aside__content { - margin-top: 0.5rem; -} - -.starbook-aside__content a { - color: var(--sb-color-asides-text-accent); -} diff --git a/packages/starbook/style/props.css b/packages/starbook/style/props.css deleted file mode 100644 index 95d7026f9ce..00000000000 --- a/packages/starbook/style/props.css +++ /dev/null @@ -1,197 +0,0 @@ -:root, -::backdrop { - /* Colors (dark mode) */ - --sb-color-white: hsl(0, 0%, 100%); /* “white” */ - --sb-color-gray-1: hsl(231, 23%, 94%); - --sb-color-gray-2: hsl(228, 8%, 77%); - --sb-color-gray-3: hsl(221, 8%, 56%); - --sb-color-gray-4: hsl(225, 9%, 36%); - --sb-color-gray-5: hsl(222, 11%, 23%); - --sb-color-gray-6: hsl(222, 13%, 16%); - --sb-color-black: hsl(223, 13%, 10%); - - --sb-hue-orange: 41; - --sb-color-orange-low: hsl(var(--sb-hue-orange), 39%, 22%); - --sb-color-orange: hsl(var(--sb-hue-orange), 82%, 63%); - --sb-color-orange-high: hsl(var(--sb-hue-orange), 82%, 87%); - --sb-hue-green: 101; - --sb-color-green-low: hsl(var(--sb-hue-green), 39%, 22%); - --sb-color-green: hsl(var(--sb-hue-green), 82%, 63%); - --sb-color-green-high: hsl(var(--sb-hue-green), 82%, 87%); - --sb-hue-blue: 234; - --sb-color-blue-low: hsl(var(--sb-hue-blue), 54%, 20%); - --sb-color-blue: hsl(var(--sb-hue-blue), 100%, 60%); - --sb-color-blue-high: hsl(var(--sb-hue-blue), 100%, 87%); - --sb-hue-purple: 281; - --sb-color-purple-low: hsl(var(--sb-hue-purple), 39%, 22%); - --sb-color-purple: hsl(var(--sb-hue-purple), 82%, 63%); - --sb-color-purple-high: hsl(var(--sb-hue-purple), 82%, 89%); - --sb-hue-red: 339; - --sb-color-red-low: hsl(var(--sb-hue-red), 39%, 22%); - --sb-color-red: hsl(var(--sb-hue-red), 82%, 63%); - --sb-color-red-high: hsl(var(--sb-hue-red), 82%, 87%); - - --sb-hue-accent: var(--sb-hue-blue); - --sb-color-accent-low: hsl(var(--sb-hue-accent), 54%, 20%); - --sb-color-accent: hsl(var(--sb-hue-accent), 100%, 60%); - --sb-color-accent-high: hsl(var(--sb-hue-accent), 100%, 87%); - - --sb-color-text: var(--sb-color-gray-2); - --sb-color-text-accent: var(--sb-color-accent-high); - --sb-color-text-invert: var(--sb-color-accent-low); - --sb-color-bg: var(--sb-color-black); - --sb-color-bg-nav: var(--sb-color-gray-6); - --sb-color-bg-sidebar: var(--sb-color-gray-6); - --sb-color-bg-inline-code: var(--sb-color-gray-5); - --sb-color-hairline: var(--sb-color-gray-6); - --sb-color-hairline-shade: var(--sb-color-black); - - --sb-color-backdrop-overlay: hsla(223, 13%, 10%, 0.66); - - /* Shadows (dark mode) */ - --sb-shadow-sm: 0px 1px 1px hsla(0, 0%, 0%, 0.12), - 0px 2px 1px hsla(0, 0%, 0%, 0.24); - --sb-shadow-md: 0px 8px 4px hsla(0, 0%, 0%, 0.08), - 0px 5px 2px hsla(0, 0%, 0%, 0.08), 0px 3px 2px hsla(0, 0%, 0%, 0.12), - 0px 1px 1px hsla(0, 0%, 0%, 0.15); - --sb-shadow-lg: 0px 25px 7px hsla(0, 0%, 0%, 0.03), - 0px 16px 6px hsla(0, 0%, 0%, 0.1), 0px 9px 5px hsla(223, 13%, 10%, 0.33), - 0px 4px 4px hsla(0, 0%, 0%, 0.75), 0px 4px 2px hsla(0, 0%, 0%, 0.25); - - /* Gradients (unchanged across dark & light modes) */ - --sb-gradient-blue-purple: linear-gradient( - to bottom, - hsl(234, 100%, 59.8%) 0%, - hsl(281, 82.1%, 62.7%) 100% - ); - --sb-gradient-red-pink: linear-gradient( - to bottom, - hsl(0, 67.9%, 52.4%) 0%, - hsl(295, 100%, 62.7%) 100% - ); - --sb-gradient-orange-yellow: linear-gradient( - to bottom, - hsl(54, 93.5%, 57.6%) 0%, - hsl(14, 100%, 66.5%) 100% - ); - --sb-gradient-blue-green: linear-gradient( - to bottom, - hsl(165, 86.6%, 62%) 0%, - hsl(227, 58.4%, 44.3%) 100% - ); - - /* Text size and line height */ - --sb-text-xs: 0.8125rem; /* 13px */ - --sb-text-sm: 0.875rem; /* 14px */ - --sb-text-base: 1rem; /* 16px */ - --sb-text-lg: 1.125rem; /* 18px */ - --sb-text-xl: 1.25rem; /* 20px */ - --sb-text-2xl: 1.5rem; /* 24px */ - --sb-text-3xl: 1.8125rem; /* 29px */ - --sb-text-4xl: 2.1875rem; /* 35px */ - --sb-text-5xl: 2.625rem; /* 42px */ - - --sb-text-body: var(--sb-text-base); - --sb-text-body-sm: var(--sb-text-xs); - --sb-text-code: var(--sb-text-base); - --sb-text-code-sm: var(--sb-text-xs); - --sb-text-h1: var(--sb-text-4xl); - --sb-text-h2: var(--sb-text-3xl); - --sb-text-h3: var(--sb-text-2xl); - --sb-text-h4: var(--sb-text-xl); - --sb-text-h5: var(--sb-text-lg); - - --sb-line-height: 1.8; - --sb-line-height-headings: 1.2; - - --sb-font-system: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, - 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, - 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; - --sb-font-system-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, - 'Liberation Mono', 'Courier New', monospace; - --__sb-font: var(--sb-font, ''), var(--sb-font-system); - --__sb-font-mono: var(--sb-font-mono, ''), var(--sb-font-system-mono); - - /** Key layout values */ - --sb-nav-height: 4rem; - --sb-nav-pad-x: 1.5rem; - --sb-nav-pad-y: 0.75rem; - --sb-sidebar-width: 18.75rem; - --sb-sidebar-pad-x: 1rem; - --sb-content-width: 45rem; - --sb-content-pad-x: 1rem; - --sb-menu-button-size: 2rem; - --sb-nav-gap: var(--sb-content-pad-x); - - /* Global z-index values */ - --sb-z-index-navbar: 10; - --sb-z-index-skiplink: 20; -} - -:root[data-theme='light'], -[data-theme='light'] ::backdrop { - /* Colours (light mode) */ - --sb-color-white: hsl(223, 13%, 10%); - --sb-color-gray-1: hsl(222, 13%, 16%); - --sb-color-gray-2: hsl(222, 11%, 23%); - --sb-color-gray-3: hsl(225, 9%, 36%); - --sb-color-gray-4: hsl(221, 8%, 56%); - --sb-color-gray-5: hsl(228, 8%, 77%); - --sb-color-gray-6: hsl(231, 23%, 94%); - --sb-color-gray-7: hsl(240, 20%, 97%); - --sb-color-black: hsl(0, 0%, 100%); - - --sb-color-orange-high: hsl(var(--sb-hue-orange), 80%, 25%); - --sb-color-orange: hsl(var(--sb-hue-orange), 90%, 60%); - --sb-color-orange-low: hsl(var(--sb-hue-orange), 90%, 88%); - --sb-color-green-high: hsl(var(--sb-hue-green), 80%, 22%); - --sb-color-green: hsl(var(--sb-hue-green), 90%, 60%); - --sb-color-green-low: hsl(var(--sb-hue-green), 85%, 90%); - --sb-color-blue-high: hsl(var(--sb-hue-blue), 80%, 30%); - --sb-color-blue: hsl(var(--sb-hue-blue), 90%, 60%); - --sb-color-blue-low: hsl(var(--sb-hue-blue), 88%, 90%); - --sb-color-purple-high: hsl(var(--sb-hue-purple), 39%, 30%); - --sb-color-purple: hsl(var(--sb-hue-purple), 90%, 60%); - --sb-color-purple-low: hsl(var(--sb-hue-purple), 80%, 90%); - --sb-color-red-high: hsl(var(--sb-hue-red), 80%, 30%); - --sb-color-red: hsl(var(--sb-hue-red), 90%, 60%); - --sb-color-red-low: hsl(var(--sb-hue-red), 80%, 90%); - - --sb-color-accent-high: hsl(var(--sb-hue-accent), 80%, 30%); - --sb-color-accent: hsl(var(--sb-hue-accent), 90%, 60%); - --sb-color-accent-low: hsl(var(--sb-hue-accent), 88%, 90%); - - --sb-color-text-accent: var(--sb-color-accent); - --sb-color-text-invert: var(--sb-color-black); - --sb-color-bg-nav: var(--sb-color-gray-7); - --sb-color-bg-sidebar: var(--sb-color-bg); - --sb-color-bg-inline-code: var(--sb-color-gray-6); - --sb-color-hairline-shade: var(--sb-color-gray-6); - - --sb-color-backdrop-overlay: hsla(225, 9%, 36%, 0.66); - - /* Shadows (light mode) */ - --sb-shadow-sm: 0px 1px 1px hsla(0, 0%, 0%, 0.06), - 0px 2px 1px hsla(0, 0%, 0%, 0.06); - --sb-shadow-md: 0px 8px 4px hsla(0, 0%, 0%, 0.03), - 0px 5px 2px hsla(0, 0%, 0%, 0.03), 0px 3px 2px hsla(0, 0%, 0%, 0.06), - 0px 1px 1px hsla(0, 0%, 0%, 0.06); - --sb-shadow-lg: 0px 25px 7px rgba(0, 0, 0, 0.01), - 0px 16px 6px hsla(0, 0%, 0%, 0.03), 0px 9px 5px hsla(223, 13%, 10%, 0.08), - 0px 4px 4px hsla(0, 0%, 0%, 0.16), 0px 4px 2px hsla(0, 0%, 0%, 0.04); -} - -@media (min-width: 50em) { - :root { - --sb-text-h1: var(--sb-text-5xl); - --sb-text-h2: var(--sb-text-4xl); - --sb-text-h3: var(--sb-text-3xl); - --sb-text-h4: var(--sb-text-2xl); - } -} - -@media (min-width: 72rem) { - :root { - --sb-content-pad-x: 1.5rem; - } -} diff --git a/packages/starbook/style/shiki.css b/packages/starbook/style/shiki.css deleted file mode 100644 index d87cfce984f..00000000000 --- a/packages/starbook/style/shiki.css +++ /dev/null @@ -1,13 +0,0 @@ -:root { - --astro-code-color-text: var(--sb-color-white); - --astro-code-color-background: var(--sb-color-gray-6); - --astro-code-token-constant: var(--sb-color-blue-high); - --astro-code-token-string: var(--sb-color-green-high); - --astro-code-token-comment: var(--sb-color-gray-2); - --astro-code-token-keyword: var(--sb-color-purple-high); - --astro-code-token-parameter: var(--sb-color-red-high); - --astro-code-token-function: var(--sb-color-red-high); - --astro-code-token-string-expression: var(--sb-color-green-high); - --astro-code-token-punctuation: var(--sb-color-gray-2); - --astro-code-token-link: var(--sb-color-blue-high); -} diff --git a/packages/starbook/types.ts b/packages/starbook/types.ts deleted file mode 100644 index 638755df1f3..00000000000 --- a/packages/starbook/types.ts +++ /dev/null @@ -1 +0,0 @@ -export { StarbookConfig } from './utils/user-config'; diff --git a/packages/starbook/virtual.d.ts b/packages/starbook/virtual.d.ts deleted file mode 100644 index 2713e0669d1..00000000000 --- a/packages/starbook/virtual.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -declare module 'virtual:starbook/user-config' { - const Config: import('./types').StarbookConfig; - export default Config; -} -declare module 'virtual:starbook/project-context' { - export default { root: string }; -} - -declare module 'virtual:starbook/user-css' {} diff --git a/packages/starbook/404.astro b/packages/starlight/404.astro similarity index 87% rename from packages/starbook/404.astro rename to packages/starlight/404.astro index 428d74776fa..a0f8bb4c48e 100644 --- a/packages/starbook/404.astro +++ b/packages/starlight/404.astro @@ -26,7 +26,7 @@ const locale = undefined;
-
+

404

Houston, we have a problem.

@@ -40,10 +40,10 @@ const locale = undefined; diff --git a/packages/starlight/README.md b/packages/starlight/README.md new file mode 100644 index 00000000000..937ce2cd8c8 --- /dev/null +++ b/packages/starlight/README.md @@ -0,0 +1,24 @@ +# Starlight + +Starlight is a documentation website framework for [Astro][astro]. + +## Documentation + +[Read the Starlight docs][docs] (they’re built with Starlight!) + +## Contributing + +- [Code of Conduct][coc] +- [Community Guide][community] + +## License + +MIT + +Copyright (c) 2023–present [Starlight contributors][contributors] + +[astro]: https://astro.build/ +[docs]: https://starlight.astro.build/ +[coc]: https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md +[community]: https://github.com/withastro/.github/blob/main/COMMUNITY_GUIDE.md +[contributors]: https://github.com/withastro/starlight/graphs/contributors diff --git a/packages/starbook/components/ContentPanel.astro b/packages/starlight/components/ContentPanel.astro similarity index 70% rename from packages/starbook/components/ContentPanel.astro rename to packages/starlight/components/ContentPanel.astro index 570dbae1b7d..4f3aaa2ab2e 100644 --- a/packages/starbook/components/ContentPanel.astro +++ b/packages/starlight/components/ContentPanel.astro @@ -4,13 +4,13 @@ diff --git a/packages/starbook/components/HeadSEO.astro b/packages/starlight/components/HeadSEO.astro similarity index 96% rename from packages/starbook/components/HeadSEO.astro rename to packages/starlight/components/HeadSEO.astro index 9ebdde57dce..3b300355b8e 100644 --- a/packages/starbook/components/HeadSEO.astro +++ b/packages/starlight/components/HeadSEO.astro @@ -1,6 +1,6 @@ --- import type { CollectionEntry } from 'astro:content'; -import config from 'virtual:starbook/user-config'; +import config from 'virtual:starlight/user-config'; import { localizedUrl } from '../utils/localizedUrl'; interface Props { diff --git a/packages/starbook/components/Header.astro b/packages/starlight/components/Header.astro similarity index 77% rename from packages/starbook/components/Header.astro rename to packages/starlight/components/Header.astro index 020b621b64d..f35e9e79193 100644 --- a/packages/starbook/components/Header.astro +++ b/packages/starlight/components/Header.astro @@ -1,5 +1,5 @@ --- -import config from 'virtual:starbook/user-config'; +import config from 'virtual:starlight/user-config'; import LanguageSelect from './LanguageSelect.astro'; import Search from './Search.astro'; import ThemeSelect from './ThemeSelect.astro'; @@ -21,16 +21,16 @@ interface Props { diff --git a/packages/starbook/components/MarkdownContent.astro b/packages/starlight/components/MarkdownContent.astro similarity index 68% rename from packages/starbook/components/MarkdownContent.astro rename to packages/starlight/components/MarkdownContent.astro index c2d1c2fe78a..736ea2a6dd0 100644 --- a/packages/starbook/components/MarkdownContent.astro +++ b/packages/starlight/components/MarkdownContent.astro @@ -36,8 +36,8 @@ } .content :global(:is(h1, h2, h3, h4, h5, h6)) { - color: var(--sb-color-white); - line-height: var(--sb-line-height-headings); + color: var(--sl-color-white); + line-height: var(--sl-line-height-headings); font-weight: 600; } @@ -47,41 +47,41 @@ } .content :global(h1) { - font-size: var(--sb-text-h1); + font-size: var(--sl-text-h1); } .content :global(h2) { - font-size: var(--sb-text-h2); + font-size: var(--sl-text-h2); } .content :global(h3) { - font-size: var(--sb-text-h3); + font-size: var(--sl-text-h3); } .content :global(h4) { - font-size: var(--sb-text-h4); + font-size: var(--sl-text-h4); } .content :global(h5) { - font-size: var(--sb-text-h5); + font-size: var(--sl-text-h5); } .content :global(h6) { - font-size: var(--sb-text-h6); + font-size: var(--sl-text-h6); } .content :global(a) { - color: var(--sb-color-text-accent); + color: var(--sl-color-text-accent); } .content :global(a:hover) { - color: var(--sb-color-white); + color: var(--sl-color-white); } .content :global(code) { - background-color: var(--sb-color-bg-inline-code); + background-color: var(--sl-color-bg-inline-code); margin-block: -0.125rem; padding: 0.125rem 0.375rem; } .content :global(pre) { - border: 1px solid var(--sb-color-gray-5); + border: 1px solid var(--sl-color-gray-5); padding: 0.75rem 1rem; - font-size: var(--sb-text-code); + font-size: var(--sl-text-code); } .content :global(pre code) { @@ -89,24 +89,24 @@ } .content :global(blockquote) { - border-inline-start: 1px solid var(--sb-color-gray-5); + border-inline-start: 1px solid var(--sl-color-gray-5); padding-inline-start: 1rem; } .content :global(table) { - border: 1px solid var(--sb-color-gray-5); + border: 1px solid var(--sl-color-gray-5); border-collapse: collapse; } .content :global(tr:nth-child(2n)) { - background-color: var(--sb-color-gray-7, var(--sb-color-gray-6)); + background-color: var(--sl-color-gray-7, var(--sl-color-gray-6)); } .content :global(:is(th, td)) { - border: 1px solid var(--sb-color-hairline); + border: 1px solid var(--sl-color-hairline); padding: 0.375rem 0.8125rem; } .content :global(hr) { border: 0; - border-bottom: 1px solid var(--sb-color-hairline); + border-bottom: 1px solid var(--sl-color-hairline); } diff --git a/packages/starbook/components/MobileMenuToggle.astro b/packages/starlight/components/MobileMenuToggle.astro similarity index 67% rename from packages/starbook/components/MobileMenuToggle.astro rename to packages/starlight/components/MobileMenuToggle.astro index 1063c8b3a1c..b0d77b84e0f 100644 --- a/packages/starbook/components/MobileMenuToggle.astro +++ b/packages/starlight/components/MobileMenuToggle.astro @@ -2,19 +2,19 @@ import Icon from './Icon.astro'; --- - + - + diff --git a/packages/starbook/components/PrevNextLinks.astro b/packages/starlight/components/PrevNextLinks.astro similarity index 84% rename from packages/starbook/components/PrevNextLinks.astro rename to packages/starlight/components/PrevNextLinks.astro index 81b937b02fa..70dd48567bf 100644 --- a/packages/starbook/components/PrevNextLinks.astro +++ b/packages/starlight/components/PrevNextLinks.astro @@ -54,11 +54,11 @@ const isRtl = dir === 'rtl'; width: 100%; flex-basis: calc(50% - 0.5rem); flex-grow: 1; - border: 1px solid var(--sb-color-gray-5); + border: 1px solid var(--sl-color-gray-5); border-radius: 0.5rem; padding: 1rem; text-decoration: none; - color: var(--sb-color-gray-2); + color: var(--sl-color-gray-2); } [rel='next'] { justify-content: end; @@ -66,12 +66,12 @@ const isRtl = dir === 'rtl'; flex-direction: row-reverse; } a:hover { - border-color: var(--sb-color-gray-2); + border-color: var(--sl-color-gray-2); } .link-title { - color: var(--sb-color-white); - font-size: var(--sb-text-2xl); - line-height: var(--sb-line-height-headings); + color: var(--sl-color-white); + font-size: var(--sl-text-2xl); + line-height: var(--sl-line-height-headings); } diff --git a/packages/starbook/components/RightSidebarPanel.astro b/packages/starlight/components/RightSidebarPanel.astro similarity index 57% rename from packages/starbook/components/RightSidebarPanel.astro rename to packages/starlight/components/RightSidebarPanel.astro index 92d8a0315e1..81ce2e4d459 100644 --- a/packages/starbook/components/RightSidebarPanel.astro +++ b/packages/starlight/components/RightSidebarPanel.astro @@ -6,32 +6,32 @@ diff --git a/packages/starbook/components/Select.astro b/packages/starlight/components/Select.astro similarity index 72% rename from packages/starbook/components/Select.astro rename to packages/starlight/components/Select.astro index 1f816383830..1cd5fbd37d3 100644 --- a/packages/starbook/components/Select.astro +++ b/packages/starlight/components/Select.astro @@ -14,7 +14,7 @@ interface Props { } --- -