LeadKit/project-scripts/gen_docs_from_playgrounds.sh

17 lines
432 B
Bash
Executable File

#!/bin/sh
# Description:
# Generates markdown documentation from nef playgrounds.
#
# Required environment variables:
# SRCROOT - path to project folder.
#
PLAYGROUNDS="${SRCROOT}/TIFoundationUtils/TIFoundationUtils.app
${SRCROOT}/TIUIElements/TIUIElements.app"
for playground_path in ${PLAYGROUNDS}; do
nef compile --project ${playground_path}
nef markdown --project ${playground_path} --output ${SRCROOT}/docs
done