ligo/docs
Bruno Bernardo 518a07d5e4 Docs: add missing semantics for some Michelson instructions
Co-authored with: Benjamin Canou <benjamin@canou.fr>
2018-02-06 16:32:34 +01:00
..
_extensions Docs: new documentation structure using Sphinx/RST 2018-01-23 08:02:17 +01:00
api Docs: add online help pages for the client 2018-01-31 14:51:56 +00:00
introduction Docs: new documentation structure using Sphinx/RST 2018-01-23 08:02:17 +01:00
tutorials Docs: new documentation structure using Sphinx/RST 2018-01-23 08:02:17 +01:00
whitedoc Docs: add missing semantics for some Michelson instructions 2018-02-06 16:32:34 +01:00
conf.py Docs: new documentation structure using Sphinx/RST 2018-01-23 08:02:17 +01:00
index.rst Docs: add online help pages for the client 2018-01-31 14:51:56 +00:00
logo.svg Docs: new documentation structure using Sphinx/RST 2018-01-23 08:02:17 +01:00
Makefile Docs: Fix minor problem with make clean 2018-01-23 16:12:48 +01:00
README.rst Docs: new documentation structure using Sphinx/RST 2018-01-23 08:02:17 +01:00

******************************
Building documentation locally
******************************

Building instructions
---------------------

To build the documentaion, you can use the main Makefile target ``doc-html``

.. code:: bash

    make doc-html

The documentation is built by Sphinx, and uses the Read The Docs theme.

On a debian system, you can install the needed dependencies with:

.. code:: bash

    sudo apt install \
      python3-recommonmark \
      python3-sphinx \
      python3-sphinx-rtd-theme

OCaml documentation
-------------------

Odoc is used for OCaml API generation, that you can install with:

.. code:: bash

    opam install odoc

Tezos generates the API documentation for all libraries in HTML format.  The
generated HTML pages in ``_build/<context>/_doc``. It creates one sub-directory
per public library and generates an ``index.html`` file in each sub-directory.

The documentation is not installed on the system by Tezos. It is meant to be
read locally while developing and then published on the www when releasing
packages.