Skip to main content

Sphinx domain for documenting Lua code

Project description

##########
sphinx-lua
##########

A sphinx lua domain.

Full example:

```rest
.. lua:alias:: Packet = table<string, number>

A type alias.


.. lua:class:: Base

A base class

.. lua:attribute:: clsName: string

The class name


.. lua:class:: Foo: Base

My super lua class.

.. lua:method:: append(i)
:virtual:

A virtual method.

:param i: Value to append
:type i: integer or None

.. lua:staticmethod:: static(i)

A static method.


.. lua:method:: send(packet)
:abstract:

An abstract method.

:param Packet packet: foo


.. py:function:: send(msg)

Send a message to a recipient

:param str packet: The person sending the message
:type packet: string
:return: the message id
:rtype: int
```

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

sphinxcontrib-luadomain-1.1.1.tar.gz (10.4 kB view hashes)

Uploaded Source

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