DocuBricks / docubricksViewer

1 stars 3 forks source link

Direct XML parsing #7

Closed rwb27 closed 7 years ago

rwb27 commented 7 years ago

I've added code to parse directly from the XML file in JavaScript. This eliminates the XML -> JSON -> Base64 encoding step that confused me in #4. I've also added a couple of alternatives to viewertest.html - the most exciting one is viewertest-xml-github.html which is able to render the documentation directly from GitHub. There's also a version that lets you paste in the URL to view any project. Crucially, this means if your project is on GitHub, it can now be viewed by anyone in a web browser.

I have a working demonstration of this for the OpenFlexure Microscope - it just requires adding a few files to the gh-pages branch of the repository.