Skip to content

Commit

Permalink
make doc: adjust for change between jbuilder beta19 and beta20
Browse files Browse the repository at this point in the history
...
  • Loading branch information
AltGr committed Apr 18, 2018
1 parent a454973 commit 5a7f790
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,10 @@ man-html: man
dev:
$(MAKE) -C dev-manual

ODOC_PFX = _build/default/_doc

html:
rm -rf html
mkdir -p html
cd .. && $(JBUILDER) build @doc
cp ../$(ODOC_PFX)/odoc.css html/
for f in ../$(ODOC_PFX)/*/*.html ../$(ODOC_PFX)/*/*/*.html; do\
mkdir -p $$(dirname html/$${f#../$(ODOC_PFX)/});\
cp $$f html/$${f#../$(ODOC_PFX)/};\
done
cp -r ../_build/default/_doc/_html html
sed 's/%{OPAMVERSION}%/'$(version)'/g' index.html > html/index.html
# Not to break older links, add manpages to the `ocamldoc` dir
mkdir -p html/ocamldoc
Expand Down

0 comments on commit 5a7f790

Please sign in to comment.