Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guru widget Introduced #1996

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading