Skip to content

Commit 31185e7

Browse files
authored
Merge pull request xapi-project#3154 from kc284/master
Extended README.md and excluded from build output.
2 parents 323ba8f + 1b54eba commit 31185e7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ doc: setup.data build
1414
$(SETUP) -doc $(DOCFLAGS)
1515
./jsapi.native -destdir _build/ocaml/doc -templdir ocaml/doc/templates
1616
./datamodel_main.native -closed -markdown -templdir ocaml/doc/templates _build/ocaml/doc/markdown
17-
cp ocaml/doc/*.dot ocaml/doc/*.md ocaml/doc/doc-convert.sh _build/ocaml/doc/markdown
17+
cp ocaml/doc/*.dot ocaml/doc/doc-convert.sh _build/ocaml/doc/markdown
18+
find ocaml/doc -name "*.md" -not -name "README.md" -exec cp {} _build/ocaml/doc/markdown/ \;
1819

1920
test: setup.data build
2021
$(SETUP) -test $(TESTFLAGS)

ocaml/doc/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
Run `make doc`. The output is in `_build/ocaml/doc/markdown`.
44

55
To view the markdown properly you will need to install `graphviz` so as to
6-
convert the dot files to images. To generate a pdf in addition, you will need to
7-
install `pandoc` and `pdflatex`.
6+
convert the dot files to images. To generate the API reference in other formats
7+
(currently docbook and pdf) you will need to install `pandoc`. For pdf format
8+
you will also need `pdflatex`.
89

910
To convert the images only, run `sh doc-convert.sh`.
1011

11-
To also generate the pdf run `sh doc-convert.sh --pdf`.
12+
To generate the docbook run `sh doc-convert.sh --docbook`.
13+
14+
To generate the pdf run `sh doc-convert.sh --pdf`.

0 commit comments

Comments
 (0)