Mara Markdown Documentation
Display markdown documentation in mara UI
This package displays configured documentation in markdown format in the UI:
- Convert markdown to html via markdown-it
- Supports a folder structure (single level) in the menu
- Supports mermaid diagrams
- Serves referenced images (
.png,.jpg,.gif) in markdown and.txtfiles (for example config, etc) if these are in the same folder as the markdown file
Screenshot
Installation
To use the library directly, use pip:
python3 -m pip install mara-markdown-docs
# or directly from git
python3 -m pip install git+https://github.com/mara/mara-markdown-docs.git
Configuration
Assuming you configure via app/local_setup.py:
"""Configures the docs functionality"""
import pathlib
from mara_app.monkey_patch import patch
import mara_markdown_docs.config
@patch(mara_markdown_docs.config.documentation)
def documentation() -> dict:
"""Dict with name -> path to markdown file.
If name contains a single '/' it will be shown in a submenu. Multiple '/' are not allowed.
The insertion order is mostly preserved (folders are grouped in the menu)."""
repo_root_dir = pathlib.Path(__file__).parent.parent
# Cases matter in path!
docs = {
'Pipeline/Marketing': repo_root_dir / 'app/pipelines/marketing/README.md',
'Developer/Setup': repo_root_dir / 'README.md',
'Developer/Code Conventions': repo_root_dir / 'code_conventions.md',
}
return docs
Metadata
Release files for mara-markdown-docs 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mara-markdown-docs-0.9.0.tar.gz | 6.1 kB | Without provenance | Details for mara-markdown-docs-0.9.0.tar.gz |
Release files / mara-markdown-docs-0.9.0.tar.gz
| Download URL | mara-markdown-docs-0.9.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0bd6f2133a07fddfae618fe879388e08ad01e7a5bfbbe148b3664e0fa617413
|
|
BLAKE2b-256 checksum How to use checksums |
4fddaf16aadd70f55944e0cf5f3f8725a635d6f8bcd8eceddb6424b52fd07129
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.1
|
Security for mara-markdown-docs 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.