#!/bin/bash set -e cd `dirname $0` echo `dirname $0` for item in *; do [[ -d $item && -f $item/mkdocs.sh ]] && $item/mkdocs.sh done echo all subdirectories done docroot="./" templates=$docroot"pandoc_templates" . $templates"/mkdocs.cfg"