Skip to content

Commit f420692

Browse files
committed
preprocess: build qch book
patch: rebase on PeterFeicht/cppreference-doc@22acc79
1 parent f4ecdb4 commit f420692

File tree

3 files changed

+228
-58
lines changed

3 files changed

+228
-58
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ cppreference.com html archive converter to microsoft help (for Windows Visual St
1515
4) [HTML Help Workshop](https://www.microsoft.com/en-us/download/details.aspx?id=21138) from Microsoft to build .chm help file.
1616
5) [Tidy](http://www.html-tidy.org/) (html fixer), [signtool.exe](https://msdn.microsoft.com/en-us/library/8s9b9yaz(v=vs.110).aspx) and [makecab.exe](https://technet.microsoft.com/en-us/library/hh875545(v=ws.11).aspx) from Microsoft SDK to build Visual Studio help files.
1717
6) digital certificate to sign cabs for Visual Studio Help (because unsigned cabs will not be installed) CHM help does not require certificate
18-
7) msys2 latest
19-
8) 7-zip 16.04 or later
20-
9) GNU libiconv 1.15 or later
18+
7) msys2 latest with `pacman -S p7zip mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-lxml`
19+
8) GNU libiconv 1.15 or later (`pacman -S mingw-w64-x86_64-iconv`)
20+
9) `pip3 install premailer` and `pacman -S mingw-w64-x86_64-python3-qt` for qch help
2121

2222
## Ok, what's inside?
2323

preprocess-zh.sh

+6
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ rm -rf 'reference/zh.cppreference.com'
139139
# package processed files
140140
"${_7Z}" a -mx9 -myx9 "../html-book-${VERSION}.7z" ./reference
141141

142+
# build qch book
143+
mkdir -p output/reference
144+
cp -f reference output/reference
145+
make doc_qch
146+
"${_7Z}" a -mx9 -myx9 "../qch-book-${VERSION}.7z" ./output/*.qch
147+
142148
# move processed files to parent folder
143149
# for make_chm.sh
144150
mv -f reference/* ../

0 commit comments

Comments
 (0)