Files
cappuccino/Tools/Documentation/postprocess/002.transform_text.sh
T
Aparajita Fishman be5bbdcb32 Another overhaul of doc generation.
- Added generic facility for pre- and post-processor scripts to be run.
- Added support utility script for inclusion by processors.
- Totally overhauled css to make the pages more readable (I hope).
- Fixed some doc errors in CPTableView.
- Don't generate XML.
- Added colorize() and colorPrint() functions to common.jake.
- Added docs-no-frame task for generating docs without a sidebar frame.
2011-05-12 14:41:54 -04:00

28 lines
818 B
Bash
Executable File

#!/bin/bash
#
# NOTE: The working directory should be the main capp directory when this script is run
#
# $1 Cappuccino Tools/Documentation directory
# $2 Generated documentation directory
# Do this if you want to use the utility functions
source "$1"/processor_setup.sh
# The following transforms are performed:
# - Strip useless "[implementation]" littering the docs
# - Change "Static Public Member Functions" to "Class Methods"
# - Change "Public Member Functions" to "Instance Methods"
if [ ! -d "$2" ]; then
exit 0
fi
processor_msg 'Massaging text...'
sed -i '' -E \
-e 's/<code> \[implementation\]<\/code>/\&emsp;/g' \
-e 's/Static Public Member Functions/Class Methods/g' \
-e 's/Public Member Functions/Instance Methods/g' \
-e 's/(AppKit|Foundation)\.doc/\1/g' \
"$2"/*.html