cppreference.com html archive converter to microsoft help (for Windows Visual Studio 2012+) and good old .chm help (for any Windows and even some other platforms)
pacman -S p7zip mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-lxml
pacman -S mingw-w64-x86_64-iconv
)pip3 install premailer
and pacman -S mingw-w64-x86_64-python3-qt
for qch helpcompile_c.cmd and compile_cpp.cmd - main command files that do the all job. Use compile_c.cmd for c documentation and compile_cpp.cmd for c++ documentation.
compile_c_zip.ps1 and compile_cpp_zip.ps1 - uses powershell to make zip files.
config.txt - config for a great tool tidy: http://www.html-tidy.org/ ( we need it to convert htmls to xhtmls and fix errors ).
cppreference.msha and creference.msha - config files for Microsoft Help System. Actually a headers for Help system, Microsoft Help will get the info from them to install the help packs.
make_xhtmls.php - ugly php preprocessor script that fixes and converts thousands of htmls from cppreference to xhtml and Microsoft Help format.
make_chm.php - another ugly script that makes chm help files: cppreference.hhc - table of contents, cppreference.hhk - keywords index and Html Help project file - cppreference.hhp (for both c and c++). Launch this script directly to make chm help file.
makecab.exe - tool to make a cab file for Microsoft Help System. Can be found in Microsoft SDK.
signtool.exe - tool to sign cab files. Can be found in Microsoft SDK.
tidy.exe and tidy.dll - tool to convert html to xhtml and fix many other problems. Can be downloaded here: http://www.html-tidy.org/
Folders common and en is from archive from cppreference, all other folders is owned by script.
now you can start the scripts and build the documentation (200+ seconds for c++ documentation 4000 files and a lot less for c documentation).
In result you should have two new files in this folder: cppreference.cab and creference.cab - use them with appropriate cppreference.msha and creference.msha files to install created help files.
Note: This repo contains pre-build and signed files that are ready to install into Visual Studio 2012, Visual Studio 2013 (maybe 2015 and 2017 too - I can't test it right now - let me know if you'll do ).
Note: If you want to build chm help file, launch make_chm.php. Pre-built cppreference.chm file is also included into this repo.*
Note: HTML Help Workshop will not work correctly if you will not associate .hhp files with it (a project file of HHW), you'll receive a lot Errors "HHC5003"
Enjoy!
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。