summaryrefslogtreecommitdiff
path: root/docs/src/components/PageContent/PageContent.astro
diff options
context:
space:
mode:
authorGravatar Jonathan Neal <jonathantneal@hotmail.com> 2021-11-11 12:09:48 -0500
committerGravatar GitHub <noreply@github.com> 2021-11-11 12:09:48 -0500
commite0c3318c09c6d8158e51d09e88eae32bb26f7bb7 (patch)
tree3e61b44ba0987a728fca047d1182d7a53a42b1a7 /docs/src/components/PageContent/PageContent.astro
parent7bb768ddab3d7a4d98682f0a74653e3e8c40602c (diff)
downloadastro-e0c3318c09c6d8158e51d09e88eae32bb26f7bb7.tar.gz
astro-e0c3318c09c6d8158e51d09e88eae32bb26f7bb7.tar.zst
astro-e0c3318c09c6d8158e51d09e88eae32bb26f7bb7.zip
Update Astro docs to use v0.21 (#1738)
* update docs site to leverage astro v0.21 * fix resolutions * fix docsearch import * Resolve `@docsearch/react` is a cross-execution-context-friendly way * chore: update astro version * fix: remove line highlighting syntax * fix: braces inside of attr string * Match current astro version * Trim leading newline in MainLayout.astro template * Move card grid styles into Layout Co-authored-by: Nate Moore <nate@skypack.dev>
Diffstat (limited to 'docs/src/components/PageContent/PageContent.astro')
-rw-r--r--docs/src/components/PageContent/PageContent.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/components/PageContent/PageContent.astro b/docs/src/components/PageContent/PageContent.astro
index 0598d7a2f..91ea90d62 100644
--- a/docs/src/components/PageContent/PageContent.astro
+++ b/docs/src/components/PageContent/PageContent.astro
@@ -1,11 +1,11 @@
---
-const {content, githubEditUrl, currentPage} = Astro.props;
-const title = content.title;
-const headers = content.astro?.headers;
import MoreMenu from '../RightSidebar/MoreMenu.astro';
import TableOfContents from '../RightSidebar/TableOfContents.tsx';
import {getLanguageFromURL} from '../../util.ts';
import {SIDEBAR} from '../../config.ts';
+const {content, githubEditUrl, currentPage} = Astro.props;
+const title = content.title;
+const headers = content.astro?.headers;
const langCode = getLanguageFromURL(currentPage);
const links = SIDEBAR[langCode].filter(x => x.link && typeof x.header === 'undefined');
// handle cases with a trailing slash or not