ligo/docs
Georges Dupéron 1b78448ee1
Fixed typo in documentation
X-this-metadata-hash-v1: LKipXxIHgoFUQ5A2tItkv+SeYY6+y4EWxhR0TtcKbk9j3leY/7tgAxhWKyTkS9RxHCUkYNUn1z2tGOFFPuUEV0c0nprwlE9uYgKUR41288So6crvRsUYO5IlnGOPIefJ/D7Y6HPjdLtNQVUYUjWwM7hCX8wBCZuRYHNSMozUpNwXex+qrKF8ZFog25yQ8oNvL+8tazB08pwxMr9dzWr03ZKX6xUAAAAAAAAApA==
X-this-diff-hash-v1: mqwiXjpJe6vuMDs9mk6+ozv/P02TLNFSK97EI+uLvioxyBiJY+XqYVTCg8Kka4Gg5hnx90SQrd714E+yI6k+szDUFs7k0aEu7gXSKe5/0woP7PE5KsgHvmCVQeAJpxcY8yoTZjGZWIV6FTMRD1ElirJxYkjVy1oN+mB8XCmgC4hJrAfdFdUdQx4YhG9ScSRTfmJ0nHjznXWIgOu53H1dNZTsG5QAAAAAAAACNA==
X-this-tree-hash-v1: 9zO0sqq2LZwBu+GlPf/yBjyU7XzVoY4OwhqbplHkqVQ7f8zSVK+NXgMY7tA3GnvstjYjZyn3zy2Zf0VRzCvjNUTnPuEprmzefhOFDxZaxp6ndW1bBsKNFZg+ipLVDFMwpsQz0xUOcwyx3THnc+d9kfk3WztqagOXTQ2bTT/M+h6dqIT5tVQ0lp6iKfX8yxVIMO1RdVw8OkfVzpXRBlPanNEp9ikAAAAAAJ+z/A==
X-parents-hash-v1: bz4iAgkBZR+ytR3Rq23pWp984hr9MEOHM/AtxaQBHQhQBq4HZW/Rg3vvbcNjR/4xjf4mroVywTse7djhQUNF346oex9ZeJHKxmjpBbdsf9SkES++YPVE1a2ce2hLP36jjjrBadoYtO3LhfRx6MfyNJBmObwsHnk/VaUGOr1emzkttYKYaGTgOSIAQa4+DIPha2DAULv2fMes2am21UKRPRqXC3AAAAAAAAASVg==
X-replaces-v1: none
X-number-by-author-v1: 000002
X-previous-commit-by-author-hash-v1: hRr2n30OUaHM6iMxcO7ogbJ2M1CJd3B42cJDqP9PfwchU2M6oPOD+PC+POG1wEtDxJUCYD9ChN733MOLVojehrifwAsC5PTp1Re6wMNt2dY7eRE/JOdEymM1jR9QdjYDZ+8rtvZhqF89TOt8vTqK6dBG2iQDZNbeyyZfVV8pSVVSU/fCAo1mZz8Vs+UeZEanL8jEIYpfpRqKxvzoppi43SLOuV4AAAAAAAAQ9Q==
X-previous-strong-commit-hash-v1: hRr2n30OUaHM6iMxcO7ogbJ2M1CJd3B42cJDqP9PfwchU2M6oPOD+PC+POG1wEtDxJUCYD9ChN733MOLVojehrifwAsC5PTp1Re6wMNt2dY7eRE/JOdEymM1jR9QdjYDZ+8rtvZhqF89TOt8vTqK6dBG2iQDZNbeyyZfVV8pSVVSU/fCAo1mZz8Vs+UeZEanL8jEIYpfpRqKxvzoppi43SLOuV4AAAAAAAAQ9Q==

X-review-sign-reason-base64: MDAwMDAzIGF1dGhvcmVkLWRpZmYgcmV2aWV3ZWQtZGlmZiBwYXRjaC1udW1iZXIgc2lnbmluZy1udW1iZXIgc2lnbmluZy1jaGFpbgo=
X-review-previous-signed: 000003 -----BEGIN PGP SIGNATURE-----  iQIzBAABCAAdFiEEx+nLZ4fM6DOL0DiERkFcBrIgV+0FAlvokpwACgkQRkFcBrIg V+053w/9HoPFVXBGVvwAM4BS9og+BZcyQNfLOazVC2/HLZ6AFOyMOOSplaPEG63p iIQQkAl9Ys5C7JhhI91HsmYv2gyK/ds6bzUc1IkKG78KDtC4SIYTzfw2juXibM42 vBHV5/tV1WEUTYSFwpGjXWNOoqKyT/J9aO28NdMWHyGcYypLOT5B3QSHPb71ixB1 KlQOshjUess31QhcZVksFPLf2qOvMVvPtu6jKsS/MGeuYV0UYV5PUuX2lJKp8RG0 3Yqmo9pHB4ovKOY9bq3Xbywy1ziegWePUooTzK4VHaA3vWGCKBEMGVdQGnsmU2jg UlUVS73hX9duLdbVmhvR/ZTuXyROt/tmawxT1dj2hvxOQKzCmIIbtYfurqV/6Bxi M7zXhUjdmVQ1S3auw06/9FDxh9bHhEIO2qPNGl04G4PlBMMurKjY0Bex1X8hNOhV Sas+HteTPjaOHsjyqbsNiomsnyyd1p0o91AE6nt3G1Jxp1IzVy7fs46ThKVKq4/2 9Lk6stbYcLr6hpDUvf/N+TAt1YZ2D934rGlrqb5v8Pk0whyFbOUGBWJwcq+rW0eq Y3xYmMhoRqmjx7ZKqpIiUyYNBkb062XqNCP6N5TuaN3KJ0LyjXq9POnAFpFzoSV3 GjewPBIlIhLnc4kEtqc6UKMrjgoho8Xx2jy+SF2MGmWClg6Tzmw= =Fa2I -----END PGP SIGNATURE----- 
X-review-filename: 000003-000002-doc-typo-its.patch.signed
X-review-signature: -----BEGIN PGP SIGNATURE-----  iQIzBAABCAAdFiEEx+nLZ4fM6DOL0DiERkFcBrIgV+0FAlvop9QACgkQRkFcBrIg V+19hg//ffw1qT/bSbVxaXE8w3XE4s/vjUbdImlDEfLiQ5baU0N0vHxaTw1xBLaC kBdHTQ2wh8MkYKyP/5ebufT88OEGW6wCK7XKagRSHkijKFhlZfp/fOsrv1qPROeq QaXu8uw/iJM57qTYyd/boCwDWtjNe2bJKmf36MBwcAs8AImw12sTe9O4RlUZF8bu eVcO6/PtRJvJJ1Ql49/nFf9adOQwKyM1h1x3M/T7wmCvvVdhjDlp1woqEiTAh61G kME63Hpm4IPAJp6dNaGdodKU/ndEMwVi55z9ypl5nfhRiJnSsZJDnQN1OeHSkPZX mcc2Qs8MFcqi0twixGdR2uvgLh34l4jmLQ1yFa1+SsrtYzP/opxXj5X2lsb7kVlN Ah2sntXKd6kzIBLfF3e7SGm2y1R9HfUVX+/0v/osA2l0Iv2AQbqBSaAcbKsBMmlP 6aYF2CfGCf8qraZWrZ0/1zGzF32o3DcLyJ/Iiz8LGC+oDYX8fAk3CMg3c9pS+zqr 05WduvQJCQGFQwXq1GLRUDNRwjvMP1AA4lMbrhna+pUiMkAWAfKDE9rXpdGRn9/s 7+3CNaNQE+CpfQB+bHgRLHkNy4AlYcm1PU5Va4VS1GL8UtOQjh+QsgnX6ZRFYz8S brSdZ/kTE0YLzmfzvfBV1tS5qWSdgJYjyNm4WA5rOPaqxEA1Vb4= =nwVi -----END PGP SIGNATURE-----
X-sign-reason: 000004 authored-diff-weak reviewed-diff-weak patch-number signing-number signing-chain
X-previous-signed: 000004 -----BEGIN PGP SIGNATURE-----  iQIzBAABCAAdFiEEx+nLZ4fM6DOL0DiERkFcBrIgV+0FAlvop9QACgkQRkFcBrIg V+19hg//ffw1qT/bSbVxaXE8w3XE4s/vjUbdImlDEfLiQ5baU0N0vHxaTw1xBLaC kBdHTQ2wh8MkYKyP/5ebufT88OEGW6wCK7XKagRSHkijKFhlZfp/fOsrv1qPROeq QaXu8uw/iJM57qTYyd/boCwDWtjNe2bJKmf36MBwcAs8AImw12sTe9O4RlUZF8bu eVcO6/PtRJvJJ1Ql49/nFf9adOQwKyM1h1x3M/T7wmCvvVdhjDlp1woqEiTAh61G kME63Hpm4IPAJp6dNaGdodKU/ndEMwVi55z9ypl5nfhRiJnSsZJDnQN1OeHSkPZX mcc2Qs8MFcqi0twixGdR2uvgLh34l4jmLQ1yFa1+SsrtYzP/opxXj5X2lsb7kVlN Ah2sntXKd6kzIBLfF3e7SGm2y1R9HfUVX+/0v/osA2l0Iv2AQbqBSaAcbKsBMmlP 6aYF2CfGCf8qraZWrZ0/1zGzF32o3DcLyJ/Iiz8LGC+oDYX8fAk3CMg3c9pS+zqr 05WduvQJCQGFQwXq1GLRUDNRwjvMP1AA4lMbrhna+pUiMkAWAfKDE9rXpdGRn9/s 7+3CNaNQE+CpfQB+bHgRLHkNy4AlYcm1PU5Va4VS1GL8UtOQjh+QsgnX6ZRFYz8S brSdZ/kTE0YLzmfzvfBV1tS5qWSdgJYjyNm4WA5rOPaqxEA1Vb4= =nwVi -----END PGP SIGNATURE-----
2018-11-11 22:54:17 +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 Fixed typo in documentation 2018-11-11 22:54:17 +01: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.