Rev 16240 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
13457 | obado | 1 | # WIMS W3C inline Validation |
2 | Validation in line of a module OEF or a document (for the moment), only the first page of the exercise |
||
11189 | bpr | 3 | |
13457 | obado | 4 | ## Install |
5 | Need [w3c-validator.py](https://github.com/srackham/w3c-validator/blob/master/w3c-validator.py) in the directory validation |
||
11189 | bpr | 6 | |
13457 | obado | 7 | ## Use |
8 | Launch the script from the directory validation |
||
11189 | bpr | 9 | |
11198 | bpr | 10 | To use on one module write: |
13457 | obado | 11 | |
16240 | reyssat | 12 | ./checkhtmlwims $option $module_address |
13457 | obado | 13 | |
16240 | reyssat | 14 | with $option = 0 or 1 |
15 | |||
16 | and $module_address the address of the module |
||
13457 | obado | 17 | from the directory `wims/public_html/modules` |
18 | |||
16240 | reyssat | 19 | This module address can be either one module (`E1/number/oefnumber.fr`), |
20 | or a category of modules (`E1/number`), or a comma-separated list of zones (`U1,E5,Lang,devel`), |
||
21 | or empty : in this case all "level"-zones (E1..U4) and Lang are treated. |
||
22 | |||
13457 | obado | 23 | **The results are in the directory "result".** |
24 | |||
25 | ## Samples |
||
26 | |||
16240 | reyssat | 27 | Check (first page of) all exercices from the module `U1/analysis/oefderint.fr` without cleaning : |
13457 | obado | 28 | |
16240 | reyssat | 29 | ./checkhtmlwims 0 U1/analysis/oefderint.fr |
13457 | obado | 30 | |
16240 | reyssat | 31 | Check all exercises of all modules in U1/analysis and then clean to erase uninteresting errors : |
13457 | obado | 32 | |
16240 | reyssat | 33 | ./checkhtmlwims 1 U1/analysis |
11189 | bpr | 34 | |
16240 | reyssat | 35 | Check all modules of the zones E5,devel and Lang and clean results : |
14399 | bpr | 36 | |
16240 | reyssat | 37 | ./checkhtmlwims 1 E5,devel,Lang |
18596 | bpr | 38 | |
16240 | reyssat | 39 | Check all "level"-zones (E1..U4) and Lang, without cleaning : |
40 | |||
41 | ./checkhtmlwims 0 |
||
42 | |||
43 | |||
18596 | bpr | 44 | For glossary (the result is in the file "tmp/html.log") |
45 | |||
14399 | bpr | 46 | ./checkhtmlglossary 1 |