Skip to content

Commit 6ae42a4

Browse files
committed
chore: rocqnavi: 💄 📝 🔧 Fix a problem of links of the dependency graph on index.html by Rocqnavi
1 parent 774ce9c commit 6ae42a4

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

etc/builddoc_dependency_dot.pl

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,31 @@
1111
while (<>) {
1212
if (m/([^\s]*)\.vo.*:(.*)/) {
1313
$dests = $2 ;
14-
($path,$src) = ($1 =~ s/\//\//rg =~ m/^(?:(.*\/))?([^.]*)$/);
15-
if ($path =~ m/classical\//) {
16-
$url="mathcomp.classical.$src.html";
17-
print "subgraph cluster_classical { \"$path$src\"[label=\"$src\",URL=\"$url\",fillcolor=1]}\n";
18-
}elsif ($path =~ m/reals\// or $path =~ m/reals_stdlib\//) {
19-
print "subgraph cluster_reals { \"$path$src\"[label=\"$src\",fillcolor=2,fontcolor=white]}"
20-
}elsif ($path =~ m/experimental_reals\//) {
21-
print "subgraph cluster_experimental_reals { \"$path$src\"[label=\"$src\",fillcolor=3]}"
22-
}elsif ($path =~ m/theories\/topology_theory\//) {
23-
print "subgraph cluster_topology { \"$path$src\"[label=\"$src\",fillcolor=4,fontcolor=white]}"
24-
}elsif ($path =~ m/theories\/normedtype_theory\//) {
25-
print "subgraph cluster_normedtype { \"$path$src\"[label=\"$src\",fillcolor=9]}"
26-
}elsif ($path =~ m/theories\/lebesgue_integral_theory\//) {
27-
print "subgraph cluster_lebesgue_integral { \"$path$src\"[label=\"$src\",fillcolor=10,fontcolor=white]}"
28-
}elsif ($path =~ m/theories\//) {
29-
print "subgraph cluster_analysis { \"$path$src\"[label=\"$src\",fillcolor=5]}"
30-
}elsif ($path =~ m/analysis_stdlib\/.*/) {
31-
print "subgraph cluster_analysis { \"$path$src\"[label=\"$src\",fillcolor=5]}"
14+
($path,$src) = ($1 =~ s/\//\//rg =~ m/^(?:(.*)\/)?([^.]*)$/);
15+
$url="mathcomp.$path.$src.html";
16+
if ($path =~ m/classical/) {
17+
print "subgraph cluster_classical { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=1]}\n";
18+
}elsif ($path =~ m/reals/ or $path =~ m/reals_stdlib/) {
19+
print "subgraph cluster_reals { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=2,fontcolor=white]}";
20+
}elsif ($path =~ m/theories\/topology_theory/) {
21+
$url="mathcomp.analysis.topology_theory.$src.html";
22+
print "subgraph cluster_topology { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=4,fontcolor=white]}";
23+
}elsif ($path =~ m/theories\/normedtype_theory/) {
24+
$url="mathcomp.analysis.normedtype_theory.$src.html";
25+
print "subgraph cluster_normedtype { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=9]}";
26+
}elsif ($path =~ m/theories\/lebesgue_integral_theory/) {
27+
$url="mathcomp.analysis.lebesgue_integral_theory.$src.html";
28+
print "subgraph cluster_lebesgue_integral { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=10,fontcolor=white]}";
29+
}elsif ($path =~ m/theories/) {
30+
$url="mathcomp.analysis.$src.html";
31+
print "subgraph cluster_analysis { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=5]}";
32+
}elsif ($path =~ m/analysis_stdlib/) {
33+
print "subgraph cluster_analysis { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=5]}";
3234
}else {
33-
$url="/mathcomp.$src.html";
34-
print "\"$path$src\"[label=\"$src\",URL=\"$url\",fillcolor=6,fontcolor=white]"
35+
print "\"$path\/$src\"[label=\"$path=$src\",fillcolor=6,fontcolor=white]";
3536
}
3637
for my $dest (split(" ", $dests)) {
37-
print " \"$1\" -> \"$path$src\";\n" if ($dest =~ m/(.*)\.vo/);
38+
print " \"$1\" -> \"$path\/$src\";\n" if ($dest =~ m/(.*)\.vo/);
3839
}
3940
}
4041
}

0 commit comments

Comments
 (0)