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.3.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.3-py3-none-any.whl (7.7 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ckanext_dcor_theme-1.1.3.tar.gz
Algorithm Hash digest
SHA256 deee58a0851ff32255a2744733ba946e67dbcb6b18cbe9ec282b8cd9dbb27b93
MD5 8d7bc83762266cca479b1d7c89ae0374
BLAKE2b-256 f6867d729d3ad55967cee5ed4b1731370a18834805f57f8332feee04286f1a9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ckanext_dcor_theme-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1517bc5763929e6d1a115e333067effcaefaf75f8a903cd3a298cbdcec88c48
MD5 98079ecf85e4aaa71003bad4c17bc4b4
BLAKE2b-256 fafb76fdc8de5bc13c75f5ff66cca3d71dbc9cebfa4591d2483b2b0e5eb6ed19

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