Online user guide plus PDF download
===

At the moment I am managing my user guide using Microsoft Word 2003 and am converting it to a PDF file that can be downloaded from website plus is included by product installer.

I would like to move to a mechanism that achieves the following:

- Generates PDF file with clickable TOC and front page
- Generates HTML5 compliant output per chapter/section but without HTML skeleton
- Generates JSON TOC for user guide (chapter/section outline)

I would like to package the PDF file with the distributed product.

I would like to create some simple PHP scripts that generate HTML pages with a context sensitive TOC (showing sections of current chapter) plus showing the relevant documentation.

I have no issues with developing the PHP scripts to achieve this, but I would like to know how I can generate the above outputs. I would preferably like to type documentation using an off-the-shelf GUI. I am happy to write XSLT2 stylesheets to perform any necessary conversions.

To give people an idea of what I am after:

- Current PDF manual: http://rotorz.com/tilesystem/user-guide.pdf

- API documentation which is generated using custom XSLT2 stylesheets into a bunch of "incomplete" HTML files, with a JSON TOC which is then brought together by PHP: http://rotorz.com/tilesystem/api

As you navigate through my API documentation you will notice that the TOC on the left is context sensitive. I would like my user guide to work in a similar way.

Is there a free alternative to Prince: http://www.princexml.com/ for paged media CSS?