Skip to content

Commit

Permalink
Guru widget Introduced (#1996)
Browse files Browse the repository at this point in the history
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">
  • Loading branch information
kursataktas authored Nov 14, 2024
1 parent e4e64d7 commit e9d2535
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/_static/js/guru_widget.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
document.write(`
<script src="https://guru-widget.pages.dev/guru_widget.latest.min.js"
data-text="Ask AI"
data-link="https://gurubase.io/g/connexion"
data-bg-color="#64B45C"
data-icon-url="https://gurubase.io/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F58754196%3Fv%3D4&w=96&q=75"
data-margins='{"bottom": "6rem", "right": "1rem"}'>
</script>
`);
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@
'css/default.css',
]

html_js_files = [
'js/guru_widget.js',
]

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
Expand Down

0 comments on commit e9d2535

Please sign in to comment.