From 968e23ec0d87a531b7f2a3e2d7cd0c3186af6920 Mon Sep 17 00:00:00 2001 From: Keryan Didier Date: Tue, 11 Jun 2024 11:43:46 +0200 Subject: [PATCH] Push JS examples in doc page --- Makefile | 7 ++++++- docs/index.html | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9fd4d067..86326c77 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,11 @@ doc-common: build mkdir -p _build/docs rsync -auv docs/. _build/docs/. +doc-examples: build + mkdir -p _build/docs/examples + cp _build/default/examples/*.js _build/docs/examples/. + cp _build/default/examples/*.html _build/docs/examples/. + sphinx: doc-common sphinx-build sphinx ${SPHINX_TARGET} @@ -34,7 +39,7 @@ odoc: doc-common opam exec -- dune build @doc rsync -auv --delete _build/default/_doc/_html/. ${ODOC_TARGET} -doc: doc-common odoc sphinx +doc: doc-common doc-examples odoc sphinx view: xdg-open file://$$(pwd)/_build/docs/index.html diff --git a/docs/index.html b/docs/index.html index 9c4f63ce..dd4e554a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -25,6 +25,7 @@

OCaml-Canvas

  • Project on Github
  • General Documentation
  • API Documentation
  • +
  • Examples
  • Bug reports
  • Authors: