chm-hhp.sh
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 05 Aug 2015 23:55:34 +0300
changeset 1729 22ffd80639c0
parent 903 9ead7d97be34
child 1893 da0024f4f068
permissions -rw-r--r--
Make centered content design with adoption for mobile devices. Highlight TOC.

#!/bin/sh

echo '[OPTIONS]'
echo 'Compatibility=1.1 or later'
echo 'Compiled file=tips4gavenkoa.chm'
echo 'Contents file=chm.hhc'
echo 'Default Window=Navigation panel'
echo 'Default topic=index-chm.html'
echo 'Display compile progress=No'
echo 'Full text search stop list file=chm.stp'
echo 'Full-text search=Yes'
echo 'Language=0x409 Английский (США)'
echo 'Title=Tips from gavenkoa'
echo ''
echo '[WINDOWS]'
echo 'Navigation panel=,"chm.hhc",,"index-chm.html","index-chm.html",,,,,0x62520,250,0x304e,[0,0,900,600],,,,,,,0'
echo ''
echo '[FILES]'

for file in *.rst *.txt; do
  ext=${file##*.}
  name=${file%.${ext}}
  case $ext in
    txt)
      echo $name.txt
      ;;
    rst)
      echo $name.html
      ;;
  esac
done
echo index-chm.html

echo ''
echo '[INFOTYPES]'