Skip to content

Commit d7492df

Browse files
committed
chore: remove TopBar
1 parent 50d4cc1 commit d7492df

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

docs/site/src/layouts/MainLayout.astro

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,6 @@ import * as CONFIG from '../config';
1111
const { content = {} } = Astro.props;
1212
const currentPage = new URL(Astro.request.url).pathname;
1313
const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}${currentPage === '/' ? '/index' : currentPage}.md`;
14-
15-
const apiKey = `YJIGb4i01jvw0SRdL5Bt`; // ggignore
16-
17-
const handleError = (err: any) => {
18-
console.log(err);
19-
// The requested Builder content could not be found.
20-
if (err.response.status === 404) {
21-
return { data: null };
22-
}
23-
throw err;
24-
};
25-
26-
const topBarUrl = new URL('https://cdn.builder.io/api/v1/qwik/oss-top-bar');
27-
topBarUrl.searchParams.set('apiKey', apiKey);
28-
topBarUrl.searchParams.set('userAttributes.site', 'partytown.qwik.dev');
29-
topBarUrl.searchParams.set('userAttributes.url', new URL(Astro.request.url).pathname);
30-
topBarUrl.searchParams.set('cachebust', 'true');
31-
const topBarData = await fetch(topBarUrl.toString())
32-
.then((res) => res.json())
33-
.catch(handleError);
3414
---
3515

3616
<html dir={content.dir ?? 'ltr'} lang={content.lang ?? 'en-us'} class="initial">
@@ -130,7 +110,6 @@ const topBarData = await fetch(topBarUrl.toString())
130110
</head>
131111

132112
<body>
133-
<div set:html={topBarData.html}></div>
134113
<Header {currentPage} />
135114
<main class="layout">
136115
<aside id="grid-left" class="grid-sidebar" title="Site Navigation">

0 commit comments

Comments
 (0)