ckanext-dcor_theme
==================
|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
.. |PyPI Version| image:: https://img.shields.io/pypi/v/ckanext.dcor_theme.svg
:target: https://pypi.python.org/pypi/ckanext.dcor_theme
.. |Build Status| image:: https://img.shields.io/github/actions/workflow/status/DCOR-dev/ckanext-dcor_theme/check.yml
:target: https://github.com/DCOR-dev/ckanext-dcor_theme/actions?query=workflow%3AChecks
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/DCOR-dev/ckanext-dcor_theme
:target: https://codecov.io/gh/DCOR-dev/ckanext-dcor_theme
Raw data
{
"_id": null,
"home_page": null,
"name": "ckanext-dcor-theme",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.8",
"maintainer_email": "Paul M\u00fcller <dev@craban.de>",
"keywords": "DC, DCOR, deformability, cytometry",
"author": "Paul M\u00fcller",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/59/2b/0bffdd2c8774d78dc6551d9cf185e56c54b61b32e0d01e5ee95085d6dcb5/ckanext_dcor_theme-0.8.2.tar.gz",
"platform": null,
"description": "ckanext-dcor_theme\n==================\n\n|PyPI Version| |Build Status| |Coverage Status|\n\nThe CKAN theme of DCOR. What this plugin does:\n\n- remove the language selection from footer.html\n- remove links from footer.html\n- set the title of the page to \"DCOR\"\n- insert a custom about text\n- remove social media buttons\n- change icons / logo\n- use i18n to change the terms \"Organization\" -> \"Circle\",\n \"Group\" -> \"Collection\", etc.::\n\n ckan dcor-theme-i18n-branding\n\n- create a custom theme based on the default main.css file\n (hide action buttons (Fullscreen, Embed) in resource view via css,\n change colors) using::\n\n ckan dcor-theme-main-css-branding\n\n\nInstallation\n------------\n\n::\n\n pip install ckanext-dcor_theme\n\nEdit ckan.ini::\n\n ckan.plugins = [...] dcor_theme\n\nand run the dcor-i18n-hack command::\n\n ckan -c /etc/ckan/default/ckan.ini dcor-i18n-hack\n\nThen, edit ckan.ini again::\n\n ckan.locale_default = en_US\n\n\nTesting\n-------\nIf CKAN/DCOR is installed and setup for testing, this extension can\nbe tested with pytest:\n\n::\n\n pytest ckanext\n\nTesting can also be done via vagrant in a virtualmachine using the\n`dcor-test <https://app.vagrantup.com/paulmueller/boxes/dcor-test/>` image.\nMake sure that `vagrant` and `virtualbox` are installed and run the\nfollowing commands in the root of this repository:\n\n::\n\n # Setup virtual machine using `Vagrantfile`\n vagrant up\n # Run the tests\n vagrant ssh -- sudo bash /testing/vagrant-run-tests.sh\n\n\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/ckanext.dcor_theme.svg\n :target: https://pypi.python.org/pypi/ckanext.dcor_theme\n.. |Build Status| image:: https://img.shields.io/github/actions/workflow/status/DCOR-dev/ckanext-dcor_theme/check.yml\n :target: https://github.com/DCOR-dev/ckanext-dcor_theme/actions?query=workflow%3AChecks\n.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/DCOR-dev/ckanext-dcor_theme\n :target: https://codecov.io/gh/DCOR-dev/ckanext-dcor_theme\n",
"bugtrack_url": null,
"license": "GNU Affero General Public License v3 or later (AGPLv3+)",
"summary": "The DCOR CKAN theme",
"version": "0.8.2",
"project_urls": {
"changelog": "https://github.com/DCOR-dev/ckanext-dcor_theme/blob/main/CHANGELOG",
"source": "https://github.com/DCOR-dev/ckanext-dcor_theme",
"tracker": "https://github.com/DCOR-dev/ckanext-dcor_theme/issues"
},
"split_keywords": [
"dc",
" dcor",
" deformability",
" cytometry"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ea7a0dbb1494a90eb5db1cbab198be919e5bfa97c2b7536a4b21193e28b23ca3",
"md5": "b205e28fd5bb385df3d98c580ee4f291",
"sha256": "2cd30acc6c38baa18a65191f0e359da9822d617b4461fdd2e837ecca8e2f69ae"
},
"downloads": -1,
"filename": "ckanext_dcor_theme-0.8.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b205e28fd5bb385df3d98c580ee4f291",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.8",
"size": 7674604,
"upload_time": "2024-08-05T10:46:59",
"upload_time_iso_8601": "2024-08-05T10:46:59.411021Z",
"url": "https://files.pythonhosted.org/packages/ea/7a/0dbb1494a90eb5db1cbab198be919e5bfa97c2b7536a4b21193e28b23ca3/ckanext_dcor_theme-0.8.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "592b0bffdd2c8774d78dc6551d9cf185e56c54b61b32e0d01e5ee95085d6dcb5",
"md5": "c3334b024092dc0ba5243630a2c64005",
"sha256": "0361130936ad0901580cbb83ee0d068bbdb8150b5c52a9e3c0ee98ca0f50f70f"
},
"downloads": -1,
"filename": "ckanext_dcor_theme-0.8.2.tar.gz",
"has_sig": false,
"md5_digest": "c3334b024092dc0ba5243630a2c64005",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.8",
"size": 7659470,
"upload_time": "2024-08-05T10:47:01",
"upload_time_iso_8601": "2024-08-05T10:47:01.544869Z",
"url": "https://files.pythonhosted.org/packages/59/2b/0bffdd2c8774d78dc6551d9cf185e56c54b61b32e0d01e5ee95085d6dcb5/ckanext_dcor_theme-0.8.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-05 10:47:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "DCOR-dev",
"github_project": "ckanext-dcor_theme",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ckanext-dcor-theme"
}