Your documentation can be embedded to allow your users to view it from within your product. When triggered by your end user, the Embedded Documentation appears as a drawer that is the full height of their screen. This trigger action, along with the style of the drawer, can be customized to your liking.
Insert the script below into the head of your product's index.html file.
Script to Insert
Inserted Script in index.html
Embedded Documentation Script
These are the properties you pass in when mounting your Umbria component as shown above. They are used to initialize and stylize your Umbria component.
Property | Description | Data Type |
---|---|---|
| The id of the site you wish to attach your embedded docs to; can be found in your Site Settings | string |
| Key(s) to press to trigger embedded docs | TKeyCombo |
| The URL of the page that will be displayed if no page URL is passed | Empty |
This data type specifies a hotkey combination. An example for the hotkey Ctrl
+ c
is provided below.
These optional properties allow you to customize the Embedded Documentation including changes to theme colors, wording, and size.
Property | Description | Data Type | Default |
---|---|---|---|
| Control the stacking order of the chatbot on the webpage |
|
|
| Width of the chatbot |
|
|
| The color of the arrow icon on the button in the bottom left of the docs drawer |
|
|
| The background color the button in the bottom left of the docs drawer |
|
|
| The color of the text on the "AI Assistant" button in the bottom right of the docs drawer |
|
|
| The color of the icon on the "AI Assistant" button in the bottom right of the docs drawer |
|
|
| The color of the background on the "AI Assistant" button in the bottom right of the docs drawer |
|
|
| The text of the "AI Assistant" button in the bottom right of the docs drawer |
|
|
You can use Event Functions to trigger restyle or control your docs from your code.
The open-docs
event function can be invoked to make your docs appear. This function takes the URL of the page to display as a parameter.
For example, this function can be called when clicking an icon or button to trigger your documentation to open on a specific page.
file.tsx
The update-docs
event function can be invoked to restyle the embedded docs programmatically. This event function takes any subset of the style parameters above.
For example, this function can be called to restyle the embedded docs for light-mode or dark-mode programmatically or to customize the title of the AI Assistant button.
file.tsx
In the example below, we mount the docs
component to our site 663bce9d7c83fec5f654479a
, set the docs to default open at https://docs.umbriadocs.com/
, configure it to be opened with the hotkey ctrl
+ alt
+ 2
, set the width to be 600
, and set the icon of the exit button to be #4285F4
.
Fullscreen AI Chatbot Script with Customization
Your documentation can be embedded to allow your users to view it from within your product. When triggered by your end user, the Embedded Documentation appears as a drawer that is the full height of their screen. This trigger action, along with the style of the drawer, can be customized to your liking.
Insert the script below into the head of your product's index.html file.
Script to Insert
Inserted Script in index.html
Embedded Documentation Script
These are the properties you pass in when mounting your Umbria component as shown above. They are used to initialize and stylize your Umbria component.
Property | Description | Data Type |
---|---|---|
| The id of the site you wish to attach your embedded docs to; can be found in your Site Settings | string |
| Key(s) to press to trigger embedded docs | TKeyCombo |
| The URL of the page that will be displayed if no page URL is passed | Empty |
This data type specifies a hotkey combination. An example for the hotkey Ctrl
+ c
is provided below.
These optional properties allow you to customize the Embedded Documentation including changes to theme colors, wording, and size.
Property | Description | Data Type | Default |
---|---|---|---|
| Control the stacking order of the chatbot on the webpage |
|
|
| Width of the chatbot |
|
|
| The color of the arrow icon on the button in the bottom left of the docs drawer |
|
|
| The background color the button in the bottom left of the docs drawer |
|
|
| The color of the text on the "AI Assistant" button in the bottom right of the docs drawer |
|
|
| The color of the icon on the "AI Assistant" button in the bottom right of the docs drawer |
|
|
| The color of the background on the "AI Assistant" button in the bottom right of the docs drawer |
|
|
| The text of the "AI Assistant" button in the bottom right of the docs drawer |
|
|
You can use Event Functions to trigger restyle or control your docs from your code.
The open-docs
event function can be invoked to make your docs appear. This function takes the URL of the page to display as a parameter.
For example, this function can be called when clicking an icon or button to trigger your documentation to open on a specific page.
file.tsx
The update-docs
event function can be invoked to restyle the embedded docs programmatically. This event function takes any subset of the style parameters above.
For example, this function can be called to restyle the embedded docs for light-mode or dark-mode programmatically or to customize the title of the AI Assistant button.
file.tsx
In the example below, we mount the docs
component to our site 663bce9d7c83fec5f654479a
, set the docs to default open at https://docs.umbriadocs.com/
, configure it to be opened with the hotkey ctrl
+ alt
+ 2
, set the width to be 600
, and set the icon of the exit button to be #4285F4
.
Fullscreen AI Chatbot Script with Customization
Your documentation can be embedded to allow your users to view it from within your product. When triggered by your end user, the Embedded Documentation appears as a drawer that is the full height of their screen. This trigger action, along with the style of the drawer, can be customized to your liking.
Insert the script below into the head of your product's index.html file.
Script to Insert
Inserted Script in index.html
Embedded Documentation Script
These are the properties you pass in when mounting your Umbria component as shown above. They are used to initialize and stylize your Umbria component.
Property | Description | Data Type |
---|---|---|
| The id of the site you wish to attach your embedded docs to; can be found in your Site Settings | string |
| Key(s) to press to trigger embedded docs | TKeyCombo |
| The URL of the page that will be displayed if no page URL is passed | Empty |
This data type specifies a hotkey combination. An example for the hotkey Ctrl
+ c
is provided below.
These optional properties allow you to customize the Embedded Documentation including changes to theme colors, wording, and size.
Property | Description | Data Type | Default |
---|---|---|---|
| Control the stacking order of the chatbot on the webpage |
|
|
| Width of the chatbot |
|
|
| The color of the arrow icon on the button in the bottom left of the docs drawer |
|
|
| The background color the button in the bottom left of the docs drawer |
|
|
| The color of the text on the "AI Assistant" button in the bottom right of the docs drawer |
|
|
| The color of the icon on the "AI Assistant" button in the bottom right of the docs drawer |
|
|
| The color of the background on the "AI Assistant" button in the bottom right of the docs drawer |
|
|
| The text of the "AI Assistant" button in the bottom right of the docs drawer |
|
|
You can use Event Functions to trigger restyle or control your docs from your code.
The open-docs
event function can be invoked to make your docs appear. This function takes the URL of the page to display as a parameter.
For example, this function can be called when clicking an icon or button to trigger your documentation to open on a specific page.
file.tsx
The update-docs
event function can be invoked to restyle the embedded docs programmatically. This event function takes any subset of the style parameters above.
For example, this function can be called to restyle the embedded docs for light-mode or dark-mode programmatically or to customize the title of the AI Assistant button.
file.tsx
In the example below, we mount the docs
component to our site 663bce9d7c83fec5f654479a
, set the docs to default open at https://docs.umbriadocs.com/
, configure it to be opened with the hotkey ctrl
+ alt
+ 2
, set the width to be 600
, and set the icon of the exit button to be #4285F4
.
Fullscreen AI Chatbot Script with Customization