[libvirt] [ocaml PATCH] doc: invoke ocamldoc with -colorize-code

Pino Toscano posted 1 patch 5 years, 5 months ago
Failed in applying to current master (apply log)
Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[libvirt] [ocaml PATCH] doc: invoke ocamldoc with -colorize-code
Posted by Pino Toscano 5 years, 5 months ago
This way, the OCaml snippets are colorized.

The OCaml version required is higher than the first version shipping
ocamldoc with this option, so that can be done unconditionally.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
---
 Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index ad5a036..f119dbc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -23,7 +23,7 @@ INSTALL		= @INSTALL@
 MAKENSIS	= @MAKENSIS@
 
 OCAMLDOC        = @OCAMLDOC@
-OCAMLDOCFLAGS	:= -html -sort
+OCAMLDOCFLAGS	:= -html -sort -colorize-code
 
 SUBDIRS		= libvirt examples
 
-- 
2.17.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [ocaml PATCH] doc: invoke ocamldoc with -colorize-code
Posted by Richard W.M. Jones 5 years, 5 months ago
On Mon, Oct 15, 2018 at 04:07:01PM +0200, Pino Toscano wrote:
> This way, the OCaml snippets are colorized.
> 
> The OCaml version required is higher than the first version shipping
> ocamldoc with this option, so that can be done unconditionally.
> 
> Signed-off-by: Pino Toscano <ptoscano@redhat.com>
> ---
>  Makefile.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile.in b/Makefile.in
> index ad5a036..f119dbc 100644
> --- a/Makefile.in
> +++ b/Makefile.in
> @@ -23,7 +23,7 @@ INSTALL		= @INSTALL@
>  MAKENSIS	= @MAKENSIS@
>  
>  OCAMLDOC        = @OCAMLDOC@
> -OCAMLDOCFLAGS	:= -html -sort
> +OCAMLDOCFLAGS	:= -html -sort -colorize-code
>  
>  SUBDIRS		= libvirt examples

Trivial improvement, ACK.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list