Summary

Docaroo offers out-of-the-box the possibility to integrate with Github and to import content from public and private repositories. While there is no limit when it comes to how many public repositories can be accessed, for the private repositories, content can be imported only from the repositories within the scope of the personal access token that must be configured.

Content from external public Github repositories can be also imported at run time. For the moment, we do not support importing content from private Github repositories at run time, this being possible only at build time.

Usage

Using the Github integration depends on the deployment type. When testing on local dev environment or when the deployment is on a custom infrastructure, the settings from .env file are used as shown next.

Github integration is based on some parameters shown below.

# External content
JEKYLL_ACCESS_TOKEN = <GitHub personal access token to get content from private repositories>
JEKYLL_GIT_USER = <GitHub user corresponding to the personal access token>

When the deployment is on Github pages or Netlify, then the Github integration parameters should be configured in as action secrets in Github or environment variables in Netlify. The names of the integration parameters is the same, regardless of the deployment environment (local, custom, Github pages or Netlify).

On this page



Comments
Title : pageTitle
Reference : anchor