File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 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
2624set -o pipefail
2725set -e
2826
2927FWDIR=" $( cd " ` dirname " ${BASH_SOURCE[0]} " ` " ; pwd) "
3028SPARK_HOME=" $( cd " ` dirname " ${BASH_SOURCE[0]} " ` " /..; pwd) "
31- WAREHOUSE_DIR=" $FWDIR /_spark-warehouse"
3229
3330if ! 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
3633fi
3734
3835if ! 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
4138fi
4239
43- # Now create markdown file
40+ # Now create the markdown file
4441rm -fr docs
4542mkdir docs
4643echo " 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
5047echo " Generating HTML files for SQL documentation."
5148mkdocs build --clean
5249rm -fr docs
You can’t perform that action at this time.
0 commit comments