labsyspharm / minerva-author

Tool to create images and configuration files for Minerva-Story
MIT License
15 stars 14 forks source link

Minerva Publishing Issue #65

Open Shadi9393 opened 1 year ago

Shadi9393 commented 1 year ago

Hello, I have created a Minerva story and tried to publish the files, but it seems the index.html file doesn't work properly. Once I click on the arrow button, it refers to a file that doesn't exist! file:///Users/myuser/Downloads/fda/javascript;; The files that the HTML is trying to upload and find are in the above-copied address.

Below is the snapshot of the interface I see!

Screenshot 2023-08-24 at 10 20 28 PM
thejohnhoffer commented 1 year ago

Hi @Shadi9393, We should consider displaying helpful error messages, but I can observe the source of the issue from your image and description, and I have the following two solutions for your problem.

  1. I hope to explain the problem and show how to share your stories on the public internet. It appears you opened the index.html file directly. However, this file is designed to be hosted behind a web-server. This can be arranged on your local computer, following a guide like this to run python3 -m http.server, or you could explore our guide on hosting the story as a public website. If your image directory is unusually small, under 1GiB, the process could be simpler than the guide we provide.
  2. Alternatively, as a temporary solution, you can continue to open your story.json file in Minerva Author, with the limitation that you must have access to the ome.tiff. Then, you can continue to use the "Preview" feature to view your story, without setting up the web server. In the long-run, solution 1 is preferable.
Shadi9393 commented 1 year ago

Hi @thejohnhoffer Thank you very much for your thorough explanation. I followed your instructions and it worked perfectly! I appreciate your time!

Best, Shadi