Browse Source

Add ability to switch out $LESSHANDLER

master
Bryan Bennett 7 years ago
committed by Bryan Bennett
parent
commit
4b380d4eab
  1. 2
      sw
  2. 1
      sw.conf.def

2
sw

@ -110,7 +110,7 @@ find $IDIR \( -path "$IDIR/.git*" -o -path "$ODIR" -o -path "$IDIR/sw.conf" \) -
rm -f `find $ODIR -type f -iname '*.md'`
if [ -f $CDIR/$STYLE ]; then
if [ $STYLE_IS_LESS -eq 1 ]; then
lesscpy $CDIR/$STYLE > $ODIR/$STYLE
$LESSHANDLER $CDIR/$STYLE > $ODIR/$STYLE
else
cp $CDIR/$STYLE $ODIR/$STYLE
fi

1
sw.conf.def

@ -9,3 +9,4 @@ STYLE_IS_LESS=0 # Set to 1 to parse stylesheet as LESS
# External apps
MDHANDLER="markdown_py -x tables -x def_list" # md handler
LESSHANDLER="lesscpy"
Loading…
Cancel
Save