summaryrefslogtreecommitdiff
path: root/doc/docfx/gendoc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doc/docfx/gendoc.sh')
-rwxr-xr-xdoc/docfx/gendoc.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/docfx/gendoc.sh b/doc/docfx/gendoc.sh
index 99da2d9f18..48d781cd81 100755
--- a/doc/docfx/gendoc.sh
+++ b/doc/docfx/gendoc.sh
@@ -22,5 +22,19 @@ for f in `ls api/*.yml`; do
22 sed -e 's/\(<xref href=\\"[^\\]*\)\\"/\1?displayProperty=fullName\\"/g' -i $f 22 sed -e 's/\(<xref href=\\"[^\\]*\)\\"/\1?displayProperty=fullName\\"/g' -i $f
23done; 23done;
24 24
25# Add missing references to derived classes, so they can be rendered with
26# their full name.
27# https://github.com/dotnet/docfx/issues/3769#issuecomment-485616064
28for f in `grep -l derivedClasses api/*.yml`; do
29 sed "1,/^ derivedClasses:$/d" $f > /tmp/efl_docfx_gendoc
30 sed -i "/^ [^-]/,$ d" /tmp/efl_docfx_gendoc
31 sed -i "/^[^ ]/,$ d" /tmp/efl_docfx_gendoc
32 while read dash class
33 do
34 sed -i "s/^references:$/references:\n- uid: $class\n fullName: $class/g" $f
35 done <<< "$(cat /tmp/efl_docfx_gendoc)"
36done;
37rm -rf /tmp/efl_docfx_gendoc
38
25# DocFX Step 2: Generate HTML files 39# DocFX Step 2: Generate HTML files
26mono bin/docfx.exe build docfx.json && echo "Docs ready in the _site folder!" 40mono bin/docfx.exe build docfx.json && echo "Docs ready in the _site folder!"