Installation:
1. Activate CKAN python environment
2. Install from GitHub:
pip install -e git+https://github.com/DataShades/ckanext-githubrepopreview.git#egg=ckanext-githubrepopreview
Add to ckan.plugins:
ckan.plugins = githubrepo_view
Usage:
When creating/editing a resource via the UI:
- Check the ‘GitHub Repository’ checkbox to enable this view
Alternatively, via CKAN API:
- Set the ‘github_repository’ extras field of the resource to ‘True’
This makes the GitHub repository preview view available for that resource.