Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Documentation

    sphinxcontrib-coffee 0.2.0

    Download button

    No screenshots available
    Downloads: 271  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Stephen Sugden | More programs
    BSD License / FREE
    May 22nd, 2012, 08:19 GMT
    ROOT / Documentation

     Read user reviews (0)  Refer to a friend  Subscribe

    sphinxcontrib-coffee description

    Sphinx extension to add CoffeeScript support

    sphinxcontrib-coffee is a Sphinx extension that adds a CoffeeScript domain with autodoc support to Sphinx.

    This relies on coffeedoc_ to extract source comments from ``.coffee`` files. To install coffeedoc globally::

      npm install -g coffeedoc

    .. _coffeedoc: https://github.com/omarkhan/coffeedoc

    Usage

    First you must add the extension to your list of extensions in conf.py:

      extensions = ['sphinx.ext.autodoc', 'sphinxcontrib.coffeedomain']

    Because Python has no clue about where your sources are, you must tell it where to look in your conf.py like so:

      coffee_src_dir = os.path.abspath('../')

    Finally, if your project is primarily CoffeeScript, you might want to define the primary domain as well:

      primary_domain = 'coffee'

    Directives and Roles

    This domain provides module, function, class and method directives, as well as meth, class, and func roles for cross-referencing. In order to reference another object, use it's fully-qualified name: The module name, a double colon, and the dot separate path to the object within the module.

    For example, to reference the ``swizzle`` function in the file ``lib/widgets.coffee``, write ``:coffee:func:`lib/widgets::swizzle``. You can drop the leading ``:coffee`` if your primary domain has been set to coffee, and you can drop the module name iff you are linking from within the ``lib/widgets`` module.

    Autodoc

    You can document entire modules easily with ``automodule``:

    .. sourcecode:: rst

      .. automodule:: mymodule
        :members:



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    CoffeeScript domain | Sphinx extension | CoffeeScript | Sphinx | extension

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM