mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Copy introduction.html over index.html for chm builds
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user