Skip to content

Commit cb68108

Browse files
committed
fix: don't serialize mdx raw code
1 parent d357249 commit cb68108

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website-v3/src/components/Scripts.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
import context from 'src/context';
33
44
const ctx = context.get();
5-
const { config, domain } = ctx;
5+
const { config, theme, owner, repository, ref, domain } = ctx;
66
---
77

8-
<script is:inline define:vars={{ ctx }}>
8+
<script is:inline define:vars={{ config, theme, owner, repository, ref, domain }}>
99
// Load the context into the window, so we can access it from other scripts
1010
// without losing access to Astros script hoisting.
11-
window.docs_page = { ...ctx };
11+
window.docs_page = { config, theme, owner, repository, ref, domain };
1212
</script>
1313

1414
<script>

0 commit comments

Comments
 (0)