Skip to content

Commit f265990

Browse files
authored
Add the chatbot to the Developer Portal (#474)
* Added the chatbot to the Developer Portal Added the new data-site-id for the Developer Portal Fix the layout issue Fix the layout issue and webp images for the chatbot logos * Fix the partials issue
1 parent 748279e commit f265990

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

layouts/_default/baseof.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ with .Site.Params.isoCode | default (.Site.LanguageCode | default "en") }}{{- . -}}{{ end }}" dir="{{ if .Site.Params.rtl | default false }}rtl{{ else }}ltr{{ end }}"
3+
class="scroll-smooth"
4+
data-default-appearance="{{ .Site.Params.defaultAppearance | default "light" }}"
5+
data-auto-appearance="{{ .Site.Params.autoSwitchAppearance | default "true" }}">
6+
7+
{{- partial "head.html" . -}}
8+
9+
<body class="bg-neutral text-neutral-900 dark:bg-neutral-800 dark:text-neutral">
10+
11+
<!-- Layout container to center all content -->
12+
<div class="flex flex-col min-h-screen w-full max-w-7xl mx-auto px-6 sm:px-14 md:px-24 lg:px-32 scrollbar-thin scrollbar-track-neutral-200 scrollbar-thumb-neutral-400 dark:scrollbar-track-neutral-800 dark:scrollbar-thumb-neutral-600">
13+
14+
<div id="the-top" class="absolute flex self-center">
15+
<a class="px-3 py-1 text-sm -translate-y-8 rounded-b-lg bg-primary-200 focus:translate-y-0 dark:bg-neutral-600"
16+
href="#main-content">
17+
<span class="font-bold text-primary-600 ltr:pr-2 rtl:pl-2 dark:text-primary-400">&darr;</span>{{ i18n "nav.skip_to_main" }}
18+
</a>
19+
</div>
20+
21+
{{ $layout := default "basic" .Site.Params.header.layout }}
22+
{{ $exists := printf "partials/header/%s.html" $layout }}
23+
{{ $call := printf "header/%s.html" $layout }}
24+
{{ if templates.Exists $exists }}
25+
{{ partial $call . }}
26+
{{ else }}
27+
{{ partial "header/basic.html" . }}
28+
{{ end }}
29+
30+
<div class="relative flex flex-col grow">
31+
<main id="main-content" class="grow pb-[120px]">
32+
{{ block "main" . }}{{ end }}
33+
{{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }}
34+
{{- partial "scroll-to-top.html" . -}}
35+
{{ end }}
36+
</main>
37+
38+
{{- partial "footer.html" . -}}
39+
40+
{{ if .Site.Params.enableSearch | default false }}
41+
{{- partial "search.html" . -}}
42+
{{ end }}
43+
</div>
44+
45+
</div> <!-- End container -->
46+
47+
<script
48+
async
49+
src="https://widget.kapa.ai/kapa-widget.bundle.js"
50+
data-website-id="10bca275-31d7-43dc-a7d7-160913512ad4"
51+
data-project-name="Developer Portal"
52+
data-project-color="#38393a"
53+
data-project-logo="{{ "logo-ai.webp" | relURL }}"
54+
data-button-image="{{ "logo-ai-new.webp" | relURL }}"
55+
data-modal-disclaimer="This custom large language model (LLM), trained on official documentation from espressif.com, is designed to provide technical support and answers related to Espressif’s products and services. Give it a try, share your thoughts, and let us know your feedback—we truly appreciate it!
56+
\n\n*Note*: AI-generated information may be incomplete or inaccurate. Always verify critical information with official sources."
57+
data-modal-example-questions="How do I put an ESP32-DevkitC into download mode?"
58+
data-button-text-font-size="0px"
59+
data-button-border-radius="50%"
60+
data-button-bg-color="#38393a"
61+
data-button-border="#38393a"
62+
data-button-height="52px"
63+
data-button-width="52px"
64+
data-button-animation-enabled="false"
65+
data-button-image-height="100%"
66+
data-button-image-width="100%"
67+
data-button-padding="0"
68+
data-button-hover-animation-enabled="false"
69+
data-button-position-right="16px"
70+
data-button-position-bottom="96px"
71+
data-button-box-shadow="0px 6px 12px 1px rgba(0,0,0,0.16)"
72+
data-bot-protection-mechanism="hcaptcha"
73+
></script>
74+
</body>
75+
</html>

static/logo-ai-new.webp

2 KB
Loading

static/logo-ai.webp

5.35 KB
Loading

0 commit comments

Comments
 (0)