Skip to main content

A fast and easy way to make beautiful documentation markdown files.

Project description

Docstring-Markdown is a fast and easy way to make beautiful documentation markdown files.

You can find the latest documentation at https://dsbowen.github.io/docstr-md.

Why Docstring-Markdown

It's time to share your awesome new package with the world. And... get ready to spend the next week making your docs. Or, make beautiful docs with Docstring-Markdown in just a few lines of code.

Installation

$ pip install docstr-md

Quickstart

First, clone a test file from the Docstring-Markdown repo.

$ curl https://raw.githubusercontent.com/dsbowen/docstr-md/master/test.py --output test.py

The example test.py uses sklearn formatted docstrings. Let's convert it to markdown.

from docstr_md.python import PySoup, compile_md
from docstr_md.src_href import Github

src_href = Github('https://github.com/dsbowen/docstr-md/blob/master')
soup = PySoup(path='test.py', parser='sklearn', src_href=src_href)
compile_md(soup, compiler='sklearn', outfile='test.md')

You'll now have a test.md file in your current directory. This is what it looks like rendered.

Citation

@software{bowen2020docstr-md,
  author = {Dillon Bowen},
  title = {Docstring-Markdown},
  url = {https://dsbowen.github.io/docstr-md/},
  date = {2020-05-15},
}

License

Users must cite Docstring-Markdown in any publications which use this software.

Docstring-Markdown is licensed with the MIT License.

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

docstr-md-0.0.7.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

docstr_md-0.0.7-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file docstr-md-0.0.7.tar.gz.

File metadata

  • Download URL: docstr-md-0.0.7.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for docstr-md-0.0.7.tar.gz
Algorithm Hash digest
SHA256 1651f2249f51df77090cc88807a8643e91c2c1c1b2b04d0a894cc40918d8ad7a
MD5 4d3f8d1883e905073c830697cd56e524
BLAKE2b-256 91ce2b66b1a36f5ae0a78746afde539eda1f4ca66c93fb6a67340f3761d84680

See more details on using hashes here.

File details

Details for the file docstr_md-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: docstr_md-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for docstr_md-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 625473c96c80c971100218c30b2371062f8db38b727e7a5351802fe0f729b7fb
MD5 13f4c0b8354fb9ccd0af3cbf3193c941
BLAKE2b-256 b7ab3dd67132cf84ac92cb1a151d4f4eb2c75f715a5b30b2b398e20977346a43

See more details on using hashes here.

Supported by

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