-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Integration to Docsify | ||
|
||
It's very easy to integrate Documate into Docsify. You just need to follow the [Native JavaScript Startup](/getting-started/vanilla-js) guide to import js and provide a button with the ID `ask-ai` in your doc's `index.html` page. | ||
|
||
```html | ||
<button id="ask-ai" data-endpoint="https://xxxxxxxx.us.aircode.run/ask"></button> | ||
... | ||
<script src="https://unpkg.com/@documate/ui"></script> | ||
``` | ||
|
||
You can place the button anywhere you like, but the most convenient way is to [enable the NavBar](https://docsify.js.org/#/configuration?id=loadnavbar) and then place the button on the NavBar. | ||
|
||
There is an [online Example](https://spritejs.vercel.app/#/). | ||
|
||
<img src="https://aircode-yvo.b-cdn.net/resource/14-y607yzcv44.jpg" width="400"> | ||
|
||
<img src="https://aircode-yvo.b-cdn.net/resource/1695090094690-cbh1nh85p3.jpg" width="400"> |