-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmakedocrel.g
65 lines (52 loc) · 2.28 KB
/
makedocrel.g
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#############################################################################
##
#A makedocrel.g GAPDoc Frank Lübeck
##
##
## Rebuild the whole documentation, provided sufficiently good (pdf)LaTeX
## is available. This version produces relative paths to external
## documents, which is ok for the package in standard location.
##
#SetInfoLevel(InfoGAPDoc,4);
#SetGapDocLaTeXOptions("pdf","color", "latin1");
if IsBound(pathtoroot) then
relpath := pathtoroot;
else
relpath:="../../..";
fi;
# main
Print("\n========== converting main documentation for GAPDoc ==============\n");
maintree := MakeGAPDocDoc("doc", "gapdoc", ["../lib/BibTeX.gi",
"../lib/BibTeX.gd", "../lib/BibXMLextTools.gi", "../lib/UnicodeTools.gi",
"../lib/ComposeXML.gi", "../lib/GAPDoc2HTML.gi", "../lib/GAPDoc.gd",
"../lib/GAPDoc.gi", "../lib/GAPDoc2LaTeX.gi", "../lib/GAPDoc2Text.gi",
"../lib/PrintUtil.gi", "../lib/Text.gi", "../lib/XMLParser.gi",
"../lib/Examples.gi", "../lib/TextThemes.g", "../lib/HelpBookHandler.g",
"../lib/XMLParser.gd", "../lib/Make.g" ], "GAPDoc", relpath, "MathJax");
# check validity
ValidateGAPDoc([maintree.input, maintree.inputorigins]);
CopyHTMLStyleFiles("doc");
# now load it (for cross reference in example)
Print("\n========== converting example document for GAPDoc ================\n");
HELP_ADD_BOOK("GAPDoc", "Package for Preparing GAP Documentation",
DirectoriesPackageLibrary("gapdoc","doc")[1]);
# example
exampletree :=
MakeGAPDocDoc("example", "example", [], "GAPDocExample", relpath,
"MathJax");
# check validity
ValidateGAPDoc([exampletree.input, exampletree.inputorigins]);
CopyHTMLStyleFiles("example");
# from first chapter
Print("\n========== converting small example from introduction ============\n");
3kp1tree := MakeGAPDocDoc("3k+1", "3k+1", [], "ThreeKPlusOne", relpath,
"MathJax");
# check validity
ValidateGAPDoc([3kp1tree.input, 3kp1tree.inputorigins]);
CopyHTMLStyleFiles("3k+1");
# .lab files for references from main manual
#GAPDocManualLab("GAPDoc");
# This alternative also works if this directory is not that of the
# currently loaded GAPDoc version:
GAPDocManualLabFromSixFile("GAPDoc", "doc/manual.six");
GAPDocManualLabFromSixFile("GAPDoc", "example/manual.six");