#!/bin/sh
rm ../doc/reference.html
CLASSES="Map Layer Layer.HTTPRequest Layer.Grid Layer.WMS Layer.KaMap Layer.EventPane Layer.Google Layer.VirtualEarth Layer.Markers Layer.Text Layer.GeoRSS Layer.Boxes Icon Marker Marker.Box Tile Tile.Image Tile.WFS Control Control.LayerSwitcher Control.MouseDefaults Control.MousePosition Control.MouseToolbar Control.OverviewMap Control.PanZoom Control.PanZoomBar Control.Permalink Control.Scale LonLat Size Pixel Bounds Util Ajax"
echo "
OpenLayers Class Reference Documentation
" >> ../doc/reference.html
for i in $CLASSES; do
echo "" >> ../doc/reference.html
done
echo "
" >> ../doc/reference.html
for i in $CLASSES; do
cat ../doc/$i.txt | \
perl -pe 's!^(.*?) -- (.*?) -- (.*?)$! | $1 | $2 | $3 |
!g;
s!^( \* )?(.*?) -- (.*?)$! | $2 | $3 |
!g;
s!^ \* (.*)$! \n\n$1
\n !;
s!{OpenLayers.(.*?)\|(.*?)}!\2!g;
s!{OpenLayers.(.*?)}!OpenLayers.$1!;
s!{([A-Za-z]+?)\|(.+?)}!\2<\/span>!g;
s!{([A-Za-z]+?)}!$1<\/span>!g;
s!^\* (.*)$!
\n$1
\n!;
s!^OpenLayers\.(.*)$!!' \
>> ../doc/reference.html
echo '
' >> ../doc/reference.html
done
echo "
" >> ../doc/reference.html