diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2020-04-12 22:06:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 22:06:22 +0200 |
commit | 30645fa1ac6fa828bda390383abee7c04f20206f (patch) | |
tree | 10b599dab550e06c6d2d9ffb37dd1a3cf783922a /docs/build.sh | |
parent | ce50e8e52dc5316f9be29bc00d0dc72fc2b0af83 (diff) | |
parent | 55527c00eb35bf3b07b361363fd8ca2961afc8ba (diff) | |
download | mitmproxy-30645fa1ac6fa828bda390383abee7c04f20206f.tar.gz mitmproxy-30645fa1ac6fa828bda390383abee7c04f20206f.tar.bz2 mitmproxy-30645fa1ac6fa828bda390383abee7c04f20206f.zip |
Merge pull request #3921 from Kriechi/example-docs
Example docs
Diffstat (limited to 'docs/build.sh')
-rwxr-xr-x | docs/build.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/build.sh b/docs/build.sh new file mode 100755 index 00000000..aaa52a2f --- /dev/null +++ b/docs/build.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -o errexit +set -o pipefail +set -o nounset +# set -o xtrace + +SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" +pushd ${SCRIPTPATH} + +for script in scripts/* ; do + output="${script##*/}" + output="src/generated/${output%.*}.html" + echo "Generating output for ${script} into ${output} ..." + "${script}" > "${output}" +done + +output="src/content/addons-examples.md" +echo "Generating examples content page into ${output} ..." +./render_examples.py > "${output}" + +cd src +hugo |