Skip to content

Commit

Permalink
guru widget introduced
Browse files Browse the repository at this point in the history
  • Loading branch information
kursataktas committed Nov 12, 2024
1 parent e4e64d7 commit e55c866
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
_*
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 e55c866

Please sign in to comment.