Skip to content

Commit e836d7e

Browse files
committed
Removed CHM from doc, added to package
1 parent f7e6a0a commit e836d7e

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

doc/index.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
.. automodule:: qwt
22

3-
.. only:: html and not htmlhelp
4-
5-
.. note::
6-
7-
Windows users may download the :download:`CHM Manual <_downloads/PythonQwt.chm.zip>`.
8-
9-
After downloading this file, you may see blank pages in the documentation.
10-
That's because Windows is blocking CHM files for security reasons.
11-
Fixing this problem is easy:
12-
13-
* Right-click the CHM file, select properties, then click “Unblock”.
14-
* Or compress the CHM file into a zip archive and decompress it in
15-
another directory.
16-
* Do not open the CHM file on a network drive.
17-
183
Contents:
194

205
.. toctree::

scripts/build_doc.bat

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ REM (see LICENSE file for more details)
88
REM ======================================================
99
call %~dp0utils GetScriptPath SCRIPTPATH
1010
call %FUNC% GetLibName LIBNAME
11+
call %FUNC% GetModName MODNAME
1112
call %FUNC% SetPythonPath
1213
call %FUNC% UseWinPython
1314
set PATH=C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip;C:\Program Files\HTML Help Workshop;C:\Program Files (x86)\HTML Help Workshop;%PATH%
1415
cd %SCRIPTPATH%\..\
1516
if exist build\doc ( rmdir /s /q build\doc )
1617
sphinx-build -b htmlhelp doc build\doc
1718
hhc build\doc\%LIBNAME%.hhp
18-
copy /y build\doc\%LIBNAME%.chm doc\_downloads
19-
7z a doc\_downloads\%LIBNAME%.chm.zip doc\_downloads\%LIBNAME%.chm
20-
move /y doc\%LIBNAME%.chm .
19+
copy build\doc\*.chm %MODNAME%
2120
sphinx-build -b html doc build\doc
2221
call %FUNC% EndOfScript

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def get_subpackages(name):
106106
long_description=LONG_DESCRIPTION,
107107
packages=get_subpackages(PACKAGE_NAME),
108108
package_data={
109-
PACKAGE_NAME: get_package_data(PACKAGE_NAME, (".png", ".svg", ".mo"))
109+
PACKAGE_NAME: get_package_data(PACKAGE_NAME, (".png", ".svg", ".mo", ".chm"))
110110
},
111111
install_requires=["NumPy>=1.5", "QtPy>=1.3"],
112112
extras_require={

0 commit comments

Comments
 (0)