All Projects → daizutabi → mkapi

daizutabi / mkapi

Licence: MIT license
A documentation generation tool for MkDocs.

Programming Languages

python
139335 projects - #7 most used programming language
CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to mkapi

API-Portal
API Portal lets you create and publish a customized site with API documentation, for free and without writing any code.
Stars: ✭ 162 (+138.24%)
Mutual labels:  api-documentation
chappe
🧑‍💻 Developer Docs builder. Write guides in Markdown and references in API Blueprint. Comes with a built-in search engine.
Stars: ✭ 132 (+94.12%)
Mutual labels:  api-documentation
RebillyAPI
Archived and moved into the monorepo https://github.com/Rebilly/api-definitions
Stars: ✭ 51 (-25%)
Mutual labels:  api-documentation
go-slate
A CLI tool to generate API documentation using Slate layout by Robert Lord
Stars: ✭ 19 (-72.06%)
Mutual labels:  api-documentation
platform
Apinf - Open source API management platform with multi proxy and protocol support
Stars: ✭ 69 (+1.47%)
Mutual labels:  api-documentation
docodile
Generate HTML API documentation from a Postman collection
Stars: ✭ 63 (-7.35%)
Mutual labels:  api-documentation
restdocs-spec
A maven plugin for generating Open API and Postman Collection specifications using Spring Restdocs.
Stars: ✭ 43 (-36.76%)
Mutual labels:  api-documentation
mkdocs-static-i18n
MkDocs i18n plugin using static translation markdown files
Stars: ✭ 78 (+14.71%)
Mutual labels:  mkdocs-plugin
ad integration
Documentação para a Importação de Anúncios (API, JSON e XML) da OLX Brasil
Stars: ✭ 36 (-47.06%)
Mutual labels:  api-documentation
mkdocs-git-revision-date-localized-plugin
MkDocs plugin to add a last updated date to your site pages
Stars: ✭ 73 (+7.35%)
Mutual labels:  mkdocs-plugin
trade-opskins-api
API docs for trade.opskins.com
Stars: ✭ 44 (-35.29%)
Mutual labels:  api-documentation
nei-toolkit
NEI 接口文档管理平台配套自动化工具
Stars: ✭ 814 (+1097.06%)
Mutual labels:  api-documentation
tripletex-api2
Tripletex API 2 resources and examples
Stars: ✭ 32 (-52.94%)
Mutual labels:  api-documentation
mkdocs-git-authors-plugin
MkDocs plugin to display git authors of a page.
Stars: ✭ 27 (-60.29%)
Mutual labels:  mkdocs-plugin
blue bird
API Documentation Generator for the Phoenix Framework
Stars: ✭ 52 (-23.53%)
Mutual labels:  api-documentation
mattermost-api-reference
Mattermost API reference documentation.
Stars: ✭ 74 (+8.82%)
Mutual labels:  api-documentation
swagger-rb
Swagger parser for Ruby (WARNING: see issue #19)
Stars: ✭ 38 (-44.12%)
Mutual labels:  api-documentation
mkdocs-exclude-search
🔎 A mkdocs plugin that lets you exclude selected chapters from the search index.
Stars: ✭ 16 (-76.47%)
Mutual labels:  mkdocs-plugin
doc
The bunq API documentation
Stars: ✭ 18 (-73.53%)
Mutual labels:  api-documentation
API
API documentation for the Forecast platform
Stars: ✭ 24 (-64.71%)
Mutual labels:  api-documentation

PyPI version Python versions Travis AppVeyor Coverage Status Code style: black

MkApi

MkApi plugin for MkDocs generates API documentation for Python code. MkApi supports two styles of docstrings: Google and NumPy.

Features of MkApi are:

  • Type annotation: If you write your function such as def func(x: int) -> str:, you don't need write type(s) in Parameters, Returns, or Yields section again. You can overwrite the type annotation in the corresponding docstring.
  • Object type inspection: MkApi plugin creates class, dataclass, function, or generator prefix for each object.
  • Attribute inspection: If you write attributes with description as comment in module or class, Attributes section is automatically created.
  • Docstring inheritance: Docstring of a subclass can inherit parameters and attributes description from its superclasses.
  • Table of Contents: Table of contents are inserted into the documentation of each package, module, and class.
  • Page mode: Comprehensive API documentation for your project, in which objects are linked to each other by type annotation.
  • Bidirectional Link: Using the Page mode, bidirectional links are created between documentation and source code.

Installation

Install the plugin using pip:

pip install mkapi

Configuration

Add the following lines to mkdocs.yml:

plugins:
  - search # necessary for search to work
  - mkapi

Usage

MkApi provides two modes to generate API documentation: Embedding mode and Page mode.

Embedding Mode

To generate the API documentation in a Markdown source, add an exclamation mark (!), followed by mkapi in brackets, and the object full name in parentheses. Yes, this is like adding an image. The object can be a function, class, or module.

![mkapi](<package.module.object>)

You can combine this syntax with Markdown heading:

## ![mkapi](<package.module.object>)

MkApi imports objects that you specify. If they aren't in the sys.path, configure mkdocs.yml like below:

plugins:
  - search
  - mkapi:
      src_dirs: [<path1>, <path2>, ...]

Here, pathXs are inserted to sys.path. These pathXs must be relative to the mkdocs.yml directory.

The embedding mode is useful to embed an object interface in an arbitrary position of a Markdown source. For more details, see:

Page Mode

Using the page mode, you can construct a comprehensive API documentation for your project. You can get this powerful feature by just one line:

nav:
  - index.md
  - API: mkapi/api/mkapi

For more details, see Page Mode and Internal Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].