Index of /publis/ocaml-mots-cles-en-francais/ocaml-sources/manual/src/html_processing

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]js/2021-03-10 08:48 -  
[DIR]scss/2021-03-10 08:48 -  
[DIR]src/2021-03-10 08:48 -  
[   ].gitignore2021-03-10 08:48 58  
[   ]Makefile2021-03-10 08:48 3.8K 
[TXT]README.md2021-03-10 08:48 2.1K 
[   ]dune-project2021-03-10 08:48 17  

HTML post-processing

This directory contains material for enhancing the html of the manual and the API (from the ../htmlman directory), including a quick search widget for the API.

The process will create the ../webman dir, and output the new html files (and assets) in ../webman/manual (the manual) and ../webman/api (the API).

manual and api

There are two different scripts, process_manual.ml and process_api.ml. The first one deals with all the chapters of the manual, while the latter deals with the api generated with ocamldoc. They both use a common module common.ml.

How to build

With dependencies to build the whole manual:

cd ..
make web

Or, much faster if you know that htmlman is already up-to-date, from within the html_processing dir:

make

You need a working sass CSS processor (tested with version "3.4.23").

How to browse

From the html_processing directory:

firefox ../webman/api/index.html

firefox ../webman/manual/index.html

Debug

make DEBUG=1

By default all html files are re-created by make, but the javascript index webman/api/index.js and webman/api/compilerlibref/index.js are kept if they already exist. You can use make clean to delete all generated files.

The javascript files in the html_processing/js dir add functionality but the web-manual is still browsable without them: