blob: 3118681031e24d5eea7b53de3fcf3a5a43b9bb17 [file] [log] [blame] [view]
Davide Pesavento04af5f22020-06-21 22:02:47 -04001# NDN Packet Format Specification
Alexander Afanasyev26f0ff82013-11-21 23:22:41 +00002
Davide Pesavento04af5f22020-06-21 22:02:47 -04003## Prerequisites
Alexander Afanasyev26f0ff82013-11-21 23:22:41 +00004
Davide Pesavento04af5f22020-06-21 22:02:47 -04005To "compile" the specification in HTML format, you must first install the Sphinx documentation generator.
Alexander Afanasyev1f53de42013-12-01 19:25:55 +00006
Davide Pesavento04af5f22020-06-21 22:02:47 -04007If you're running Ubuntu Linux:
Alexander Afanasyev26f0ff82013-11-21 23:22:41 +00008
Davide Pesavento04af5f22020-06-21 22:02:47 -04009 sudo apt install make python3-pip
Davide Pesaventof2eb3592021-12-02 19:24:22 -050010 pip3 install -U pip
11 pip3 install -r requirements.txt
Alexander Afanasyev26f0ff82013-11-21 23:22:41 +000012
Davide Pesavento04af5f22020-06-21 22:02:47 -040013If you're running macOS or another operating system, see the instructions at https://www.sphinx-doc.org/en/master/usage/installation.html
Alexander Afanasyev1f53de42013-12-01 19:25:55 +000014
Davide Pesavento04af5f22020-06-21 22:02:47 -040015## Compilation
Alexander Afanasyev26f0ff82013-11-21 23:22:41 +000016
Davide Pesavento04af5f22020-06-21 22:02:47 -040017Just type:
Alexander Afanasyev26f0ff82013-11-21 23:22:41 +000018
19 make html
20
Davide Pesaventof2eb3592021-12-02 19:24:22 -050021And a set of HTML pages will be generated inside `_build/html`.
Alexander Afanasyev26f0ff82013-11-21 23:22:41 +000022
Davide Pesavento04af5f22020-06-21 22:02:47 -040023You can also type:
Alexander Afanasyev26f0ff82013-11-21 23:22:41 +000024
25 make latexpdf
26
Davide Pesavento04af5f22020-06-21 22:02:47 -040027Sphinx will generate a `.tex` file and will try to create a `.pdf` document from it using `pdflatex` (which must be installed).
Alexander Afanasyev26f0ff82013-11-21 23:22:41 +000028
Davide Pesavento04af5f22020-06-21 22:02:47 -040029For further options, type `make help`.