Skip to main content

The DCOR CKAN theme

Project description

PyPI Version Build Status Coverage Status

The CKAN theme of DCOR. What this plugin does:

  • remove the language selection from footer.html

  • remove links from footer.html

  • set the title of the page to “DCOR”

  • insert a custom about text

  • remove social media buttons

  • change icons / logo

  • use i18n to change the terms “Organization” -> “Circle”, “Group” -> “Collection”, etc.:

    ckan dcor-theme-i18n-branding
  • create a custom theme based on the default main.css file (hide action buttons (Fullscreen, Embed) in resource view via css, change colors) using:

    ckan dcor-theme-main-css-branding
  • patch CKAN templates with minor changes that would be too complicated to implement with jinja templating:

    ckan dcor-patch-ckan-templates

Installation

pip install ckanext-dcor_theme

Edit ckan.ini:

ckan.plugins = [...] dcor_theme

and run the dcor-i18n-hack command:

ckan -c /etc/ckan/default/ckan.ini dcor-i18n-hack

Then, edit ckan.ini again:

ckan.locale_default = en_US

Testing

If CKAN/DCOR is installed and setup for testing, this extension can be tested with pytest:

pytest ckanext

Testing is implemented via GitHub Actions. You may also set up a local docker container with CKAN and MinIO. Take a look at the GitHub Actions workflow for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_dcor_theme-1.1.0.tar.gz (7.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckanext_dcor_theme-1.1.0-py3-none-any.whl (7.7 MB view details)

Uploaded Python 3

File details

Details for the file ckanext_dcor_theme-1.1.0.tar.gz.

File metadata

  • Download URL: ckanext_dcor_theme-1.1.0.tar.gz
  • Upload date:
  • Size: 7.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for ckanext_dcor_theme-1.1.0.tar.gz
Algorithm Hash digest
SHA256 efa355901ac3b8cfbdc76798dfb3abd54f899bb6aa3816c780165880233f3a71
MD5 56f10fc04b037a0b9571a8f6dc0b420e
BLAKE2b-256 44941adbfe005cfabc130802ec0f32633187bf394af819b6e52e240e43b38597

See more details on using hashes here.

File details

Details for the file ckanext_dcor_theme-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_dcor_theme-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c40465dfc174e58aca5fd5bcbd398f8d764d8b71c0d84f5f5092f881db85b6a
MD5 d77068b990874c02bdec9301f6784754
BLAKE2b-256 5cc8df7dac5f1894542a858b2c0d5da9d640e7d7a98c9bb2ce8c3ccdc4ee53bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page