Skip to content

Commit 79d559d

Browse files
committed
review fixes
1 parent c1c91e0 commit 79d559d

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

docusaurus.config.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ const config = {
2323
"data-modal-example-questions": "How to speed up queries?,How to use materialized views?",
2424
"data-kapa-branding-hide": "true",
2525
async: true,
26-
defer: true,
26+
defer: true, // execute after document parsing, but before firing DOMContentLoaded event
2727
}],
28+
// Settings for Docusaurus Faster - build optimizations
2829
future: {
2930
experimental_faster: {
3031
swcJsLoader: true,
@@ -156,17 +157,21 @@ const config = {
156157
}),
157158
],
158159
],
160+
// Inserts tags into the <head></head>
159161
headTags:
160162
[
161163
{
164+
// Ask AI component
162165
tagName: 'link',
163166
attributes: {
164167
href: 'https://widget.kapa.ai',
165-
rel: 'preconnect',
168+
rel: 'preconnect', // preemptively initiate a connection to resource
166169
}
167170

168171
},
169172
{
173+
// Google's CDN. Caches all 'static' files in a server near to you
174+
// to reduce load times.
170175
tagName: 'link',
171176
attributes: {
172177
href: 'https://www.gstatic.com',
@@ -334,10 +339,15 @@ const config = {
334339
},
335340
}
336341
},
342+
// N.B - If you need to redirect a page please do so from vercel.json
343+
// '@docusaurus/plugin-client-redirects',
344+
// {
345+
// redirects: []
346+
// },
337347
chHeader
338348
],
339349
customFields: {
340-
blogSidebarLink: '/docs/knowledgebase',
350+
blogSidebarLink: '/docs/knowledgebase', // Used for KB article page
341351
galaxyApiEndpoint: process.env.NEXT_PUBLIC_GALAXY_API_ENDPOINT || 'http://localhost:3000',
342352
secondaryNavItems: [
343353
{

src/css/default.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,5 @@
156156
--docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.2);
157157
--ifm-menu-link-sublist-icon: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9988 9.21211L16.2363 13.4684L15.4488 14.2559L11.9988 10.8059L8.54883 14.2559L7.76133 13.4684L11.9988 9.21211Z' fill='%23E2E3E7' /%3E%3Cpath d='M11.9988 9.21211L16.2363 13.4684L15.4488 14.2559L11.9988 10.8059L8.54883 14.2559L7.76133 13.4684L11.9988 9.21211Z' fill='black' fill-opacity='0.2'/%3E%3C/svg%3E");
158158

159-
}
159+
}
160+

src/css/home.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,5 @@ img.home-svg svg path {
240240
@media (min-width: 768px) {
241241
padding-left: 4rem !important;
242242
}
243-
}
243+
}
244+

static/fonts/inter.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* Previously this was loaded from a CDN, have moved it here */
2+
13
/* cyrillic-ext */
24
@font-face {
35
font-family: 'Inter';
@@ -60,4 +62,5 @@
6062
font-display: swap;
6163
src: url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
6264
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
63-
}
65+
}
66+

static/fonts/snippet.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)