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.7.1.tar.gz (7.7 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ckanext-dcor_theme-0.7.1.tar.gz.

File metadata

  • Download URL: ckanext-dcor_theme-0.7.1.tar.gz
  • Upload date:
  • Size: 7.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ckanext-dcor_theme-0.7.1.tar.gz
Algorithm Hash digest
SHA256 36fe138c01b00da6a027dbb6539eba381f612738f01cb097fa3d82e55820fbc1
MD5 7b75f8a122cfdcf709825289bdd4b00c
BLAKE2b-256 d271f0914a4ec41cb28fb647cb221c3a457f8b0758d56aee4a89b781323af00f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ckanext_dcor_theme-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ade7127b61e60d22fe7081fe772f35acb2f45e40bc4b332d32c3ac29fb983385
MD5 9ff73733b13fb5401edb93597dec8275
BLAKE2b-256 1886780b0cae157058b245a4b5a6498bb62c22d364b26cab2ed175fb394184cd

See more details on using hashes here.

Supported by

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