From 707fca678f9324ffbbd8ce30d9a9552cfc6c81c9 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 8 May 2023 20:55:19 +0200 Subject: Rename to “Starlight” (#29) --- LICENSE | 2 +- docs/README.md | 8 +- docs/astro.config.mjs | 8 +- docs/package.json | 4 +- docs/src/content/config.ts | 2 +- docs/src/content/docs/getting-started.md | 22 +- docs/src/content/docs/guides/i18n.md | 8 +- docs/src/content/docs/index.mdx | 2 +- docs/src/content/docs/reference/configuration.md | 26 +- docs/src/content/docs/reference/markdown-syntax.md | 20 +- package.json | 2 +- packages/starbook/404.astro | 51 ---- packages/starbook/README.md | 24 -- packages/starbook/components/ContentPanel.astro | 25 -- packages/starbook/components/EditLink.astro | 23 -- .../components/FallbackContentNotice.astro | 27 -- packages/starbook/components/HeadSEO.astro | 60 ----- packages/starbook/components/Header.astro | 62 ----- packages/starbook/components/Icon.astro | 36 --- packages/starbook/components/Icons.ts | 43 --- packages/starbook/components/LanguageSelect.astro | 51 ---- packages/starbook/components/LastUpdated.astro | 41 --- packages/starbook/components/MarkdownContent.astro | 112 -------- .../starbook/components/MobileMenuToggle.astro | 89 ------- packages/starbook/components/PrevNextLinks.astro | 77 ------ .../starbook/components/RightSidebarPanel.astro | 38 --- packages/starbook/components/Search.astro | 296 --------------------- packages/starbook/components/Select.astro | 80 ------ packages/starbook/components/Sidebar.astro | 34 --- packages/starbook/components/SidebarSublist.astro | 78 ------ packages/starbook/components/SkipLink.astro | 18 -- packages/starbook/components/TableOfContents.astro | 17 -- .../TableOfContents/TableOfContentsList.astro | 35 --- .../components/TableOfContents/generateToC.ts | 66 ----- packages/starbook/components/ThemeProvider.astro | 50 ---- packages/starbook/components/ThemeSelect.astro | 88 ------ packages/starbook/index.astro | 102 ------- packages/starbook/index.ts | 101 ------- packages/starbook/integrations/asides.ts | 164 ------------ packages/starbook/layout/PageFrame.astro | 88 ------ packages/starbook/layout/TwoColumnContent.astro | 42 --- packages/starbook/package.json | 42 --- packages/starbook/schema.ts | 23 -- packages/starbook/style/asides.css | 49 ---- packages/starbook/style/props.css | 197 -------------- packages/starbook/style/reset.css | 43 --- packages/starbook/style/shiki.css | 13 - packages/starbook/style/util.css | 32 --- packages/starbook/types.ts | 1 - packages/starbook/utils/git.ts | 96 ------- packages/starbook/utils/localizedUrl.ts | 32 --- packages/starbook/utils/navigation.ts | 232 ---------------- packages/starbook/utils/routing.ts | 109 -------- packages/starbook/utils/slugs.ts | 91 ------- packages/starbook/utils/user-config.ts | 250 ----------------- packages/starbook/virtual.d.ts | 9 - packages/starlight/404.astro | 51 ++++ packages/starlight/README.md | 24 ++ packages/starlight/components/ContentPanel.astro | 25 ++ packages/starlight/components/EditLink.astro | 23 ++ .../components/FallbackContentNotice.astro | 27 ++ packages/starlight/components/HeadSEO.astro | 60 +++++ packages/starlight/components/Header.astro | 62 +++++ packages/starlight/components/Icon.astro | 36 +++ packages/starlight/components/Icons.ts | 43 +++ packages/starlight/components/LanguageSelect.astro | 51 ++++ packages/starlight/components/LastUpdated.astro | 41 +++ .../starlight/components/MarkdownContent.astro | 112 ++++++++ .../starlight/components/MobileMenuToggle.astro | 89 +++++++ packages/starlight/components/PrevNextLinks.astro | 77 ++++++ .../starlight/components/RightSidebarPanel.astro | 38 +++ packages/starlight/components/Search.astro | 296 +++++++++++++++++++++ packages/starlight/components/Select.astro | 80 ++++++ packages/starlight/components/Sidebar.astro | 34 +++ packages/starlight/components/SidebarSublist.astro | 78 ++++++ packages/starlight/components/SkipLink.astro | 18 ++ .../starlight/components/TableOfContents.astro | 17 ++ .../TableOfContents/TableOfContentsList.astro | 35 +++ .../components/TableOfContents/generateToC.ts | 66 +++++ packages/starlight/components/ThemeProvider.astro | 50 ++++ packages/starlight/components/ThemeSelect.astro | 88 ++++++ packages/starlight/index.astro | 102 +++++++ packages/starlight/index.ts | 101 +++++++ packages/starlight/integrations/asides.ts | 164 ++++++++++++ packages/starlight/layout/PageFrame.astro | 88 ++++++ packages/starlight/layout/TwoColumnContent.astro | 42 +++ packages/starlight/package.json | 42 +++ packages/starlight/schema.ts | 23 ++ packages/starlight/style/asides.css | 49 ++++ packages/starlight/style/props.css | 197 ++++++++++++++ packages/starlight/style/reset.css | 43 +++ packages/starlight/style/shiki.css | 13 + packages/starlight/style/util.css | 32 +++ packages/starlight/types.ts | 1 + packages/starlight/utils/git.ts | 96 +++++++ packages/starlight/utils/localizedUrl.ts | 32 +++ packages/starlight/utils/navigation.ts | 232 ++++++++++++++++ packages/starlight/utils/routing.ts | 109 ++++++++ packages/starlight/utils/slugs.ts | 91 +++++++ packages/starlight/utils/user-config.ts | 250 +++++++++++++++++ packages/starlight/virtual.d.ts | 9 + pnpm-lock.yaml | 31 +-- 102 files changed, 3293 insertions(+), 3316 deletions(-) delete mode 100644 packages/starbook/404.astro delete mode 100644 packages/starbook/README.md delete mode 100644 packages/starbook/components/ContentPanel.astro delete mode 100644 packages/starbook/components/EditLink.astro delete mode 100644 packages/starbook/components/FallbackContentNotice.astro delete mode 100644 packages/starbook/components/HeadSEO.astro delete mode 100644 packages/starbook/components/Header.astro delete mode 100644 packages/starbook/components/Icon.astro delete mode 100644 packages/starbook/components/Icons.ts delete mode 100644 packages/starbook/components/LanguageSelect.astro delete mode 100644 packages/starbook/components/LastUpdated.astro delete mode 100644 packages/starbook/components/MarkdownContent.astro delete mode 100644 packages/starbook/components/MobileMenuToggle.astro delete mode 100644 packages/starbook/components/PrevNextLinks.astro delete mode 100644 packages/starbook/components/RightSidebarPanel.astro delete mode 100644 packages/starbook/components/Search.astro delete mode 100644 packages/starbook/components/Select.astro delete mode 100644 packages/starbook/components/Sidebar.astro delete mode 100644 packages/starbook/components/SidebarSublist.astro delete mode 100644 packages/starbook/components/SkipLink.astro delete mode 100644 packages/starbook/components/TableOfContents.astro delete mode 100644 packages/starbook/components/TableOfContents/TableOfContentsList.astro delete mode 100644 packages/starbook/components/TableOfContents/generateToC.ts delete mode 100644 packages/starbook/components/ThemeProvider.astro delete mode 100644 packages/starbook/components/ThemeSelect.astro delete mode 100644 packages/starbook/index.astro delete mode 100644 packages/starbook/index.ts delete mode 100644 packages/starbook/integrations/asides.ts delete mode 100644 packages/starbook/layout/PageFrame.astro delete mode 100644 packages/starbook/layout/TwoColumnContent.astro delete mode 100644 packages/starbook/package.json delete mode 100644 packages/starbook/schema.ts delete mode 100644 packages/starbook/style/asides.css delete mode 100644 packages/starbook/style/props.css delete mode 100644 packages/starbook/style/reset.css delete mode 100644 packages/starbook/style/shiki.css delete mode 100644 packages/starbook/style/util.css delete mode 100644 packages/starbook/types.ts delete mode 100644 packages/starbook/utils/git.ts delete mode 100644 packages/starbook/utils/localizedUrl.ts delete mode 100644 packages/starbook/utils/navigation.ts delete mode 100644 packages/starbook/utils/routing.ts delete mode 100644 packages/starbook/utils/slugs.ts delete mode 100644 packages/starbook/utils/user-config.ts delete mode 100644 packages/starbook/virtual.d.ts create mode 100644 packages/starlight/404.astro create mode 100644 packages/starlight/README.md create mode 100644 packages/starlight/components/ContentPanel.astro create mode 100644 packages/starlight/components/EditLink.astro create mode 100644 packages/starlight/components/FallbackContentNotice.astro create mode 100644 packages/starlight/components/HeadSEO.astro create mode 100644 packages/starlight/components/Header.astro create mode 100644 packages/starlight/components/Icon.astro create mode 100644 packages/starlight/components/Icons.ts create mode 100644 packages/starlight/components/LanguageSelect.astro create mode 100644 packages/starlight/components/LastUpdated.astro create mode 100644 packages/starlight/components/MarkdownContent.astro create mode 100644 packages/starlight/components/MobileMenuToggle.astro create mode 100644 packages/starlight/components/PrevNextLinks.astro create mode 100644 packages/starlight/components/RightSidebarPanel.astro create mode 100644 packages/starlight/components/Search.astro create mode 100644 packages/starlight/components/Select.astro create mode 100644 packages/starlight/components/Sidebar.astro create mode 100644 packages/starlight/components/SidebarSublist.astro create mode 100644 packages/starlight/components/SkipLink.astro create mode 100644 packages/starlight/components/TableOfContents.astro create mode 100644 packages/starlight/components/TableOfContents/TableOfContentsList.astro create mode 100644 packages/starlight/components/TableOfContents/generateToC.ts create mode 100644 packages/starlight/components/ThemeProvider.astro create mode 100644 packages/starlight/components/ThemeSelect.astro create mode 100644 packages/starlight/index.astro create mode 100644 packages/starlight/index.ts create mode 100644 packages/starlight/integrations/asides.ts create mode 100644 packages/starlight/layout/PageFrame.astro create mode 100644 packages/starlight/layout/TwoColumnContent.astro create mode 100644 packages/starlight/package.json create mode 100644 packages/starlight/schema.ts create mode 100644 packages/starlight/style/asides.css create mode 100644 packages/starlight/style/props.css create mode 100644 packages/starlight/style/reset.css create mode 100644 packages/starlight/style/shiki.css create mode 100644 packages/starlight/style/util.css create mode 100644 packages/starlight/types.ts create mode 100644 packages/starlight/utils/git.ts create mode 100644 packages/starlight/utils/localizedUrl.ts create mode 100644 packages/starlight/utils/navigation.ts create mode 100644 packages/starlight/utils/routing.ts create mode 100644 packages/starlight/utils/slugs.ts create mode 100644 packages/starlight/utils/user-config.ts create mode 100644 packages/starlight/virtual.d.ts diff --git a/LICENSE b/LICENSE index 5e3df793..385b09db 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 99840342..ff08cbf6 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 3ad9a5fc..f8c0786f 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 40dbee65..ac1301cb 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 22718619..62061bde 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 d989a065..64d87255 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 a6f48ffc..d1b71eeb 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 68a0b347..910a195e 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 53ba8746..b0385718 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, ` - - - - Not found - - - - -
-
- -

404

-

Houston, we have a problem.

-

- We couldn’t find that link. Check the address or head back home. -

-
-
- - - - - diff --git a/packages/starbook/README.md b/packages/starbook/README.md deleted file mode 100644 index ce0c299a..00000000 --- a/packages/starbook/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# StarBook - -StarBook is a documentation website framework for [Astro][astro]. - -## Documentation - -[Read the StarBook docs][docs] (they’re built with StarBook!) - -## Contributing - -- [Code of Conduct][coc] -- [Community Guide][community] - -## License - -MIT - -Copyright (c) 2023–present [StarBook contributors][contributors] - -[astro]: https://astro.build/ -[docs]: https://star-book.netlify.app/ -[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/starbook/graphs/contributors diff --git a/packages/starbook/components/ContentPanel.astro b/packages/starbook/components/ContentPanel.astro deleted file mode 100644 index 570dbae1..00000000 --- a/packages/starbook/components/ContentPanel.astro +++ /dev/null @@ -1,25 +0,0 @@ -
-
-
- - diff --git a/packages/starbook/components/EditLink.astro b/packages/starbook/components/EditLink.astro deleted file mode 100644 index 9b44099f..00000000 --- a/packages/starbook/components/EditLink.astro +++ /dev/null @@ -1,23 +0,0 @@ ---- -import type { CollectionEntry } from 'astro:content'; -import config from 'virtual:starbook/user-config'; - -interface Props { - data: CollectionEntry<'docs'>['data']; - id: CollectionEntry<'docs'>['id']; -} - -const { editUrl } = Astro.props.data; - -let { baseUrl } = config.editLink; -if (baseUrl && baseUrl.at(-1) !== '/') baseUrl += '/'; - -const url = - typeof editUrl === 'string' - ? editUrl - : baseUrl - ? baseUrl + 'src/content/docs/' + Astro.props.id - : undefined; ---- - -{editUrl !== false && url && Edit this page} diff --git a/packages/starbook/components/FallbackContentNotice.astro b/packages/starbook/components/FallbackContentNotice.astro deleted file mode 100644 index e4dc3a4a..00000000 --- a/packages/starbook/components/FallbackContentNotice.astro +++ /dev/null @@ -1,27 +0,0 @@ ---- -import Icon from './Icon.astro'; ---- - -

- This content is not available in your language yet. -

- - diff --git a/packages/starbook/components/HeadSEO.astro b/packages/starbook/components/HeadSEO.astro deleted file mode 100644 index 9ebdde57..00000000 --- a/packages/starbook/components/HeadSEO.astro +++ /dev/null @@ -1,60 +0,0 @@ ---- -import type { CollectionEntry } from 'astro:content'; -import config from 'virtual:starbook/user-config'; -import { localizedUrl } from '../utils/localizedUrl'; - -interface Props { - data: CollectionEntry<'docs'>['data']; - lang: string; -} - -const { data, lang } = Astro.props; - -const canonical = Astro.site - ? new URL(Astro.url.pathname, Astro.site) - : undefined; -const title = data.title || config.title; -const description = data.description || config.description; ---- - -{title} -{description && } - -{ - canonical && - config.isMultilingual && - Object.entries(config.locales).map( - ([locale, localeOpts]) => - localeOpts && ( - - ) - ) -} - - - - - - - - - - - - - -{ - config.social?.twitter && ( - - ) -} - - diff --git a/packages/starbook/components/Header.astro b/packages/starbook/components/Header.astro deleted file mode 100644 index 020b621b..00000000 --- a/packages/starbook/components/Header.astro +++ /dev/null @@ -1,62 +0,0 @@ ---- -import config from 'virtual:starbook/user-config'; -import LanguageSelect from './LanguageSelect.astro'; -import Search from './Search.astro'; -import ThemeSelect from './ThemeSelect.astro'; - -interface Props { - locale: string | undefined; -} ---- - -
- {config.title} - - -
- - diff --git a/packages/starbook/components/Icon.astro b/packages/starbook/components/Icon.astro deleted file mode 100644 index e080d18f..00000000 --- a/packages/starbook/components/Icon.astro +++ /dev/null @@ -1,36 +0,0 @@ ---- -import { Icons } from './Icons'; - -interface Props { - name: keyof typeof Icons; - label?: string; - color?: string; - size?: string; - class?: string; -} - -const { name, label, size = '1em', color = '' } = Astro.props; -const a11yAttrs = label - ? ({ 'aria-label': label } as const) - : ({ 'aria-hidden': 'true' } as const); ---- - - - - diff --git a/packages/starbook/components/Icons.ts b/packages/starbook/components/Icons.ts deleted file mode 100644 index 133e6fe6..00000000 --- a/packages/starbook/components/Icons.ts +++ /dev/null @@ -1,43 +0,0 @@ -export const Icons = { - 'up-caret': - '', - 'down-caret': - '', - 'right-caret': - '', - 'right-arrow': - '', - 'left-arrow': - '', - bars: '', - translate: - '', - moon: '', - sun: '', - laptop: - '', - 'open-book': - '', - information: - '', - magnifier: - '', - 'forward-slash': - '', - close: - '', - error: - '', - warning: - '', - 'approve-check-circle': - '', - 'approve-check': - '', - rocket: - '', - 'list-format': - '', - github: - '', -}; diff --git a/packages/starbook/components/LanguageSelect.astro b/packages/starbook/components/LanguageSelect.astro deleted file mode 100644 index 65d978e2..00000000 --- a/packages/starbook/components/LanguageSelect.astro +++ /dev/null @@ -1,51 +0,0 @@ ---- -import config from 'virtual:starbook/user-config'; -import { localizedUrl } from '../utils/localizedUrl'; -import Select from './Select.astro'; - -interface Props { - locale: string | undefined; -} - -/** - * Get the equivalent of the current page path for the passed locale. - */ -function localizedPathname(locale: string | undefined): string { - return localizedUrl(Astro.url, locale).pathname; -} ---- - -{ - config.isMultilingual && ( - - - { - Astro.props.options.map(({ value, selected, label }) => ( -