معرفی شرکت ها


foliantcontrib.imgcaptions-1.0.4


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Preprocessor for Foliant for adding visible captions to images.
ویژگی مقدار
سیستم عامل -
نام فایل foliantcontrib.imgcaptions-1.0.4
نام foliantcontrib.imgcaptions
نسخه کتابخانه 1.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Artemy Lomov
ایمیل نویسنده artemy@lomov.ru
آدرس صفحه اصلی https://github.com/foliant-docs/foliantcontrib.imgcaptions
آدرس اینترنتی https://pypi.org/project/foliantcontrib.imgcaptions/
مجوز MIT
[![](https://img.shields.io/pypi/v/foliantcontrib.imgcaptions.svg)](https://pypi.org/project/foliantcontrib.imgcaptions/) [![](https://img.shields.io/github/v/tag/foliant-docs/foliantcontrib.imgcaptions.svg?label=GitHub)](https://github.com/foliant-docs/foliantcontrib.imgcaptions) # ImgCaptions ImgCaptions is a preprocessor that generates visible captions for the images from alternative text descriptions of the images. The preprocessor is useful in projects built with MkDocs or another backend that provides HTML output. ## Installation ```bash $ pip install foliantcontrib.imgcaptions ``` ## Usage To enable the preprocessor, add `imgcaptions` to `preprocessors` section in the project config: ```yaml preprocessors: - imgcaptions ``` The preprocessor supports the following options: ```yaml - imgcaptions: stylesheet_path: !path imgcaptions.css template: <p class="image_caption">{caption}</p> targets: - pre - mkdocs - site - ghp ``` `stylesheet_path` : Path to the CSS stylesheet file. This stylesheet should define rules for the `.image_caption` class. Default path is `imgcaptions.css`. If stylesheet file does not exist, default built-in stylesheet will be used. `template` : Template string representing the HTML tag of the caption to be placed after the image. The template should contain the `{caption}` variable that will be replaced with the image caption. Default: `<p class="image_caption">{caption}</p>`. `targets` : Allowed targets for the preprocessor. If not specified (by default), the preprocessor applies to all targets. Image definition example: ```markdown (leading exclamation mark here)[My Picture](picture.png) ``` This Markdown source will be finally transformed into the HTML code: ```html <p><img alt="My Picture" src="picture.png"></p> <p class="image_caption">My Picture</p> ``` (Note that ImgCaptions preprocessor does not convert Markdown syntax into HTML; it only inserts HTML tags like `<p class="image_caption">My Picture</p>` into Markdown code after the image definitions. Empty alternative text descriptions are ignored.)


نیازمندی

مقدار نام
>=1.0.4 foliant


نحوه نصب


نصب پکیج whl foliantcontrib.imgcaptions-1.0.4:

    pip install foliantcontrib.imgcaptions-1.0.4.whl


نصب پکیج tar.gz foliantcontrib.imgcaptions-1.0.4:

    pip install foliantcontrib.imgcaptions-1.0.4.tar.gz