Skip to content

LongsightGroup/sakai-help-conversion

Repository files navigation

Convert external HTML to Sakai's bean-configured help format

This code uses Composer for PHP dependency management:
  https://getcomposer.org/

* Make a /tmp/help dir and unzip the Screensteps export

  mkdir /tmp/help
  cd /tmp/help
  unzip export.zip

* Reduce image size to 1/3rd of original size

  find /tmp/help/images/ -iname '*.png' -exec optipng -o7 {} \;
  find /tmp/help/images/ -name '*.png' -print0 | xargs -0 -P8 pngquant --ext .png --force 64

* Remove empty image directories

  find /tmp/help/images/ -empty -type d -delete


find /tmp/help -name \*.html -exec sed -i 's/js\/jquery\/jquery-1.9.1.min.js/webjars\/jquery\/1.11.3\/jquery.min.js/g' {} \;
find /tmp/help -name \*.html -exec sed -i 's/neo-default/morpheus-default/g' {} \;


* Parse the HTML and place it in my Sakai Git source directory 

  php -q sakai-help-parse.php

About

Convert external help HTML to Sakai help format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published