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

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 can also be done via vagrant in a virtualmachine using the dcor-test <https://app.vagrantup.com/paulmueller/boxes/dcor-test/> image. Make sure that vagrant and virtualbox are installed and run the following commands in the root of this repository:

# Setup virtual machine using `Vagrantfile`
vagrant up
# Run the tests
vagrant ssh -- sudo bash /testing/vagrant-run-tests.sh

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ckanext_dcor_theme-0.11.1.tar.gz
Algorithm Hash digest
SHA256 f7dcc9d434df651b1d21f85d4586cac194b629bff7f9798ebdddb7fbaef3e1f2
MD5 4d8a8db518c31da8a79630c2e93900b1
BLAKE2b-256 4f831deccbf3f5f7e83717d20e548e421d6359f91884ce2dcd270f884ab54530

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ckanext_dcor_theme-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8dc87707d4744708582ac8dc224a681b6f563e89c47be0fea1a5ebb82e45ae87
MD5 230446003fffc4ba5c321602e58a188f
BLAKE2b-256 2546cc039ebbb926e93ae79f18db630cdb6fa352dc57856c35e98b2c1ee70897

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