Copy introduction.html over index.html for chm builds

This commit is contained in:
baldurk
2016-05-16 19:36:38 +02:00
parent 8bc80b41b0
commit e8f76b35c0
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -88,6 +88,8 @@ htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
# Copy handwritten index file to output, overwriting auto-generated one
@cp renderdoc.hhk $(BUILDDIR)/htmlhelp
# Copy introduction page over index.html
@cp $(BUILDDIR)/htmlhelp/introduction.html $(BUILDDIR)/htmlhelp/index.html
# Filter out the auto-generated TOC to remove anchor links and root index.html
@cat $(BUILDDIR)/htmlhelp/renderdoc.hhc | python remove_lines.py ".html#" | python remove_lines.py "\"index.html\"" > $(BUILDDIR)/htmlhelp/tmp
@mv $(BUILDDIR)/htmlhelp/tmp $(BUILDDIR)/htmlhelp/renderdoc.hhc
+2
View File
@@ -119,6 +119,8 @@ if "%1" == "htmlhelp" (
if errorlevel 1 exit /b 1
REM Copy handwritten index file to output, overwriting auto-generated one
copy renderdoc.hhk %BUILDDIR%\htmlhelp\
REM Copy introduction page over index.html
copy %BUILDDIR%\htmlhelp\introduction.html %BUILDDIR%\htmlhelp\index.html
REM Filter out the auto-generated TOC to remove anchor links and root index.html
type %BUILDDIR%\htmlhelp\renderdoc.hhc | python remove_lines.py ".html#" | python remove_lines.py "\"index.html\"" > %BUILDDIR%\htmlhelp\tmp
move %BUILDDIR%\htmlhelp\tmp %BUILDDIR%\htmlhelp\renderdoc.hhc
+2
View File
@@ -106,6 +106,8 @@ if [ $1 == "htmlhelp" ]; then
if [ $? != 0 ]; then exit 1; fi
# Copy handwritten index file to output, overwriting auto-generated one
cp renderdoc.hhk $BUILDDIR/htmlhelp
# Copy introduction page over index.html
cp $BUILDDIR/htmlhelp/introduction.html $BUILDDIR/htmlhelp/index.html
# Filter out the auto-generated TOC to remove anchor links and root index.html
cat $BUILDDIR/htmlhelp/renderdoc.hhc | python remove_lines.py ".html#" | python remove_lines.py "\"index.html\"" > $BUILDDIR/htmlhelp/tmp
mv $BUILDDIR/htmlhelp/tmp $BUILDDIR/htmlhelp/renderdoc.hhc