-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmakedoc.g
72 lines (66 loc) · 2.16 KB
/
makedoc.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
64
65
66
67
68
69
70
71
72
# BacktrackKit: An extensible, easy to understand backtracking framework
# A GAP package by Christopher Jefferson and Wilf A. Wilson.
#
# License info:
#
# This file is a script which compiles the package manual.
if LoadPackage("AutoDoc", "2019.09.04") = fail then
ErrorNoReturn("AutoDoc version 2019.09.04 or newer is required to compile ",
"the manual.");
fi;
_btkitinfo := PackageInfo("backtrackkit")[1];
_strip := function(str)
str := ReplacedString(str, ">=", "");
str := ReplacedString(str, " ", "");
return str;
end;
_autodoc := rec(
autodoc := rec(
files := [
"doc/intro.autodoc",
"gap/BacktrackKit.gd",
"gap/constraint.gd",
"gap/refiner.gd",
"gap/partitionstack.gd",
"gap/tracer.gd",
"gap/canonical.gd",
"examples/partitionstack.autodoc",
"examples/refiner.autodoc",
],
scan_dirs := [
],
),
extract_examples := rec(
skip_empty_in_numbering := false,
),
gapdoc := rec(
gap_root_relative_path := true,
),
scaffold := rec(
appendix := [
],
includes := [
],
entities := rec(
BTKitWWW := _btkitinfo.PackageWWWHome,
BTKitIssues := _btkitinfo.IssueTrackerURL,
BTKitVersion := _strip(_btkitinfo.Version),
GAPVersion := _strip(_btkitinfo.Dependencies.GAP),
BTKitYear := _btkitinfo.Date{[7..10]},
),
bib := "btkit.bib",
index := true,
MainPage := true,
),
);
_entities := _autodoc.scaffold.entities;
for _dep in Concatenation(_btkitinfo.Dependencies.NeededOtherPackages,
_btkitinfo.Dependencies.SuggestedOtherPackages) do
# &PackageName; -> <Package>PackageName</Package>
_entities.(_dep[1]) := StringFormatted("<Package>{}</Package>", _dep[1]);
# &PackageNameVersion; -> X.Y.Z
_name := Concatenation(_dep[1], "Version");
_entities.(_name) := _strip(_dep[2]);
od;
AutoDoc(_autodoc);
QUIT;