Archi Forum

Archi Plug-ins => jArchi => Topic started by: merty on February 18, 2024, 19:17:09 PM

Title: Single View 2 Single HTML script
Post by: merty on February 18, 2024, 19:17:09 PM
Hi everyone,

I was in need of a simple way to distribute our archimate views without the need of archi. Although there is an "Export to HTML" script out there, I needed something smaller & simpler.


So I created this script "view2singleHTML.ajs".
It will create a single HTML file with the view as SVG in it (scales easier when browser scales) and some CSS code.

CSS and HTML can be adjusted to your needs, "v2s.html" and "v2s_popup.html" in template directory under the directory the script is run will be used. So you can adjust the resulting HTML and also including the value of property you want from the templates

Because it only uses HTML, inline SVG and inline CSS, it is easier to incorperate this in many documentation tools, like in a sharepoint page as webcomponent.

Latest code can be found on Github : View2SingleHTML (https://github.com/RemcoSchellekensNS/jarchi-View2SingleHTML/tree/main)

Example:

(https://raw.githubusercontent.com/RemcoSchellekensNS/jarchi-View2SingleHTML/main/v2sScreenshot2.png)
Title: Re: Single View 2 Single HTML script
Post by: Phil Beauvoir on February 19, 2024, 00:00:24 AM
Many thanks for sharing!

I edited your post so that the image displays.

Phil
Title: Re: Single View 2 Single HTML script
Post by: Jean-Baptiste Sarrodie on February 19, 2024, 11:08:52 AM
Hi,

Thank you for sharing. I'm sure I will reuse a big part of your code to enhanced my "Single Page HTML Export" script (which uses PNG and not SVG).

Regards,

JB