@@ -7,7 +7,6 @@ SPHINXBUILD = sphinx-build
7
7
PAPER =
8
8
BUILDDIR = _build
9
9
REPORTDIR = _reports
10
-
11
10
# Internal variables.
12
11
PAPEROPT_a4 = -D latex_paper_size=a4
13
12
PAPEROPT_letter = -D latex_paper_size=letter
29
28
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
30
29
31
30
clean :
32
- -rm -rf $(BUILDDIR ) /*
31
+ -rm -rf $(BUILDDIR ) /* $( REPORTDIR )
33
32
34
33
html :
35
34
$(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
@@ -62,12 +61,27 @@ qthelp:
62
61
@echo
63
62
@echo " Build finished; now you can run " qcollectiongenerator" with the" \
64
63
" .qhcp project file in $( BUILDDIR) /qthelp, like this:"
65
- @echo " # qcollectiongenerator $( BUILDDIR) /qthelp/UrbanThematicExploitationPlatform .qhcp"
64
+ @echo " # qcollectiongenerator $( BUILDDIR) /qthelp/E-CEODataChallengesplatform .qhcp"
66
65
@echo " To view the help file:"
67
- @echo " # assistant -collectionFile $( BUILDDIR) /qthelp/UrbanThematicExploitationPlatform .qhc"
66
+ @echo " # assistant -collectionFile $( BUILDDIR) /qthelp/E-CEODataChallengesplatform .qhc"
68
67
69
68
latex :
70
69
$(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
70
+ sed -i.bak ' s/{\\hyperref\[\(.*\:req-[0-9]*\)\]{.*}}/{\\autoref{\1}}/g' $(BUILDDIR ) /latex/* .tex
71
+ sed -i.bak ' s/\\begin{longtable}{|l|l|l|}/\\begin{longtable}{|l|l|p{10cm}|}/g' $(BUILDDIR ) /latex/* .tex
72
+ cp source/_templates/* .sty $(BUILDDIR ) /latex
73
+ cp source/_static/* $(BUILDDIR ) /latex
74
+ @echo
75
+ @echo " Build finished; the LaTeX files are in $( BUILDDIR) /latex."
76
+ @echo " Run \` make all-pdf' or \` make all-ps' in that directory to" \
77
+ " run these through (pdf)latex."
78
+
79
+ latex-mac :
80
+ $(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
81
+ sed -i .bak ' s/{\\hyperref\[\(.*\:req-[0-9]*\)\]{.*}}/{\\autoref{\1}}/g' $(BUILDDIR ) /latex/* .tex
82
+ sed -i .bak ' s/$\\begin{longtable}{|l|l|l|}/\begin{longtable}{|l|l|p{10cm}|}/g' $(BUILDDIR ) /latex/* .tex
83
+ cp source/_templates/* .sty $(BUILDDIR ) /latex
84
+ cp source/_static/* $(BUILDDIR ) /latex
71
85
@echo
72
86
@echo " Build finished; the LaTeX files are in $( BUILDDIR) /latex."
73
87
@echo " Run \` make all-pdf' or \` make all-ps' in that directory to" \
@@ -88,3 +102,17 @@ doctest:
88
102
$(SPHINXBUILD ) -b doctest $(ALLSPHINXOPTS ) $(BUILDDIR ) /doctest
89
103
@echo " Testing of doctests in the sources finished, look at the " \
90
104
" results in $( BUILDDIR) /doctest/output.txt."
105
+
106
+ man :
107
+ $(SPHINXBUILD ) -b man $(ALLSPHINXOPTS ) $(BUILDDIR ) /man
108
+ @echo
109
+ @echo " Build finished. The manual pages are in $( BUILDDIR) /man."
110
+
111
+ test :
112
+ mkdir $(REPORTDIR )
113
+ ` which py.test` --tb=line -v --junitxml=$(REPORTDIR ) /junit.xml check_sphinx.py
114
+
115
+ pdf :
116
+ $(SPHINXBUILD ) -b pdf $(ALLSPHINXOPTS ) $(BUILDDIR ) /pdf
117
+ @echo
118
+ @echo " Build finished. The PDF files are in $( BUILDDIR) /pdf."
0 commit comments