
ckanext-statictheme
Static theme and template for NFDI4Chem.
Used to for HTML, CSS changes as recommened by offical CKAN doc.
Requirements
No external requirements needed.
If your extension works across different versions you can add the following table:
Compatibility with core CKAN versions:
| CKAN version |
Compatible? |
| 2.8 and earlier |
not tested |
| 2.9 |
yes |
Installation
This theme is internally for NFDI4Chem Ckan overarching search service.
To install ckanext-statictheme:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Clone the source and install it on the virtualenv
git clone https://github.com/bhavin2897/ckanext-statictheme.git
cd ckanext-statictheme
pip install -e .
pip install -r requirements.txt
Add statictheme to the ckan.plugins setting in your CKAN
config file (by default the config file is located at
/etc/ckan/default/ckan.ini).
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
or if using deployed production server
restart Supervisor and Nginx
Config settings
None at present
TODO: Document any optional config settings here. For example:
# The minimum number of hours to wait before re-checking a resource
# (optional, default: 24).
ckanext.statictheme.some_setting = some_default_value
Developer installation
To install ckanext-statictheme for development, activate your CKAN virtualenv and
do:
git clone https://github.com/Bhavhub/ckanext-statictheme.git
cd ckanext-statictheme
python setup.py develop
pip install -r dev-requirements.txt
Tests
To run the tests, do:
pytest --ckan-ini=test.ini