sphinxcontrib-openapi-0.9.0
توضیحات
OpenAPI (fka Swagger) spec renderer for Sphinx
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | sphinxcontrib-openapi-0.9.0 |
| نام | sphinxcontrib-openapi |
| نسخه کتابخانه | 0.9.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Ihor Kalnytskyi <ihor@kalnytskyi.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/sphinxcontrib-openapi/ |
| مجوز | - |
=====================
sphinxcontrib-openapi
=====================
**sphinxcontrib-openapi** is a `Sphinx`_ extension to generate APIs docs from
`OpenAPI`_ (fka Swagger) spec. It depends on `sphinxcontrib-httpdomain`_ that
provides an HTTP domain for describing RESTful HTTP APIs, so we don't need to
reinvent the wheel.
.. code:: bash
$ python3 -m pip install sphinxcontrib-openapi
Usage
=====
Pass ``sphinxcontrib-openapi`` to ``extensions`` list in Sphinx's ``conf.py``
.. code:: python
extensions = [
...
'sphinxcontrib.openapi',
]
and feel free to use the ``openapi`` directive to render OpenAPI specs
.. code:: restructuredtext
.. openapi:: path/to/openapi.yml
Links
=====
* Documentation: https://sphinxcontrib-openapi.readthedocs.org/
* Source: https://github.com/sphinx-contrib/openapi
* Bugs: https://github.com/sphinx-contrib/openapi/issues
.. _Sphinx: https://www.sphinx-doc.org/en/master/
.. _OpenAPI: https://github.com/OAI/OpenAPI-Specification
.. _sphinxcontrib-httpdomain: https://sphinxcontrib-httpdomain.readthedocs.io/
نیازمندی
| مقدار | نام |
|---|---|
| - | sphinx>=2.0 |
| - | sphinxcontrib-httpdomain>=1.5.0 |
| - | PyYAML>=3.12 |
| - | jsonschema>=2.5.1 |
| - | sphinx-mdinclude>=0.5.2 |
| - | picobox>=2.2 |
| - | deepmerge>=0.1 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl sphinxcontrib-openapi-0.9.0:
pip install sphinxcontrib-openapi-0.9.0.whl
نصب پکیج tar.gz sphinxcontrib-openapi-0.9.0:
pip install sphinxcontrib-openapi-0.9.0.tar.gz