Skip to content

Commit 69354ae

Browse files
committed
Makefile: Add support for building CSS-less Qt help files
1 parent af17f3e commit 69354ae

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,21 @@ output/cppreference-doc-en-cpp.devhelp2: \
172172
#build the .qch (QT help) file
173173
output/cppreference-doc-en-cpp.qch: output/qch-help-project-cpp.xml
174174
#qhelpgenerator only works if the project file is in the same directory as the documentation
175-
cp "output/qch-help-project-cpp.xml" "output/reference/qch.xml"
175+
cp "output/qch-help-project-cpp.xml" "output/reference_cssless/qch.xml"
176176

177-
pushd "output/reference" > /dev/null; \
177+
pushd "output/reference_cssless" > /dev/null; \
178178
$(qhelpgenerator) "qch.xml" -o "../cppreference-doc-en-cpp.qch"; \
179179
popd > /dev/null
180180

181-
rm -f "output/reference/qch.xml"
181+
rm -f "output/reference_cssless/qch.xml"
182182

183-
output/qch-help-project-cpp.xml: output/cppreference-doc-en-cpp.devhelp2
183+
output/qch-help-project-cpp.xml: \
184+
output/cppreference-doc-en-cpp.devhelp2 \
185+
output/reference_cssless
184186
#build the file list
185187
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><files>" > "output/qch-files.xml"
186188

187-
pushd "output/reference" > /dev/null; \
189+
pushd "output/reference_cssless" > /dev/null; \
188190
find . -type f -not -iname "*.ttf" \
189191
-exec echo "<file>"'{}'"</file>" \; | LC_ALL=C sort >> "../qch-files.xml" ; \
190192
popd > /dev/null
@@ -218,6 +220,10 @@ output/reference:
218220
mkdir -p output
219221
./preprocess.py --src reference --dst output/reference
220222

223+
output/reference_cssless: output/reference
224+
cp -a output/reference output/reference_cssless
225+
./preprocess_qch.py --src output/reference --dst output/reference_cssless
226+
221227
# create indexes for the wiki
222228
indexes:
223229
mkdir -p output/indexes

preprocess_qch.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)