Skip to content

Commit e9d2535

Browse files
authored
Guru widget Introduced (#1996)
Hey @RobbeSneyders As discussed in [this PR](#1989), I added the AI widget to the docs. Here is how it looks: <img width="1667" alt="Screenshot 2024-11-12 at 20 36 06" src="https://github.com/user-attachments/assets/e26d245f-ab7d-461c-9e7b-1f54e01f8392">
1 parent e4e64d7 commit e9d2535

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/_static/js/guru_widget.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
document.write(`
2+
<script src="https://guru-widget.pages.dev/guru_widget.latest.min.js"
3+
data-text="Ask AI"
4+
data-link="https://gurubase.io/g/connexion"
5+
data-bg-color="#64B45C"
6+
data-icon-url="https://gurubase.io/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F58754196%3Fv%3D4&w=96&q=75"
7+
data-margins='{"bottom": "6rem", "right": "1rem"}'>
8+
</script>
9+
`);

docs/conf.py

+4
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@
162162
'css/default.css',
163163
]
164164

165+
html_js_files = [
166+
'js/guru_widget.js',
167+
]
168+
165169
# Add any extra paths that contain custom files (such as robots.txt or
166170
# .htaccess) here, relative to this directory. These files are copied
167171
# directly to the root of the documentation.

0 commit comments

Comments
 (0)