Files
jekyll/script/profile-docs
Ashwin Maroli 51d1366902 Add a script to profile docs with CI (#7540)
Merge pull request 7540
2019-02-20 03:19:34 -05:00

11 lines
369 B
Bash
Executable File

#!/usr/bin/env bash
#
# Build Jekyll's Documentation site in 'debug' mode and outputs the site's profile stats.
# Helps detecting *hard* breaking-changes (`jekyll build` aborts) and optimizations
# in the `build` process.
#
# Usage: bash script/profile-docs
SOURCE_DIR=$PWD/docs
bundle exec jekyll build -s $SOURCE_DIR -d $SOURCE_DIR/_site --profile --trace --verbose