Coder Social home page Coder Social logo

doc2md's Introduction

doc2md

Simplistic utility to extract docstrings from a module or class and throw them into a simple GitHub Flavoured Markdown document. Its purpose is to quickly generate README.md files for small projects.

Project status

I stopped using this package and therefore will not push any updates (I now usually write README.rst manually). Nonetheless, you may still find it useful. Should you encounter bugs or have improvements, feel free to submit a PR. If you want to take over maintenance, feel free to contact me.

For a more feature-rich and well maintained alternative, see:

Installation

No installation necessary. However, if you want:

$ pip install doc2md

Usage

You can run this script from the command line like:

$ doc2md.py [-a] [--no-toc] [-t title] [-d depth] module-name [class-name] \
    > README.md

At the moment this is suited only for a very specific use case. It is hardly forseeable, if I will decide to improve on it in the near future.

For a simple example output document, see the generated README (i.e. the github frontpage). It is extracted from the doc2md.py file using this very utility:

$ ./doc2md.py -a -d1 doc2md > README.md

License

Copyright © 2013-2017 Thomas Gläßle [email protected]

This work is free. You can redistribute it and/or modify it under the terms of the MIT license. See the COPYING file for more details.

This program is free software. It comes without any warranty, to the extent permitted by applicable law.

API

doctrim

Clean up indentation from docstrings.

Any whitespace that can be uniformly removed from the second line onwards is removed.

doc2md

Convert a docstring to a markdown text.

doc2md's People

Contributors

coldfix avatar asfaltboy avatar stevengj avatar

Watchers

James Cloos avatar Julian Mican avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.