ckanext-dcor-theme


Nameckanext-dcor-theme JSON
Version 1.1.1 PyPI version JSON
download
home_pageNone
SummaryThe DCOR CKAN theme
upload_time2025-07-29 21:52:00
maintainerNone
docs_urlNone
authorPaul Müller
requires_python<4,>=3.8
licenseGNU Affero General Public License v3 or later (AGPLv3+)
keywords dc dcor deformability cytometry
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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

- 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.


.. |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/f4/c1/e30fc040e92c1e067f236ce95ad2697922dafe5799380aeee7cc38edc7bb/ckanext_dcor_theme-1.1.1.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- patch CKAN templates with minor changes that would be too complicated to\n  implement with jinja templating::\n\n    ckan dcor-patch-ckan-templates\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 is implemented via GitHub Actions. You may also set up a local\ndocker container with CKAN and MinIO. Take a look at the GitHub Actions\nworkflow for more information.\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": "1.1.1",
    "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": null,
            "digests": {
                "blake2b_256": "57c6eeb30acf5bbebc43594d135295c10bc5b6cdea7d10bb647771105d8b8df0",
                "md5": "39ffb67c52ad5e2c69efafb0079feffd",
                "sha256": "d4675fe65f5b5e78076c749d0863c61590efe5606cb839480646fba42173e4b5"
            },
            "downloads": -1,
            "filename": "ckanext_dcor_theme-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "39ffb67c52ad5e2c69efafb0079feffd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.8",
            "size": 7675027,
            "upload_time": "2025-07-29T21:51:58",
            "upload_time_iso_8601": "2025-07-29T21:51:58.819253Z",
            "url": "https://files.pythonhosted.org/packages/57/c6/eeb30acf5bbebc43594d135295c10bc5b6cdea7d10bb647771105d8b8df0/ckanext_dcor_theme-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f4c1e30fc040e92c1e067f236ce95ad2697922dafe5799380aeee7cc38edc7bb",
                "md5": "cb4c6d618783fb24b53f46dd11759d3f",
                "sha256": "d7056fae13defa094ec681a680241c758bcc81b2ba87c100980209fa342c4700"
            },
            "downloads": -1,
            "filename": "ckanext_dcor_theme-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "cb4c6d618783fb24b53f46dd11759d3f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.8",
            "size": 7660017,
            "upload_time": "2025-07-29T21:52:00",
            "upload_time_iso_8601": "2025-07-29T21:52:00.275814Z",
            "url": "https://files.pythonhosted.org/packages/f4/c1/e30fc040e92c1e067f236ce95ad2697922dafe5799380aeee7cc38edc7bb/ckanext_dcor_theme-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-29 21:52:00",
    "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"
}
        
Elapsed time: 1.52929s