{ "info": { "author": "Nathan Yergler", "author_email": "nathan@yergler.net", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Documentation", "Topic :: Text Processing" ], "description": "==================\nSphinx Classy Code\n==================\n\n.. image:: https://travis-ci.org/nyergler/sphinx-classy-code.png?branch=master\n :target: https://travis-ci.org/nyergler/sphinx-classy-code\n\n.. image:: https://coveralls.io/repos/nyergler/sphinx-classy-code/badge.png\n :target: https://coveralls.io/r/nyergler/sphinx-classy-code\n\n\nDrop-in replacements for Sphinx_\\ ' ``code-block`` and\n``literalinclude`` directives. In addition to specifying\n`emphasize-lines`_, you can specify arbitrary classes to add on a\nper-line basis.\n\nFor example::\n\n .. code-block:: python\n :line-classes: 1(python-def)\n\n def stay(classy):\n pass\n\nWill wrap the function declaration in ``...``.\n\nValid line + class specifiers include:\n\n* ``1(classname)``\n* ``1-5(classname)``\n\nYou can separate multiple specifiers with a comma.\n\nYou can use both ``line-classes`` and ``emphasize-lines`` in the same\nblock.\n\nInstallation\n============\n\nTo install, simply install the package::\n\n $ pip install sphinx-classy-code\n\nThen add it to the list of Sphinx extensions in your ``conf.py``::\n\n extensions = ['classycode']\n\nLicense\n=======\n\n**sphinx-classy-code** is made available under a BSD license; see\nLICENSE for details.\n\n\n.. _Sphinx: http://sphinx-doc.org/\n.. _`emphasize-lines`: http://sphinx-doc.org/markup/code.html?highlight=literalinclude#line-numbers\n\n\nNews\n====\n\n0.1\n---\n\n*Release date: 16 March 2014*\n\n* ``code-block`` supports ``line-classes`` option.\n* ``literalinclude`` supports ``line-classes`` option.\n* ``line-classes`` and ``emphasize-lines`` work together correctly.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nyergler/sphinx-classy-code", "keywords": "", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "sphinx-classy-code", "package_url": "https://pypi.org/project/sphinx-classy-code/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sphinx-classy-code/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nyergler/sphinx-classy-code" }, "release_url": "https://pypi.org/project/sphinx-classy-code/0.1/", "requires_dist": null, "requires_python": null, "summary": "UNKNOWN", "version": "0.1" }, "last_serial": 1031642, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "36b52fd625e043416d772c70a7f2d090", "sha256": "d4a38be95fa07bb7122293982b4490375b34b1e365c8cc7951421e9967c5f053" }, "downloads": -1, "filename": "sphinx-classy-code-0.1.tar.gz", "has_sig": false, "md5_digest": "36b52fd625e043416d772c70a7f2d090", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8569, "upload_time": "2014-03-16T21:02:52", "url": "https://files.pythonhosted.org/packages/42/a2/6e744da9671a5271e31e69aad8c7739983db718d09f0105da082153c0a60/sphinx-classy-code-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "36b52fd625e043416d772c70a7f2d090", "sha256": "d4a38be95fa07bb7122293982b4490375b34b1e365c8cc7951421e9967c5f053" }, "downloads": -1, "filename": "sphinx-classy-code-0.1.tar.gz", "has_sig": false, "md5_digest": "36b52fd625e043416d772c70a7f2d090", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8569, "upload_time": "2014-03-16T21:02:52", "url": "https://files.pythonhosted.org/packages/42/a2/6e744da9671a5271e31e69aad8c7739983db718d09f0105da082153c0a60/sphinx-classy-code-0.1.tar.gz" } ] }