An extension for a markdown preview
Project description
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:
- Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
- Use pip to install package
pip install ckanext-markdown_view
-
Add
markdown_viewto theckan.pluginssetting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini). -
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ckanext_markdown_view-1.0.1.tar.gz.
File metadata
- Download URL: ckanext_markdown_view-1.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edc6ae59b7b8655a2887fdcbe746fdca17849c2ae64abf7559fb89f5876204f5
|
|
| MD5 |
f0c304a6cae87b8e0c1856f1d630fc07
|
|
| BLAKE2b-256 |
426decd3ec31fe98578f5cb532ca88a10dc0d922439fc3aa9108769577fc1c1a
|
Provenance
The following attestation bundles were made for ckanext_markdown_view-1.0.1.tar.gz:
Publisher:
pypi.yml on Mat-O-Lab/ckanext-markdown_view
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ckanext_markdown_view-1.0.1.tar.gz -
Subject digest:
edc6ae59b7b8655a2887fdcbe746fdca17849c2ae64abf7559fb89f5876204f5 - Sigstore transparency entry: 212104659
- Sigstore integration time:
-
Permalink:
Mat-O-Lab/ckanext-markdown_view@35ff6e1dc8089377cde6d7cb23a7acd294913633 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Mat-O-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@35ff6e1dc8089377cde6d7cb23a7acd294913633 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ckanext_markdown_view-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ckanext_markdown_view-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa4353f9f86144b1eb90aacf9cce35bd748d5cdb277fc84777b8b9f5b7546455
|
|
| MD5 |
1f9f1721fb1d067c52fdef98edf1eb98
|
|
| BLAKE2b-256 |
46365b893207b90adc568aae744748119bc59059b75334eafe97e1e9a4eec1cf
|
Provenance
The following attestation bundles were made for ckanext_markdown_view-1.0.1-py3-none-any.whl:
Publisher:
pypi.yml on Mat-O-Lab/ckanext-markdown_view
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ckanext_markdown_view-1.0.1-py3-none-any.whl -
Subject digest:
fa4353f9f86144b1eb90aacf9cce35bd748d5cdb277fc84777b8b9f5b7546455 - Sigstore transparency entry: 212104662
- Sigstore integration time:
-
Permalink:
Mat-O-Lab/ckanext-markdown_view@35ff6e1dc8089377cde6d7cb23a7acd294913633 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Mat-O-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@35ff6e1dc8089377cde6d7cb23a7acd294913633 -
Trigger Event:
release
-
Statement type: