|
4 | 4 | cd ${0%/*} |
5 | 5 |
|
6 | 6 | rm -rf ./docs |
| 7 | +rm -rf ./docs-xml |
7 | 8 |
|
8 | 9 | ceramic clay setup web |
9 | 10 | ceramic clay hxml web > docs.hxml |
10 | 11 | $(ceramic haxe) docs.hxml --xml ../../../docs/clay-web.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
11 | 12 |
|
12 | | -ceramic clay setup web --variant use_tilemap |
13 | | -ceramic clay hxml web --variant use_tilemap > docs.hxml |
14 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/tilemap-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
15 | | - |
16 | | -ceramic clay setup web --variant use_ase |
17 | | -ceramic clay hxml web --variant use_ase > docs.hxml |
18 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/ase-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
19 | | - |
20 | | -ceramic clay setup web --variant use_ldtk |
21 | | -ceramic clay hxml web --variant use_ldtk > docs.hxml |
22 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/ldtk-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
23 | | - |
24 | | -ceramic clay setup web --variant use_ui |
25 | | -ceramic clay hxml web --variant use_ui > docs.hxml |
26 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/ui-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
27 | | - |
28 | | -ceramic clay setup web --variant use_sprite |
29 | | -ceramic clay hxml web --variant use_sprite > docs.hxml |
30 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/sprite-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
31 | | - |
32 | | -ceramic clay setup web --variant use_spine |
33 | | -ceramic clay hxml web --variant use_spine > docs.hxml |
34 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/spine-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
35 | | - |
36 | | -ceramic clay setup web --variant use_arcade |
37 | | -ceramic clay hxml web --variant use_arcade > docs.hxml |
38 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/arcade-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
39 | | - |
40 | | -ceramic clay setup web --variant use_nape |
41 | | -ceramic clay hxml web --variant use_nape > docs.hxml |
42 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/nape-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
43 | | - |
44 | | -ceramic clay setup web --variant use_imgui |
45 | | -ceramic clay hxml web --variant use_imgui > docs.hxml |
46 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/imgui-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
47 | | - |
48 | | -ceramic clay setup web --variant use_dialogs |
49 | | -ceramic clay hxml web --variant use_dialogs > docs.hxml |
50 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/dialogs-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
51 | | - |
52 | | -ceramic clay setup web --variant use_gif |
53 | | -ceramic clay hxml web --variant use_gif > docs.hxml |
54 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/gif-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
55 | | - |
56 | | -ceramic clay setup web --variant use_elements |
57 | | -ceramic clay hxml web --variant use_elements > docs.hxml |
58 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/elements-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
59 | | - |
60 | | -ceramic clay setup web --variant use_script |
61 | | -ceramic clay hxml web --variant use_script > docs.hxml |
62 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/script-plugin.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
63 | | - |
64 | 13 | if [ "$(uname)" == "Darwin" ]; then |
65 | 14 | ceramic clay setup mac |
66 | 15 | ceramic clay hxml mac > docs.hxml |
|
73 | 22 |
|
74 | 23 | ceramic headless setup node |
75 | 24 | ceramic headless hxml node > docs.hxml |
76 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/headless.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
| 25 | +$(ceramic haxe) docs.hxml --xml ../../../docs/headless.xml -D doc-gen -D documentation -D no_backend_docs -D dox_events --no-output -D no-compilation |
77 | 26 |
|
78 | 27 | ceramic unity setup unity |
79 | 28 | ceramic unity hxml unity > docs.hxml |
80 | | -$(ceramic haxe) docs.hxml --xml ../../../docs/unity.xml -D doc-gen -D documentation -D dox_events --no-output -D no-compilation |
81 | | - |
82 | | -$(ceramic haxelib) run dox -i ./docs --output-path docs --keep-field-order --exclude 'zpp_nape|microsoft|unityengine|fuzzaldrin|gif|timestamp|stb|sys|spec|sdl|polyline|poly2tri|opengl|openal|ogg|js|hsluv|hscript|glew|format|earcut|cs|cpp|com|assets|ceramic.scriptable|ceramic.macros' --title 'Ceramic API' |
83 | | - |
84 | | -node transform-docs.js |
| 29 | +$(ceramic haxe) docs.hxml --xml ../../../docs/unity.xml -D doc-gen -D documentation -D no_backend_docs -D dox_events --no-output -D no-compilation |
| 30 | + |
| 31 | +mkdir docs-xml |
| 32 | +cp -f docs/*.xml docs-xml |
| 33 | + |
| 34 | +# Build gen-docs tool |
| 35 | +cd gen-docs |
| 36 | +haxe build.hxml |
| 37 | +cd .. |
| 38 | + |
| 39 | +# Generate markdown documentation from XML files |
| 40 | +rm -rf ./docs-md |
| 41 | +mkdir -p docs-md |
| 42 | + |
| 43 | +# Generate markdown for each XML file |
| 44 | +for xml_file in docs-xml/*.xml; do |
| 45 | + base_name=$(basename "$xml_file" .xml) |
| 46 | + echo "Generating markdown for $base_name..." |
| 47 | + node gen-docs/bin/gen-docs.js markdown "$xml_file" "docs-md/$base_name" |
| 48 | + |
| 49 | + # Generate table of contents |
| 50 | + echo "Generating table of contents for $base_name..." |
| 51 | + node gen-docs/bin/gen-docs.js toc "$xml_file" "docs-md/$base_name/toc.json" |
| 52 | +done |
| 53 | + |
| 54 | +# Old dox command (commented out since we're using our own generator now) |
| 55 | +# $(ceramic haxelib) run dox -i ./docs --output-path docs --keep-field-order --exclude 'zpp_nape|microsoft|unityengine|fuzzaldrin|gif|timestamp|stb|sys|spec|sdl|polyline|poly2tri|opengl|openal|ogg|js|hsluv|hscript|glew|format|earcut|cs|cpp|com|assets|ceramic.scriptable|ceramic.macros' --title 'Ceramic API' |
| 56 | + |
| 57 | +# node transform-docs.js |
0 commit comments