Skip to main content

Intro

docme is a python application, which its goal is to reduce writing redundant rst documentations.
it is similar to sphinx builtin autodoc module, but docme goal is to create more cleaner look,
that autodoc doesn’t provide.

Installation

Simply use pip installer:

pip install docme

Or download src files from Github/Pypi and write:

python setup.py install

for developers, use:

python setup.py develop

Where To Begin

Simple Start

lets say your project’s tree is like so:

.gitignore
src/
src/project/
src/project/file.py

and you wish to create auto documentation of your project.

simply use docme command - which is an entry point which directs to :func:docme.cli.main function:

docme src/project doc
where src/project is the path to your main project files,
and doc is the directory of docs that will be created.
The result is that a new folder will be created named doc, and in it all relevant rst files,
new tree will look like:
.gitignore
doc/
doc/api_reference/
doc/api_reference/project/
doc/api_reference/project/file.rst
doc/api_reference/project/index.rst
doc/api_reference/index.rst
doc/index.rst
src/
src/project/
src/project/file.py

now you can simply add make file and conf.py for sphinx to compile the doc to html!

cd doc
make html

Including External Doc

lets say you already got some doc to include to the api reference:
.gitignore
doc/
doc/how_to_start/
doc/how_to_start/advanced.rst
doc/how_to_start/intro.rst
doc/how_to_start/index.rst
src/
src/project/
src/project/file.py

you can include how_to_start section like so:

docme src/project doc --extra-doc how_to_start/index
pay attention it is exactly the line you need to add to the main index.rst.
newly created tree:
.gitignore
doc/
doc/how_to_start/
doc/how_to_start/advanced.rst
doc/how_to_start/intro.rst
doc/how_to_start/index.rst
doc/api_reference/
doc/api_reference/project/
doc/api_reference/project/file.rst
doc/api_reference/project/index.rst
doc/api_reference/index.rst
doc/index.rst
src/
src/project/
src/project/file.py
In your doc you can reference classes and functions from your api!
like so:
:class:`example<path.to.Class>`

Metadata

Release files for docme 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for docme 0.5.0
File Interpreter ABI Platform
docme-0.5.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / docme-0.5.0-py2.py3-none-any.whl

Download URL docme-0.5.0-py2.py3-none-any.whl
Size 15.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
822b3467d609fe2ae1780fb75ed2ac57440f8fe4eb5650c97f0ebba4d2476398
BLAKE2b-256 checksum
How to use checksums
a8aec8f6c50140164dafc3648cc8bc8f55ad49e1815ae8230e16b1698fe914e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page