123456789101112131415161718192021222324252627282930313233(**************************************************************************)(* *)(* Copyright 2020 OCamlPro & Origin Labs *)(* *)(* All rights reserved. This file is distributed under the terms of the *)(* GNU Lesser General Public License version 2.1, with the special *)(* exception on linking described in the file LICENSE. *)(* *)(**************************************************************************)openEzcmd.V2openEZCMD.TYPESletcmd_name="doc"letaction~args~open_www()=let(p:Types.project)=Build.build~dev_deps:true~args()inlet(_odoc_target:string)=CommandOdoc.make_odocpinlet(_sphinx_target:string)=CommandSphinx.make_sphinxpinif!open_wwwthenMisc.call[|"xdg-open";"_drom/docs/index.html"|]letcmd=letargs,specs=Build.build_args()inletopen_www=reffalseinEZCMD.subcmd_name(fun()->action~args~open_www())~args:([(["view"],Arg.Setopen_www,EZCMD.info"Open a browser on the documentation")]@specs)~doc:"Generate all documentation (API and Sphinx)"