diff --git a/assets/css/code.css b/assets/css/code.css
index 08d9346fcc..2d77aa26a5 100644
--- a/assets/css/code.css
+++ b/assets/css/code.css
@@ -1,64 +1,80 @@
@layer components {
- .highlight,
- :not(pre) > code {
- font-size: 0.875em;
- border: 1px solid;
- border-radius: theme("spacing.1");
- background: theme("colors.white");
- border-color: theme("colors.gray.light.300");
- .dark & {
- background: theme("colors.gray.dark.200");
- border-color: theme("colors.gray.dark.300");
+ .prose {
+ .highlight,
+ :not(pre) > code {
+ font-size: 0.875em;
+ border: 1px solid;
+ border-radius: theme("spacing.1");
+ background: theme("colors.white");
+ border-color: theme("colors.gray.light.300");
+ .dark & {
+ background: theme("colors.gray.dark.200");
+ border-color: theme("colors.gray.dark.300");
+ }
}
- }
- :not(pre) > code {
- background: theme("colors.gray.light.200");
- display: inline-block;
- margin: 0;
- font-weight: 400;
- overflow-wrap: anywhere;
- padding: 0 4px;
- table & {
- overflow-wrap: unset;
- }
- }
-
- /* Indented code blocks */
- :not(.highlight) > pre {
- @apply my-4 overflow-x-auto p-3;
- font-size: 0.875em;
- border: 1px solid;
- border-radius: theme("spacing.1");
- background: theme("colors.white");
- border-color: theme("colors.gray.light.300");
- .dark & {
- background: theme("colors.gray.dark.200");
- border-color: theme("colors.gray.dark.300");
- }
- }
-
- .highlight {
- @apply my-4 overflow-x-auto p-3;
-
- /* LineTableTD */
- .lntd {
- vertical-align: top;
- padding: 0;
+ :not(pre) > code {
+ background: theme("colors.gray.light.200");
+ display: inline-block;
margin: 0;
- border: 0;
+ font-weight: 400;
+ overflow-wrap: anywhere;
+ padding: 0 4px;
+ table & {
+ overflow-wrap: unset;
+ }
}
- /* LineTable */
- .lntable {
- display: table;
- width: 100%;
- border-spacing: 0;
- padding: 0;
- margin: 0;
- border: 0;
- /* LineNumberColumnHighlight */
- .lntd:first-child .hl {
- display: block;
+
+ /* Indented code blocks */
+ :not(.highlight) > pre {
+ @apply my-4 overflow-x-auto p-3;
+ font-size: 0.875em;
+ border: 1px solid;
+ border-radius: theme("spacing.1");
+ background: theme("colors.white");
+ border-color: theme("colors.gray.light.300");
+ .dark & {
+ background: theme("colors.gray.dark.200");
+ border-color: theme("colors.gray.dark.300");
+ }
+ }
+
+ .highlight {
+ @apply my-4 overflow-x-auto p-3;
+
+ /* LineTableTD */
+ .lntd {
+ vertical-align: top;
+ padding: 0;
+ margin: 0;
+ white-space: nowrap;
+ font-weight: 400;
+ padding: 0 4px;
+ }
+
+ .highlight {
+ @apply my-4 overflow-x-auto p-3;
+
+ /* LineTableTD */
+ .lntd {
+ vertical-align: top;
+ padding: 0;
+ margin: 0;
+ border: 0;
+ }
+ /* LineTable */
+ .lntable {
+ display: table;
+ width: 100%;
+ border-spacing: 0;
+ padding: 0;
+ margin: 0;
+ border: 0;
+ /* LineNumberColumnHighlight */
+ .lntd:first-child .hl {
+ display: block;
+ }
+ }
}
}
}
diff --git a/assets/css/kapa.css b/assets/css/kapa.css
new file mode 100644
index 0000000000..2976a1853c
--- /dev/null
+++ b/assets/css/kapa.css
@@ -0,0 +1,17 @@
+.mantine-Modal-root {
+ ol {
+ list-style-type: decimal;
+ }
+
+ .mantine-List-root {
+ min-width: 100%;
+ }
+
+ .mantine-List-itemWrapper {
+ max-width: 100%;
+ }
+
+ .mantine-Prism-copy {
+ background-color: rgb(20, 21, 23)
+ }
+}
diff --git a/assets/css/styles.css b/assets/css/styles.css
index 9a0e27ef3a..641ad6ecec 100644
--- a/assets/css/styles.css
+++ b/assets/css/styles.css
@@ -10,6 +10,7 @@
@import "/assets/css/code";
@import "/assets/css/toc";
@import "/assets/css/callouts";
+@import "/assets/css/kapa";
@import "tailwindcss/utilities";
@import "/assets/css/syntax-light";
diff --git a/hugo.yaml b/hugo.yaml
index d1af6445c2..f203e505d4 100644
--- a/hugo.yaml
+++ b/hugo.yaml
@@ -80,6 +80,8 @@ languages:
languageName: English
params:
+ kapa:
+ id: ba5c2cbc-6535-4334-a72e-050f7a681c8a
analytics:
hotjar:
prod: 3169877
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 346ad0da13..6b0adedcf6 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -36,6 +36,32 @@
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
{{ end }}
+{{ if hugo.IsProduction }}
+ {{/* kapa.ai widget */}}
+
+{{ end }}
{{/* preload Roboto Flex as it's a critical font: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload */}}
{{ partialCached "utils/css.html" "-" }}
diff --git a/static/assets/images/logo-icon-white.svg b/static/assets/images/logo-icon-white.svg
new file mode 100644
index 0000000000..cc60a3627a
--- /dev/null
+++ b/static/assets/images/logo-icon-white.svg
@@ -0,0 +1,19 @@
+