Skip to content

Commit 99b5207

Browse files
committed
refactor: move scripts back in since they are used in CI
1 parent d78f2be commit 99b5207

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

scaladoc/scripts/linkstovisit.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
./self/api/dotty.tools.scaladoc/tasty/comments/wiki/-converter/index.html,on any page try minimizing window to see if relative styles are applied correctly
2+
./self/api/dotty.tools.scaladoc/-base-key/index.html,is searchbar correct width
3+
./self/api/dotty.tools.scaladoc/as-map.html,are logos in good propotions
4+
./self/api/dotty.tools.scaladoc/model/api/as-signature.html,is sidebar not collapsing/overlaying
5+
./self/api/dotty.tools.scaladoc/-documentable-element/index.html,are overrides pointing to correct function? is filtering working
6+
./self/api/dotty.tools.scaladoc/model/api/-member/index.html,is source link pointing to correct element (object Member)?
7+
./self/api/dotty.tools.scaladoc/-scala-content-node/index.html,you can see is graph properly rendered; can you navigate by nodes up and down the hierarchy
8+
./self/api/index/index.html,package overview
9+
./self/api/dotty.tools.scaladoc/index.html,example package
10+
./self/api/dotty.tools.scaladoc/-documentable-element/index.html,example classlike
11+
./self/api/dotty.tools.scaladoc/get-from-extra.html,example package level method
12+
./self/api/dotty.tools.scaladoc/put.html,example extension
13+
./self/api/dotty.tools.scaladoc/-dot-diagram-builder/build.html,example method

scaladoc/scripts/mk-index.sh

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#!/usr/bin/env bash
2+
3+
# NOTE that this file is used in CI
4+
5+
MYDIR="$(dirname "$(readlink -f "$0")")"
6+
7+
8+
function html-beginning {
9+
cat << EOF
10+
<html>
11+
<body>
12+
EOF
13+
}
14+
15+
function html-ending {
16+
cat << EOF
17+
</body>
18+
</html>
19+
EOF
20+
}
21+
22+
function print-beginning {
23+
cat << EOF
24+
<p> $1 </p>
25+
<ul>
26+
EOF
27+
}
28+
29+
function print-list-element {
30+
cat << EOF
31+
<li> <a href="$1">$2</a> </li>
32+
EOF
33+
}
34+
35+
function print-list-element-text {
36+
cat << EOF
37+
<li> $1 </li>
38+
EOF
39+
}
40+
41+
function print-ending {
42+
cat << 'EOF'
43+
</ul>
44+
EOF
45+
}
46+
47+
cd "$1" || exit
48+
49+
50+
html-beginning
51+
print-beginning "Available project:"
52+
for f in *
53+
do
54+
! [[ -d $f ]] && continue
55+
# assuming that there's only one "root" index file
56+
# if there's a static site, it's at depth 1
57+
# otherwise at depth 2
58+
INDEX=$(find "$f" -maxdepth 1 -name 'index.html')
59+
if [[ -z $INDEX ]]
60+
then
61+
INDEX=$(find "$f" -maxdepth 2 -name 'index.html')
62+
fi
63+
print-list-element "$INDEX" "$f"
64+
done
65+
print-ending
66+
67+
print-beginning "Links for manual testing:"
68+
while read line; do
69+
print-list-element-text "$line"
70+
done < "$MYDIR/tocheck.txt"
71+
72+
while read line; do
73+
IFS=',' read INDEX f <<< "${line}"
74+
print-list-element "$INDEX" "$f"
75+
done < "$MYDIR/linkstovisit.txt"
76+
print-ending
77+
html-ending

scaladoc/scripts/tocheck.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)