Creating Application On-line help for each screen

I need to create on line help for the JMIX app. How did you do this

  1. the app shall have full on-line Help screens properly formatted for either viewing or printing.
  2. when a Help screen is requested, it shall present help for the currently viewed application screen.