-
-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
265 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@astrojs/starlight": patch | ||
--- | ||
|
||
Fix “next page” arrow showing on pages not in sidebar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@astrojs/starlight": patch | ||
--- | ||
|
||
Add support for a “splash” layout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@astrojs/starlight": patch | ||
--- | ||
|
||
Support hiding right sidebar table of contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@astrojs/starlight": patch | ||
--- | ||
|
||
Move edit page link to page footer so it is accessible on mobile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
import config from 'virtual:starlight/user-config'; | ||
import { SidebarEntry, getPrevNextLinks } from '../utils/navigation'; | ||
import type { StarlightDocsEntry } from '../utils/routing'; | ||
import type { LocaleData } from '../utils/slugs'; | ||
import LastUpdated from '../components/LastUpdated.astro'; | ||
import PrevNextLinks from '../components/PrevNextLinks.astro'; | ||
import EditLink from './EditLink.astro'; | ||
interface Props extends LocaleData { | ||
entry: StarlightDocsEntry; | ||
sidebar: SidebarEntry[]; | ||
} | ||
const { entry, dir, lang, locale, sidebar } = Astro.props; | ||
const prevNextLinks = getPrevNextLinks(sidebar); | ||
--- | ||
|
||
<footer> | ||
<div class="meta flex"> | ||
{ | ||
config.editLink.baseUrl && ( | ||
<EditLink data={entry.data} id={entry.id} {locale} /> | ||
) | ||
} | ||
<LastUpdated id={entry.id} {lang} {locale} /> | ||
</div> | ||
<PrevNextLinks {...prevNextLinks} {dir} {locale} /> | ||
</footer> | ||
|
||
<style> | ||
.meta { | ||
gap: 0.75rem 3rem; | ||
justify-content: space-between; | ||
flex-wrap: wrap; | ||
margin-block: 3rem 1.5rem; | ||
font-size: var(--sl-text-sm); | ||
color: var(--sl-color-gray-3); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
--- | ||
import type { MarkdownHeading } from 'astro'; | ||
import config from 'virtual:starlight/user-config'; | ||
import type { StarlightDocsEntry } from '../utils/routing'; | ||
import EditLink from './EditLink.astro'; | ||
import RightSidebarPanel from './RightSidebarPanel.astro'; | ||
import MobileTableOfContents from './TableOfContents/MobileTableOfContents.astro'; | ||
import TableOfContents from './TableOfContents.astro'; | ||
import { generateToC } from './TableOfContents/generateToC'; | ||
import { useTranslations } from '../utils/translations'; | ||
interface Props { | ||
entry: StarlightDocsEntry; | ||
headings: MarkdownHeading[]; | ||
locale: string | undefined; | ||
tocConfig: { maxHeadingLevel: number; minHeadingLevel: number } | false; | ||
} | ||
const { entry, headings, locale } = Astro.props; | ||
const { headings, locale, tocConfig } = Astro.props; | ||
const t = useTranslations(locale); | ||
const tocProps = tocConfig && { | ||
...tocConfig, | ||
locale, | ||
toc: generateToC(headings, { | ||
...tocConfig, | ||
title: t('tableOfContents.overview'), | ||
}), | ||
}; | ||
--- | ||
|
||
<RightSidebarPanel> | ||
<TableOfContents {headings} {locale} /> | ||
</RightSidebarPanel> | ||
<RightSidebarPanel> | ||
{ | ||
config.editLink.baseUrl && ( | ||
<> | ||
<h2>Contribute</h2> | ||
<EditLink data={entry.data} id={entry.id} {locale} /> | ||
</> | ||
) | ||
} | ||
</RightSidebarPanel> | ||
{ | ||
tocProps && ( | ||
<> | ||
<MobileTableOfContents {...tocProps} /> | ||
<RightSidebarPanel> | ||
<TableOfContents {...tocProps} /> | ||
</RightSidebarPanel> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.