mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-26 05:27:03 +00:00
- 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.
28 lines
818 B
Bash
Executable File
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>/\ /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
|