Skip to main content

Convert docs to Dash.app's docset format.

Project description

https://secure.travis-ci.org/hynek/doc2dash.png

doc2dash is a MIT licensed extensible Documentation Set generator intended to be used with the dash API browser for OS X.

If you’ve never heard of dash, you’re missing out: Together with doc2dash it’s all your API documentation at your fingertips!

Supported input types

Currently, the following source types are supported:

  • Sphinx’s HTML output (nearly every single Python project out there)

  • pydoctor’s HTML output (Twisted!)

Feel free to help adding more! While doc2dash is implemented in Python, the scope for the supported documentation types is unlimited. So go on and submit a parser for your favourite Ruby, Haskell, Lisp, Erlang, JavaScript, … format!

Usage

The usage is as simple as:

$ doc2dash -A <docdir>

doc2dash will create a new directory called “<docdir>.docset” in ~/Library/Application Support/doc2dash/DocSets containing a dash-compatible docset with a SQLite index. When finished, the docset is automatically added to dash.

Full usage:

usage: doc2dash [-h] [--force] [--name NAME] [--version] [--quiet] [--verbose]
             [--destination DESTINATION] [--add-to-dash] [-A]
             source

positional arguments:
  source                Source directory containing API documentation in a
                        supported format.

optional arguments:
  -h, --help            show this help message and exit
  --force, -f           force overwriting if destination already exists
  --name NAME, -n NAME  name docset explicitly
  --version             show program's version number and exit
  --quiet, -q           limit output to errors and warnings
  --verbose, -v         be verbose
  --destination DESTINATION, -d DESTINATION
                        destination directory for docset (default is current),
                        ignored if -A is specified
  --add-to-dash, -a     automatically add resulting docset to dash
  -A                    create docset in doc2dash's default directory and add
                        resulting docset to dash
  --icon ICON, -i ICON  add PNG icon to docset
  --index-page INDEX_PAGE, -I INDEX_PAGE
                          set index html file for docset

Installation

The latest stable version can be always found on PyPI and can therefore be installed using a simple:

$ pip install --user doc2dash

If you haven’t pip yet, installation should be as easy as:

$ curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python

doc2dash runs on Python 2.7, 3.2, and 3.3.

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

doc2dash-1.2.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

doc2dash-1.2.0-py2.py3-none-any.whl (15.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file doc2dash-1.2.0.tar.gz.

File metadata

  • Download URL: doc2dash-1.2.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for doc2dash-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ab27e64ea72e86e743f791781dd15861ec0207e3dd50daa3704499a7d004f0e7
MD5 1923485ca35090d2fac4b2e6c30048dd
BLAKE2b-256 4438dd49b4ab797fa6999f1f06b3a1da4af0cecb9f52ecc9fe6c95e375f21905

See more details on using hashes here.

File details

Details for the file doc2dash-1.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for doc2dash-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 851f5aba934d5b2858cf28504f8f9feef19214a521164784873a0be0322078b9
MD5 f1f27ca16d8af850e922953f074d8ffc
BLAKE2b-256 a1695a725cca16fd7909cddba21d7142f45368a4df4d90b8598351013cad9c5c

See more details on using hashes here.

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