https://github.com/sphinx-contrib/erlangdomain
https://github.com/sphinx-contrib/erlangdomain
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sphinx-contrib/erlangdomain
- Owner: sphinx-contrib
- License: other
- Created: 2017-09-28T14:11:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-28T14:11:43.000Z (over 7 years ago)
- Last Synced: 2025-01-12T01:26:27.312Z (4 months ago)
- Language: Python
- Size: 42 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
=============
Erlang Domain
=============:author: SHIBUKAWA Yoshiki
About
=====This is the Erlang domain for Sphinx 1.0.
Sphinx 1.0 will deliver new feature -- Domain.
It will enable other language support except Python and C language.This extension provides directives and roles to write Erlang documents.
Erlang Domain supports following objects:
* Module
* Function
* Macro
* Record
.. note::This domain expresses module structure like this::
module:function_name/0
module:#record_name
module:MacroNameURLs
====:PyPI: http://pypi.python.org/pypi/sphinxcontrib-erlangdomain
:Detail Document: http://packages.python.org/sphinxcontrib-erlangdomainQuick Sample
============.. note::
These contents is copied from http://www.erlang.org/doc/man/lists.htmlThis is source::
.. erl:module:: lists
.. erl:function:: append(ListOfLists) -> List1
:type ListOfLists: [[term()]]
:rtype: [term()]Returns a list in which all the sub-lists of ListOfLists
have been appended. For example:.. code-block:: erlang
> lists:append([[1, 2, 3], [a, b], [4, 5, 6]]).
[1,2,3,a,b,4,5,6].. erl:function:: append(List1, List2) -> List3
:param List1: First Item
:type List1: [term()]
:param List2: Second Item
:type List2: [term()]
:rtype: [term()]Returns a new list List3 which is made from the elements
of List1 followed by the elements of List2. For example:.. code-block:: erlang
> lists:append("abc", "def").
"abcdef"``lists:append(A, B)`` is equivalent to ``A ++ B``.
-----------------
.. erl:module:: lists
.. erl:function:: append(ListOfLists) -> List1
:type ListOfLists: [[term()]]
:rtype: [term()]Returns a list in which all the sub-lists of ListOfLists
have been appended. For example:.. code-block:: erlang
> lists:append([[1, 2, 3], [a, b], [4, 5, 6]]).
[1,2,3,a,b,4,5,6].. erl:function:: append(List1, List2) -> List3
:param List1: First Item
:type List1: [term()]
:param List2: Second Item
:type List2: [term()]
:rtype: [term()]Returns a new list List3 which is made from the elements
of List1 followed by the elements of List2. For example:.. code-block:: erlang
> lists:append("abc", "def").
"abcdef"``lists:append(A, B)`` is equivalent to ``A ++ B``.
------------------
From other place, you can create cross reference like that::
followed by List2. Looking at how :erl:func:`lists:append/1`
or ``++`` would be implemented in plain Erlang,
it can be seen clearly that the first list is copied.Result:
-----------
followed by List2. Looking at how :erl:func:`lists:append/1`
or ``++`` would be implemented in plain Erlang,
it can be seen clearly that the first list is copied.-----------
Install
=======.. code-block:: bash
$ easy_install -U sphinxcontrib-erlangdomain