@astrojs/starlight
Advanced tools
Comparing version 0.22.0 to 0.22.1
{ | ||
"name": "@astrojs/starlight", | ||
"version": "0.22.0", | ||
"version": "0.22.1", | ||
"description": "Build beautiful, high-performance documentation websites with Astro", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -114,3 +114,3 @@ import type { MarkdownHeading } from 'astro'; | ||
/** Get the site title for a given language. **/ | ||
function getSiteTitle(lang: string): string { | ||
export function getSiteTitle(lang: string): string { | ||
const defaultLang = config.defaultLocale.lang as string; | ||
@@ -117,0 +117,0 @@ if (lang && config.title[lang]) { |
@@ -6,3 +6,3 @@ import { z } from 'astro/zod'; | ||
import { stripLeadingAndTrailingSlashes } from './path'; | ||
import { getToC, type PageProps, type StarlightRouteData } from './route-data'; | ||
import { getSiteTitle, getToC, type PageProps, type StarlightRouteData } from './route-data'; | ||
import type { StarlightDocsEntry } from './routing'; | ||
@@ -227,2 +227,3 @@ import { slugToLocaleData, urlToSlug } from './slugs'; | ||
sidebar, | ||
siteTitle: getSiteTitle(localeData.lang), | ||
slug, | ||
@@ -229,0 +230,0 @@ toc: getToC({ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
886671
7918