Convert docs to Dash.app's docset format.
Project description
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)
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, and 3.3+.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file doc2dash-1.2.1.tar.gz
.
File metadata
- Download URL: doc2dash-1.2.1.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce6e322d9e409234b5c66f34b7a32ed6c21d08abb79328cfa93bf21476f63f57 |
|
MD5 | 3e955619ff9785e397b8900691d4cddc |
|
BLAKE2b-256 | cb4e452ba9818c2b7cf7bce6a93253a957313a69c9f6d21d557105fff98dc89c |
File details
Details for the file doc2dash-1.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: doc2dash-1.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d172da113fea76ad46e2977ec961b23897a1d255a678346eebb9fae381dea271 |
|
MD5 | 7572af035e2f33e24e5d01a18fb80b0a |
|
BLAKE2b-256 | 053cf5ef385eac3cf9fd6bea57d4de49dc4a6c17714bf24f77f909a7c8d92736 |