honkit-plugin-holaspirit
v1.0.1
Published
A plugin to validate and convert role mentions inside pages into Holaspirit links
Downloads
10
Readme
Honkit Holaspirit plugin
An Honkit book plugin to automatically convert roles notations into Holaspirit links.
Usage
For any role you would like to convert to a Holaspirit link just rewrite it as:
{% role %}<circle name>/<role name>{% endrole %}Where circle name is the parent circle for the role. As defined in your circles.
Installation
npm i --save-dev honkit-plugin-holaspiritThen add 'holaspirit' keyword inside the list of plugins in book.json
{
"plugins": [
"holaspirit",
//...other plugins
],Configuration
This plugin requires two fields to be filled:
- organizationId of your organization account in Holaspirit.
- access token that is a read-only access token to use Holaspirit APIs
organizationId can be obtained from the URL, since Holaspirit links have this format:
https://app.holaspirit.com/o/<ORGANIZATION_ID>/governance/chartwhile access token must be requested to the Holaspirit support.
When you have both fields you can add the holaspirit plugin configuration under pluginsConfig in book.json as shown below:
"pluginsConfig": {
"holaspirit": {
"token": "env://<ENV_VARIABLE_NAME_HERE>" //or "token://<YOUR_TOKEN_HERE>",
"organizationId": "<YOUR_ORGANIZATION_ID_HERE>"
},
//...other plugins configs...
}You can supply the token in two ways:
- by specifying the environment variable name to look for (e.g. env://holaspirit_token)
- from the configuration file itself (e.g. token://abcdefGHI371s)
