Contextual Documentation Widget
This feature is available on these plans: βοΈ Growing βοΈ Scaling βοΈ Enterprise
Contextual documentation is served in your product where the user needs it. Using the contextual docs widget helps users read the product documentation without requiring them to browse the user guide portal in another window.
You can load specific articles or the entire user guide portal, which is a must-have for companies to increase product adoption and retention.
All you need to do is embed the HTML code generated under Space Settings -> Widget integration.
How Contextual Documentation widget works
Contextual Documentation widget implementation
Here are the steps to integrate the widget:
- First you have to select a Space
- Click on the gear icon βοΈ for Settings
- Go to Widget Integration
- Click on the copy button and paste the code into your index.html file, or in your application code

Now our widget will handle everything behind the scenes. Don't worry, everything is bundled and minified. Just a 56Kb download and it loads asynchronously, so your users won't feel a difference.
Init Event
On the init event, for the collectionId value, you can use the collectionId or the PUBLISHED-{collectionId} , this way you can use Spaces without publishing them, straight in your app.
Property | Description | Required |
collectionId | Pass the desired id to load your docs. | required |
jwt | Pass the jwt token in order to see jwt protected docs. | optional |
The JWT token is available in the Scaling plan. Read more about ο»ΏPublic Access Controls .
Show Widget Event
show-widget event triggers the action to display the widget. It also has an optional property that you can pass, to open a specific document from your initialized Spaces.
Property | Description | Required |
docId | Set the doc id value in order to open a specific document. | optional |
Supported Events
Here is a brief description of our Widget Event API:
Event name | Description | Required |
init | This event help archbee widget boostrap required files into your app. | required |
show-widget | This event will display the widget on demand. | required |
hide-widget | This event will hide the widget if built in mechanics are not enough. | optional |
Code Samples
Attach a function, wherever you want to display the widget like so:
This will load the widget, with the desired Space docs and the user will be able to see everything straight from your app.
If you want to load only a specific doc, just pass docId: `${docId}` to our initial object as in example above.
We don't need a closeWidget function, since the widget will automatically close if you press Esc or click outside of it.
If you want to close the widget programatically, and do not rely on the built in close mechanics, you can use hide-widget event type like so:
ο»Ώ