-
Notifications
You must be signed in to change notification settings - Fork 2
/
mkdocs.sh
25 lines (13 loc) · 1.14 KB
/
mkdocs.sh
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
#!/bin/bash
echo "Renaming introduceParameterObject"
mv intellij-community/java/java-impl/src/com/intellij/refactoring/introduceparameterobject intellij-community/java/java-impl/src/com/intellij/refactoring/introduceParameterObject
echo "Finding packages (excluding test packages)"
PACKAGES=`find intellij-community -name *.java | grep -v "test" | grep -v "\.idea" | xargs -n 1 -I '{}' grep -E "^package.*;$" '{}' | sed -Ee "s/^package ([^;]*);$/\1/g" | sort | uniq | paste -s -d ":" - 2>/dev/null`
echo "Finding source paths"
SRCPATH=`find intellij-community -name src -o -name source | grep -v "test" | grep -v "\.idea" | paste -s -d ":" - 2>/dev/null`
echo "Cleaning docs"
rm -rf docs &>/dev/null
echo "Generating JavaDoc"
javadoc -Xold -J-Xmx2G -d docs -doctitle '<h1>Unofficial IntelliJ Community Edition API documentation</h1>' -windowtitle 'Unofficial IntelliJ Community Edition API docs' -footer '<p>This is <b>unofficial</b> documentation and <b>not affiliated with Jetbrains s.r.o.</b> at all. We can <b>not guarantee the correctness</b> of this documentation.</p>' -sourcepath ${SRCPATH} -subpackages ${PACKAGES}
# ignore javadoc errors
exit 0