ckanext-opendata_theme
This extension customizes the look and feel of a CKAN instance. It provides several CKAN plugins for different aspects of theming and customization.
Included Plugins
- opengov_custom_css - Custom CSS styling
- opengov_custom_homepage - Custom homepage layouts
- opengov_custom_header - Custom header templates
- opengov_custom_footer - Custom footer templates
Supported Themes
The extension supports themes for various organizations including:
- Boston, MA
- Virginia
- CNRA (California Natural Resources Agency)
- Sugarland
- And others
Features
- Custom CSS and SCSS styling
- Custom homepage layouts
- Custom header with account management
- Custom footer with script snippets
- Accessibility improvements (ARIA labels, alt text)
- User dashboard customization
- Activity stream customization
- Segment analytics integration
- Sidebar menu support
- SonarQube code scanning
- Google Analytics tracking
Requirements
Supported CKAN 2.7 and CKAN 2.9. This plugin is compatible with Python 2.8 and Python 3.6.
Development Installation
To install ckanext-opendata_theme for development, use opendata-ops/vagrant_local_env scripts to setup local env according to instructions in that folder.
Running the Tests
To run the tests:
pytest --disable-warnings ckanext.opendata_theme
To run the tests and produce coverage, pylint and bandit reports, first make sure you have tox installed in your virtualenv (pip install tox) then run:
tox --parallel 4
Then check reports folder for generated reports.
License
AGPL-3.0 license