Skip to main content

An extension for a markdown preview

Project description

Tests

ckanext-markdown_view

a CKAN extension creating previews for markdown files

Requirements

Purpose

Notes:

Compatibility with core CKAN versions:

CKAN version Compatible?
2.9 and arlier not tested
2.10 yes
2.11 yes
  • "yes"
  • "not tested" - I can't think of a reason why it wouldn't work
  • "not yet" - there is an intention to get it working
  • "no"

Installation

To install the extension:

  1. Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
  1. Use pip to install package
pip install ckanext-markdown_view
  1. Add markdown_view to the ckan.plugins setting in your CKAN    config file (by default the config file is located at    /etc/ckan/default/ckan.ini).

  2. Restart CKAN. For example, if you've deployed CKAN with Apache on Ubuntu:

sudo service apache2 reload

Config settings

You can set the default formats to preselected for upload by setting the formats,

CKANINI__CKANEXT__MARKDOWN__FORMATS = 'text/markdown'

else it will react to the listed formats by default

Highlight View

Each resource can be rendered by highlighting some markdown passage. The markdown content to highlight must be passed as post to the /highlight url, for example:

curl -X POST 'https://<ckan_url>/dataset/<dataset_d>/resource/<res_id>/highlight' -F highlight="<markdown code to highlight>"

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_markdown_view-1.0.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckanext_markdown_view-1.0.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file ckanext_markdown_view-1.0.0.tar.gz.

File metadata

  • Download URL: ckanext_markdown_view-1.0.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ckanext_markdown_view-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aa2516d0cd34dde75f7e9b45cc8e5533580c670dffe23a64b0356252b0f03ca0
MD5 c2d4aaf359cd12a07e1b424c8952a707
BLAKE2b-256 d71879779bcac6623794c69310cda7ac5bff0df5987f42f1a4df7a4b53475f60

See more details on using hashes here.

Provenance

The following attestation bundles were made for ckanext_markdown_view-1.0.0.tar.gz:

Publisher: pypi.yml on Mat-O-Lab/ckanext-markdown_view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ckanext_markdown_view-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_markdown_view-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 546c09860b52797ffb1fd806b5df68613ee12c3a8275089fac661ed28d184007
MD5 deef6ac0f0c35fef361f6a6bac9b0616
BLAKE2b-256 ba43a7c4bd43c7f60f8554d9250b3572f3608df08f9832549952e0c37f2949a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ckanext_markdown_view-1.0.0-py3-none-any.whl:

Publisher: pypi.yml on Mat-O-Lab/ckanext-markdown_view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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