Skip to content

Commit b1751bf

Browse files
committed
Added the chatbot to the Developer Portal
1 parent e834efa commit b1751bf

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

layouts/_default/baseof.html

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ with .Site.Params.isoCode | default (.Site.LanguageCode | default " en") }} {{- . -}} {{ end }}" dir="{{ if .Site.Params.rtl | default false -}}
3+
rtl
4+
{{- else -}}
5+
ltr
6+
{{- end }}" class="scroll-smooth" data-default-appearance="{{ .Site.Params.defaultAppearance | default " light" }}"
7+
data-auto-appearance="{{ .Site.Params.autoSwitchAppearance | default " true" }}">
8+
{{- partial "head.html" . -}}
9+
10+
<body
11+
class="flex flex-col h-screen px-6 m-auto text-lg leading-7 max-w-7xl bg-neutral text-neutral-900 dark:bg-neutral-800 dark:text-neutral 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">
12+
<div id="the-top" class="absolute flex self-center">
13+
<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"
14+
href="#main-content"><span
15+
class="font-bold text-primary-600 ltr:pr-2 rtl:pl-2 dark:text-primary-400">&darr;</span>{{ i18n
16+
"nav.skip_to_main" }}</a>
17+
</div>
18+
{{ $header := print "partials/header/" .Site.Params.header.layout ".html" }}
19+
{{ if templates.Exists $header }}
20+
{{ partial $header . }}
21+
{{ else }}
22+
{{ partial "partials/header/basic.html" . }}
23+
{{ end }}
24+
<div class="relative flex flex-col grow">
25+
<main id="main-content" class="grow">
26+
{{ block "main" . }}{{ end }}
27+
{{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }}
28+
{{- partial "scroll-to-top.html" . -}}
29+
{{ end }}
30+
</main>
31+
{{- partial "footer.html" . -}}
32+
{{ if .Site.Params.enableSearch | default false }}
33+
{{- partial "search.html" . -}}
34+
{{ end }}
35+
</div>
36+
</body>
37+
38+
<script
39+
async
40+
src="https://widget.kapa.ai/kapa-widget.bundle.js"
41+
data-website-id="0c00ab8b-fc1a-4397-85fb-8a741ad3582e"
42+
data-project-name="Developer Portal"
43+
data-project-color="#38393a"
44+
45+
data-project-logo="{{ "logo-ai.png" | relURL }}"
46+
data-button-image="{{ "logo-ai-new.png" | relURL }}"
47+
48+
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!
49+
\n\n*Note*: AI-generated information may be incomplete or inaccurate. Always verify critical information with official sources."
50+
51+
data-modal-example-questions="How do I put an ESP32-DevkitC into download mode?"
52+
data-button-text-font-size="0px"
53+
data-button-border-radius="50%"
54+
data-button-bg-color="#38393a"
55+
data-button-border="#38393a"
56+
data-button-height="52px"
57+
data-button-width="52px"
58+
data-button-animation-enabled="false"
59+
data-button-image-height="100%"
60+
data-button-image-width="100%"
61+
data-button-padding="0"
62+
data-button-hover-animation-enabled="false"
63+
data-button-position-right="16px"
64+
data-button-position-bottom="96px"
65+
data-button-box-shadow="0px 6px 12px 1px rgba(0,0,0,0.16)"
66+
data-bot-protection-mechanism="hcaptcha"
67+
></script>
68+
69+
</html>

static/logo-ai-new.png

4.96 KB
Loading

static/logo-ai.png

18.5 KB
Loading

0 commit comments

Comments
 (0)