ligo/docs
Georges Dupéron 5e4bd12d3b
Michelson documentation: tez should be mutez
X-this-metadata-hash-v1: cr7e7yi4cBfaH2JA4ayG7moExgEttOxSHKy+86Zzz1z1Kd4/JkR6lmzWreG1u1boYQcmuE/AR24vi8MNgvWhTEYP1/i+Gc0Y4slp9+t8Dp564jXljc5O+uVYrl4XhbY3nduyaFEKX6/0ty0F6pn9zQJizZfhw3j5QH4P2bWuxUyqx66Vsl2AnIDGPX97qbNCNLUBwp1XvHb1aIJH78X2I22vT1IAAAAAAAAAtQ==
X-this-diff-hash-v1: mO0NIkv+QDqmHsRuDD0EU6hCOcAWVid7hoPtv3qDDFuJY54CfzlD7xZuwlOsf20KoldfzKliOd7ytMhBtn1OxxNK/IOeKcrFntFObh+MFEg76E9t62Q/NijuK1Fa+GiiQMSWn+MrD3hGrGOS1bZSxkVnxHezlWSM4fMPqR77yeDxU259A2PL2VF4RRbBtchN4LWSr5FuZDNOTPKekpq6UCkeMZAAAAAAAAARDQ==
X-this-tree-hash-v1: VkoKJM94S5VQJ1s7WZAofHCgOWzmlT3QpQAuPONxB3XOagRK4C8Rhjh6ndjEiQhV2HA4YzL57U0BTd/8WjnueTxdEJWA7aiPztXT5pEWKAFTmglN8x7VwF/z3/5IS9qGqik96pIxNHifVXVxqjgqxO3Lfsb+RlSEW33NOEce8dhW1MfU7o6RXmQUnGu0QtP8f1wQG7mmpnepM+0R6jfk9vHHJEkAAAAAAJ+z/w==
X-parents-hash-v1: RVHL1TYdshBuYh8ZI/KYQUZexrIe/J4TJwTzkTp1U8nUG8au5aNEawHhAs5RTBMT6aYWZBd5JmxUE8J/6VHQC7+gWahU3bzQXGG+1FDcCNLBgWMD3f3gYjxKIdEyU2GnNzeCcjPVv4f0MDP1OKvb/RcHaHQbM6WB57DsInSDC54s+uuD9ItJWLiPC2/PAaK4n1hxduIUBQh3fmzhfSPMkHPJHKIAAAAAAAABcw==
X-replaces-v1: none
X-number-by-author-v1: 000001
X-previous-commit-by-author-hash-v1: first
X-previous-strong-commit-hash-v1: first

X-review-sign-reason-base64: MDAwMDAxIGF1dGhvcmVkLWRpZmYgcmV2aWV3ZWQtZGlmZiBwYXRjaC1udW1iZXIgc2lnbmluZy1udW1iZXIgc2lnbmluZy1jaGFpbgo=
X-review-previous-signed: 000001 first
X-review-filename: 000001-000001-doc-tez-mutez.patch.signed
X-review-signature: -----BEGIN PGP SIGNATURE-----  iQIzBAABCAAdFiEEx+nLZ4fM6DOL0DiERkFcBrIgV+0FAlvokj4ACgkQRkFcBrIg V+3x+g//QiGgw2x0NJFkthQFa5VwjGqydB8eOBxgC8egPMNMuKGc+8lJK5LX7HmV GmDAyyT0TtXZt27xIX6P0bNSI6mERn/dq60vajWnePWPHm9vRZmSrW1ABoJmgZYu OTbD5Nt8EyCaHbAk8uutxLJAago3kzD26zkzfgSxg4qDNEY/sIS4PMHFXjn0Ypvb 1tSNQDGEwTXz/nK3unvz+5m4WJE8lQcmUd38LlLbJOF+t8qKrij2wuZPjii5BNoq aDE90d7Yi/jbDU2NB54Ws8jAMLi1/MBhyK7Av/mF0r7PTQS+3dbPvhLihGbMCgYe zaeYooUiRCMzHtfxpOxezHWONw48O3l7043K+d4m+2GkwVb30NjfqqGO4SRpyK3K wLtobVX2FquSj5qVNFxsSWPdV1+LYpMzX26+t52QRRLpW3EVpF1WocT7qc4HdbXx NI1B8z8eGzEQoJL9PhLadboGBGAlO1YHhx/ftw1Hbm6BvQAuVVPJrEjugijIkOJl bK3qajAqp0RiopLwHMmctEGwFru6fjafp2feXsyICM5Gyc7FkF/nnG6ZjHCF87Ni 7/bLm1+OiOrCVyhXDK8EOc9Cn3Y55KNMowCvmH5iPHH4HPmit8uZW2tZal/M6Amr jPFMy747cweELmZuRes60K/RxhIMHQ2isvQqkZSaM9GKZltKsfs= =IWuW -----END PGP SIGNATURE-----
X-sign-reason: 000002 authored-diff-weak reviewed-diff-weak patch-number signing-number signing-chain
X-previous-signed: 000002 -----BEGIN PGP SIGNATURE-----  iQIzBAABCAAdFiEEx+nLZ4fM6DOL0DiERkFcBrIgV+0FAlvokj4ACgkQRkFcBrIg V+3x+g//QiGgw2x0NJFkthQFa5VwjGqydB8eOBxgC8egPMNMuKGc+8lJK5LX7HmV GmDAyyT0TtXZt27xIX6P0bNSI6mERn/dq60vajWnePWPHm9vRZmSrW1ABoJmgZYu OTbD5Nt8EyCaHbAk8uutxLJAago3kzD26zkzfgSxg4qDNEY/sIS4PMHFXjn0Ypvb 1tSNQDGEwTXz/nK3unvz+5m4WJE8lQcmUd38LlLbJOF+t8qKrij2wuZPjii5BNoq aDE90d7Yi/jbDU2NB54Ws8jAMLi1/MBhyK7Av/mF0r7PTQS+3dbPvhLihGbMCgYe zaeYooUiRCMzHtfxpOxezHWONw48O3l7043K+d4m+2GkwVb30NjfqqGO4SRpyK3K wLtobVX2FquSj5qVNFxsSWPdV1+LYpMzX26+t52QRRLpW3EVpF1WocT7qc4HdbXx NI1B8z8eGzEQoJL9PhLadboGBGAlO1YHhx/ftw1Hbm6BvQAuVVPJrEjugijIkOJl bK3qajAqp0RiopLwHMmctEGwFru6fjafp2feXsyICM5Gyc7FkF/nnG6ZjHCF87Ni 7/bLm1+OiOrCVyhXDK8EOc9Cn3Y55KNMowCvmH5iPHH4HPmit8uZW2tZal/M6Amr jPFMy747cweELmZuRes60K/RxhIMHQ2isvQqkZSaM9GKZltKsfs= =IWuW -----END PGP SIGNATURE-----
2018-11-10 14:42:27 +01:00
..
_extensions Docs: update links to generated odoc 2018-07-10 13:58:13 +00:00
api Update rpc_proposal.rst 2018-10-16 14:31:38 +02:00
doc_gen Dune: use the new syntax 2018-08-01 10:52:24 +02:00
introduction Update opam version in documentation 2018-11-07 15:42:12 +01:00
tutorials fix typos in the doc 2018-10-08 12:28:56 +02:00
whitedoc Michelson documentation: tez should be mutez 2018-11-10 14:42:27 +01:00
conf.py Update README with new doc address and license 2018-07-06 18:18:41 +02:00
index.rst doc: add support page 2018-10-29 21:03:45 +01:00
logo.svg Docs: new documentation structure using Sphinx/RST 2018-01-23 08:02:17 +01:00
Makefile Doc: remove unused readme.rst from makefile 2018-07-25 16:47:10 +02:00
README.rst Update README with new doc address and license 2018-07-06 18:18:41 +02:00

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

The documentation is available online at `tezos.gitlab.io <http://tezos.gitlab.io/master/>`_,
always up to date with master on `GitLab <https://gitlab.com/tezos/tezos>`_.

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

To build the documentation, 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

Sphinx extensions
-----------------

Some ad-hoc reference kinds are supported.

- ``:package-src:`name``` or ``:package-src:`text<name>``` points
  to the gitlab source tree viewer where the `.opam` for the package
  is located
- ``:package:`name``` or ``:package:`text<name>``` now points
  either to the `odoc` page, or if it doesn't exist, to the gitlab
  source tree viewer
- ``:package-name:`name``` or ``:package-name:`text<name>``` just
  displays the package name (no link), checking that the package
  exists
- ``:src:`/path/to/file/or/dir``` or
  ``:src:`text</path/to/file/or/dir>``` points to the gitlab source
  tree viewer
- ``:opam:`package``` or ``:opam:`text<package>``` points to the
  package page on ``opam.ocaml.org``, version number is supported
  (``package.version``)

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.