Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

doc: add rule to build Qt help collection (.qch) file

Changeset ed7334e3cccc

Parent 3b523ba76659

by Yuya Nishihara

Changes to 2 files · Browse files at ed7334e3cccc Showing diff from parent 3b523ba76659 Diff from another changeset...

Change 1 of 3 Show Entire File doc/​Build.bat Stacked
 
4
5
6
 
 
 
7
8
9
 
28
29
30
 
31
32
33
 
78
79
80
 
 
 
 
 
 
 
 
81
82
83
 
4
5
6
7
8
9
10
11
12
 
31
32
33
34
35
36
37
 
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@@ -4,6 +4,9 @@
 if not exist %hhc_compiler%. (   set hhc_compiler=hhc.exe  ) +if not exist %qcollectiongenerator%. ( + set qcollectiongenerator=qcollectiongenerator.exe +)  set PDFLATEX=PdfLatex  set SPHINXBUILD=sphinx-build  set OUTPUTDIRSUFFIX= @@ -28,6 +31,7 @@
  echo. htmlhelp to make HTML files and a HTML help project   echo. chm to make CHM file   echo. qthelp to make HTML files and a qthelp project + echo. qhc to make QHC file   echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter   echo. pdf to make PDF file, you can set PAPER=a4 or PAPER=letter   echo. @@ -78,6 +82,14 @@
  goto end  )   +if "%1" == "qhc" ( + %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %OUTPUTDIR%/qthelp + %qcollectiongenerator% %OUTPUTDIR%/qthelp/TortoiseHg.qhcp + echo. + echo.Build finished. The QHC file is in %OUTPUTDIR%/qthelp. + goto end +) +  if "%1" == "latex" (   %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %OUTPUTDIR%/latex   echo.
Change 1 of 3 Show Entire File doc/​Makefile Stacked
 
6
7
8
 
 
9
10
11
12
13
14
 
15
16
17
 
20
21
22
 
23
24
25
 
67
68
69
 
 
 
 
 
70
71
72
 
6
7
8
9
10
11
12
13
14
15
 
16
17
18
19
 
22
23
24
25
26
27
28
 
70
71
72
73
74
75
76
77
78
79
80
@@ -6,12 +6,14 @@
 SPHINXBUILD = sphinx-build  PAPER =   +QCOLLECTIONGENERATOR = qcollectiongenerator +  # Internal variables.  PAPEROPT_a4 = -D latex_paper_size=a4  PAPEROPT_letter = -D latex_paper_size=letter  ALLSPHINXOPTS = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source   -.PHONY: help clean html web pickle htmlhelp qthelp latex changes linkcheck +.PHONY: help clean html web pickle htmlhelp qthelp qhc latex changes linkcheck    help:   @echo "Please use \`make <target>' where <target> is one of" @@ -20,6 +22,7 @@
  @echo " json to make JSON files"   @echo " htmlhelp to make HTML files and a HTML help project"   @echo " qthelp to make HTML files and a qthelp project" + @echo " qhc to make QHC file"   @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"   @echo " changes to make an overview over all changed/added/deprecated items"   @echo " linkcheck to check all external links for integrity" @@ -67,6 +70,11 @@
  @echo "To view the help file:"   @echo "# assistant -collectionFile build/qthelp/foo.qhc"   +qhc: qthelp + $(QCOLLECTIONGENERATOR) build/qthelp/TortoiseHg.qhcp + @echo "Build finished. To view the help file:" + @echo "# assistant -collectionFile build/qthelp/TortoiseHg.qhc" +  latex:   mkdir -p build/latex build/doctrees   $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex