This article does not describe the use of Sphinx, but simply outlines the steps to generate a. chm file under Windows.
0. First check if the machine has HTML help Workshop software installed, the general installation path should be C:\Program Files (x86) \html help Workshop\hhw.exe
If not installed, download the installation package Htmlhelp.exe double-click Install, address is https://msdn.microsoft.com/en-us/library/ms669985
1. When compiling the output file, use the command: Make HTMLHelp
This will be in the. In the \build\htmlhelp directory, generate the HTML Help project file. hhp file, right-click the file, select Default Open with C:\Program files (x86) \html
Click Compile below,
The. chm file can be generated when the compilation is complete.
2. Click on the Help menu button on the Python development to open the. chm file method
Import subprocesssubprocess. Popen ([R'C:\Windows\hh.exe', R'absolute/path/to/.chm' ])
Finish.
Sphinx generating Windows Help files (. chm files)