ImagineUI for Foliant
ImagineUI is a tool that supports developing wireframes in a localized human-readable format.
This preprocessor allows using <imagineui> macros in Foliant
Installation
Before using ImagineUI, you need to install Node.js.
ImagineUI preprocessor code is written in Python, but it uses a JavaScript package. This script is provided in ImagineUI package:
$ pip install foliantcontrib.imagineui
ImagineUI uses Puppeteer for rendering in background, which is a huge dependency, so to avoid downloading Chrome every time this preprocessor applies, it's advised to install imagineui-cli globally.
$ npm i -g imagineui-cli
Config
To enable the preprocessor, add imagineui to preprocessors section in the project config:
preprocessors:
- imagineui
The preprocessor has a number of options with the following default values:
preprocessors:
- imagineui:
version: global
cache_dir: !path .imagineuicache
version
: Version of the imagineui-cli package in NPM. "global" (default) will skip and will use either the version already installed globally or the latest version, which speeds up NPX significantly.
cache_dir
: Directory to store downloaded and resized images.
Usage
To insert a wireframe image rendered by ImagineUI into your documentation, use <imagineui>...</imagineui> tags in Markdown source:
<imagineui>
Page: "Welcome screen"
Block: "Header"
Header "Mockup poetry"
Block: "Flowers"
Two columns
Image "Roses are red,"
Image "Violets are blue."
Image "Your mockups are awesome,"
Image "And so are you!"
Block: "Footer"
One row
Button "Try ImagineUI"
Button "Subscribe"
Button "Contribute"
</imagineui>
ImagineUI preprocessor will replace such blocks with local image references.
Acknowledgements
BindSympli preprocessor was used as a starting point
Metadata
Release files for foliantcontrib.imagineui 1.0.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 |
|---|---|---|---|---|
| foliantcontrib.imagineui-1.0.0.tar.gz | 4.0 kB | Without provenance | Details for foliantcontrib.imagineui-1.0.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| foliantcontrib.imagineui-1.0.0-py3.8.egg | Legacy Egg format | - | - | Details for foliantcontrib.imagineui-1.0.0-py3.8.egg |
| foliantcontrib.imagineui-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for foliantcontrib.imagineui-1.0.0-py3-none-any.whl |
Total release size: 14.6 kB
Release files / foliantcontrib.imagineui-1.0.0.tar.gz
| Download URL | foliantcontrib.imagineui-1.0.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
676a12fe27864be87488cbc8bcd4e78d3d31c47299e246aa1c590af0273ba480
|
|
BLAKE2b-256 checksum How to use checksums |
fc9edcda0690732ab61c8c7eb83e9dc5fb9d4bfaa69979afe4e2f8a6d8c839b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Release files / foliantcontrib.imagineui-1.0.0-py3.8.egg
| Download URL | foliantcontrib.imagineui-1.0.0-py3.8.egg |
|---|---|
| Size | 5.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
2bef336b84096f6820c17d037d8e4d211ec8a8b47897ffcbb5c34d1911f5df78
|
|
BLAKE2b-256 checksum How to use checksums |
e3928409c840a02bdbc7e389430840b83fa7e8109eec0f4837c8d9171ba85d29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Release files / foliantcontrib.imagineui-1.0.0-py3-none-any.whl
| Download URL | foliantcontrib.imagineui-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a4abfa37ba198b312a1f652d47be293790fa13a5cd5c7235b97dc8313c596d9
|
|
BLAKE2b-256 checksum How to use checksums |
8f7a2404df9be0b029094953b6000ef1d635cf95d8cef4e8327d23414d891300
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Security for foliantcontrib.imagineui 1.0.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.