Skip to main content

No project description provided

Project description

Markdown Refdocs

Python package Docs PyPi

Extracts docstings and type annotations from a python package to generate reference documentation in markdown. See an example of this at: https://creisle.github.io/markdown_refdocs/

Getting Started

Install the package from pip

pip install markdown_refdocs

Run this from the command line or import the function to get the markdown returns as strings and customize. This tool has the customary help manu you can view with the -h option to see the options documentation

markdown_refdocs -h

Features

  • parses google-style docstrings
  • generates markdown output (this allows the user to link into the navigation or their main docs)
  • can take package directories as input
  • reads type annotations
  • pulls function signatures

Limitations

Motivation

The motivation for this package was that writing docs in markdown is simpler to read and write than writing them in RST. There is an awesome package called Mkdocs for turning your markdown documents into a static site. It has a number of plugins which extract docstrings from python files, however none of them are able to use the google docstring format which I prefer. If you're using a different docstring format you can check them out here on the Mkdocs plugin wiki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markdown_refdocs-1.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

markdown_refdocs-1.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file markdown_refdocs-1.1.0.tar.gz.

File metadata

  • Download URL: markdown_refdocs-1.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for markdown_refdocs-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c3c1b1a820aea9fd6cde8dc3d7071a9b06db6f1eae99f4fd79aaaaa1d20643f2
MD5 13d3a7cc06aa54bf34af8c0e218446f3
BLAKE2b-256 e07c37b060f534c1365920ce265620921578385b9a449d05513cf303b9bb9e0e

See more details on using hashes here.

Provenance

File details

Details for the file markdown_refdocs-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: markdown_refdocs-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for markdown_refdocs-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 697ef79e9124c976d16be144df82305b9fd45f7f553d1c1a105f146fcf7e09ab
MD5 4dfa6f26ddb7864dc63cd6679f49a6b0
BLAKE2b-256 4c1587006473efec428de850cfce3b5afc39bbf5e48e0ec3c2cc22fe530cba88

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page