Kentico Kontent Documentation - Shared code
This repository contains shared code from all of other Kentico Kontent Docs repositories.
Publish to NPM
This repository is published to NPM as the kontent-docs-shared-code package.
To publish a new version of the kontent-docs-shared-code library to the NPM registry:
- Increase the main
- Push your change to the
The NPM Publish GitHub Action will take care of the rest. If you push code changes without increasing the
project.json, the new code will not be published to NPM.
getBlobFromStorage - Async function that returns content of an Azure blob as a JSON object.
getRootCodenamesOfItem - Traverses structured content from Kontent and returns codenames of found root items. Requires:
item- data about the item where the traversal starts
allItems- items from the Kontent project
rootItemTypes- types of the root content items
Contains configuration settings that are shared between the other Kontent Docs repositories:
Kontent - Contains an
IWebhookContentItem that specifies data sent in a webhook reacting to a change in published content.
How To Contribute
Feel free to open a new issue where you describe your proposed changes, or even create a new pull request from your branch with proposed changes.
All the source codes are published under MIT licence.