Skip to content

Commit

Permalink
feat: add redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-ub committed Aug 28, 2024
1 parent 2b5612e commit 782554b
Showing 1 changed file with 100 additions and 97 deletions.
197 changes: 100 additions & 97 deletions apps/www/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,107 +9,110 @@ import AutoImport from "astro-auto-import";

// https://astro.build/config
export default defineConfig({
site: siteConfig.url,
integrations: [
starlight({
title: siteConfig.name,
titleDelimiter: "-",
expressiveCode: {
themes: [theme],
styleOverrides: {
textMarkers: {
markHue: "rgba(63,63,70,.5)",
},
},
},
logo: { src: "./src/assets/logo.svg" },
favicon: "/favicon.ico",
social: {
github: siteConfig.links.github,
"x.com": siteConfig.links.twitter,
},
sidebar: [
{
label: "Getting Started",
items: [
{
label: "Introduction",
slug: "docs",
},
{
label: "Installation",
slug: "docs/installation",
},
{
label: "components.json",
slug: "docs/components-json",
site: siteConfig.url,
integrations: [
starlight({
title: siteConfig.name,
titleDelimiter: "-",
expressiveCode: {
themes: [theme],
styleOverrides: {
textMarkers: {
markHue: "rgba(63,63,70,.5)",
},
},
},
{
label: "Theming",
slug: "docs/theming",
logo: { src: "./src/assets/logo.svg" },
favicon: "/favicon.ico",
social: {
github: siteConfig.links.github,
"x.com": siteConfig.links.twitter,
},
{
label: "CLI",
slug: "docs/cli",
sidebar: [
{
label: "Getting Started",
items: [
{
label: "Introduction",
slug: "docs",
},
{
label: "Installation",
slug: "docs/installation",
},
{
label: "components.json",
slug: "docs/components-json",
},
{
label: "Theming",
slug: "docs/theming",
},
{
label: "CLI",
slug: "docs/cli",
},
{
label: "Typography",
slug: "docs/components/typography",
},
],
},
{
label: "Components",
autogenerate: {
directory: "docs/components",
},
},
],
customCss: ["./src/fonts/font-face.css", "./src/tailwind.css"],
components: {
Header: "./src/components/starlight/header/Header.astro",
SiteTitle: "./src/components/starlight/SiteTitle.astro",
SocialIcons: "./src/components/starlight/SocialIcons.astro",
Search: "./src/components/starlight/Search.astro",
Hero: "./src/components/starlight/Hero.astro",
ContentPanel: "./src/components/starlight/ContentPanel.astro",
PageTitle: "./src/components/starlight/PageTitle.astro",
MarkdownContent: "./src/components/starlight/MarkdownContent.astro",
TwoColumnContent: "./src/components/starlight/TwoColumnContent.astro",
Sidebar: "./src/components/starlight/Sidebar.astro",
Pagination: "./src/components/starlight/Pagination.astro",
MobileMenuToggle: "./src/components/starlight/MobileMenuToggle.astro",
PageFrame: "./src/components/starlight/PageFrame.astro",
PageSidebar: "./src/components/starlight/PageSidebar.astro",
},
{
label: "Typography",
slug: "docs/components/typography",
},
],
}),
AutoImport({
imports: [
"@/components/ComponentPreview.astro",
"@/components/ComponentSource.astro",
],
}),
tailwind(),
angular(),
],
redirects: {
'/docs/components': '/docs/components/accordion',
},
vite: {
optimizeDeps: {
include: [
"@radix-ng/primitives",
"@angular/common",
"@angular/core",
"@angular/cdk",
"@ng-icons/core",
"@ng-icons/lucide",
],
},
{
label: "Components",
autogenerate: {
directory: "docs/components",
},
ssr: {
noExternal: [
"@radix-ng/primitives",
"@angular/cdk",
"@ng-icons/core",
"@ng-icons/lucide",
],
},
],
customCss: ["./src/fonts/font-face.css", "./src/tailwind.css"],
components: {
Header: "./src/components/starlight/header/Header.astro",
SiteTitle: "./src/components/starlight/SiteTitle.astro",
SocialIcons: "./src/components/starlight/SocialIcons.astro",
Search: "./src/components/starlight/Search.astro",
Hero: "./src/components/starlight/Hero.astro",
ContentPanel: "./src/components/starlight/ContentPanel.astro",
PageTitle: "./src/components/starlight/PageTitle.astro",
MarkdownContent: "./src/components/starlight/MarkdownContent.astro",
TwoColumnContent: "./src/components/starlight/TwoColumnContent.astro",
Sidebar: "./src/components/starlight/Sidebar.astro",
Pagination: "./src/components/starlight/Pagination.astro",
MobileMenuToggle: "./src/components/starlight/MobileMenuToggle.astro",
PageFrame: "./src/components/starlight/PageFrame.astro",
PageSidebar: "./src/components/starlight/PageSidebar.astro",
},
}),
AutoImport({
imports: [
"@/components/ComponentPreview.astro",
"@/components/ComponentSource.astro",
],
}),
tailwind(),
angular(),
],
vite: {
optimizeDeps: {
include: [
"@radix-ng/primitives",
"@angular/common",
"@angular/core",
"@angular/cdk",
"@ng-icons/core",
"@ng-icons/lucide",
],
},
ssr: {
noExternal: [
"@radix-ng/primitives",
"@angular/cdk",
"@ng-icons/core",
"@ng-icons/lucide",
],
},
},
});

0 comments on commit 782554b

Please sign in to comment.