-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmakedoc.g
44 lines (40 loc) · 2.27 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
LoadPackage("AutoDoc");
make_qpa_version_string := function()
local fstr, str;
str := "";
fstr := Concatenation( "This manual documents the GAP package QPA, ",
"version 2.0-dev, revision <URL>",
"<Link>https://github.com/oysteins/QPA2/commit/%H</Link>",
"<LinkText>%h</LinkText>",
"</URL>, %ci." );
Process( DirectoryCurrent(),
Filename( DirectoriesSystemPrograms(), "git" ),
InputTextNone(),
OutputTextString( str, false ),
[ "show", "-s", Concatenation( "--format=format:", fstr ), "HEAD" ] );
return str;
end;
latex_preamble := "\\usepackage{amsmath}\n";
AutoDoc( "QPA" :
autodoc := rec( section_intros := [ [ "Quivers", "" ],
[ "Quiver algebras", "" ],
[ "Modules", "" ],
[ "Representations", "" ],
[ "Ideals", "" ],
[ "Vector spaces", "" ],
[ "Hom spaces", "Field categories", "" ],
[ "Hom spaces", "Hom spaces", "" ],
[ "Hom spaces", "Hom spaces of vector spaces", "" ],
[ "Hom spaces", "Hom spaces of representations", "" ],
[ "Hom spaces", "Hom spaces of modules", "" ],
[ "Hom spaces", "Morphisms of hom spaces", "" ],
[ "Hom spaces", "Hom modules", "" ],
[ "Hom spaces", "Hom functors", "" ],
[ "Functors", "" ],
[ "Special quivers, algebras and modules", "" ],
] ),
scaffold := rec( TitlePage := rec( TitleComment := make_qpa_version_string() ),
gapdoc_latex_options := rec( LateExtraPreamble := latex_preamble ) ),
maketest := rec( commands := [ "LoadPackage( \"QPA\" );" ] )
);
QUIT;