Skip to content

Commit c711ff5

Browse files
committed
Minor cleanup
1 parent c92533b commit c711ff5

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

sql/create-docs.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,33 @@
1717
# limitations under the License.
1818
#
1919

20-
# Script to create SQL API docs. This requires `mkdocs`.
21-
# Also, it needs to build Spark first.
22-
23-
# After running this script the html docs can be found in
24-
# $SPARK_HOME/sql/docs/site
20+
# Script to create SQL API docs. This requires `mkdocs` and to build
21+
# Spark first. After running this script the html docs can be found in
22+
# $SPARK_HOME/sql/site
2523

2624
set -o pipefail
2725
set -e
2826

2927
FWDIR="$(cd "`dirname "${BASH_SOURCE[0]}"`"; pwd)"
3028
SPARK_HOME="$(cd "`dirname "${BASH_SOURCE[0]}"`"/..; pwd)"
31-
WAREHOUSE_DIR="$FWDIR/_spark-warehouse"
3229

3330
if ! hash python 2>/dev/null; then
34-
echo "Missing python in the path, skipping SQL documentation generation."
31+
echo "Missing python in your path, skipping SQL documentation generation."
3532
exit 0
3633
fi
3734

3835
if ! hash mkdocs 2>/dev/null; then
39-
echo "Missing mkdocs in the path, skipping SQL documentation generation."
36+
echo "Missing mkdocs in your path, skipping SQL documentation generation."
4037
exit 0
4138
fi
4239

43-
# Now create markdown file
40+
# Now create the markdown file
4441
rm -fr docs
4542
mkdir docs
4643
echo "Generating markdown files for SQL documentation."
4744
"$SPARK_HOME/bin/spark-submit" gen-sql-markdown.py
4845

49-
# Now create HTML files
46+
# Now create the HTML files
5047
echo "Generating HTML files for SQL documentation."
5148
mkdocs build --clean
5249
rm -fr docs

0 commit comments

Comments
 (0)