foam
foam copied to clipboard
Exporting Foam graph to html
Is your feature request related to a problem? Please describe.
Not related to a problem.
Describe the solution you'd like
In order to use the Foam graph (which is great) in a static site generated with hugo I think the best way would be to be able to export Foam graph to an html file.
Why looking at the Foam sources, one can read in the file ../dataviz/index.html the following :
To test the graph locally in a browser: 1. copy the json data object received in the message payload 2. paste the content in test-data.js 3. uncomment the next <script ...> line 4. open this file in a browser
<script src="./test-data.js"></script>
So I think that Foam can export the graph data to the file test-data.js then we can obtain an html file which will show the graph and can be embedded in a static site. But maybe I'm wrong.
If I'm not wrong, what would be the structure of the test-data.js ?The one provided with foam contains (see test-data.js ) : window.data = { nodes: [], edges: [] };
Any help on this feature ?
Phil.B
Describe alternatives you've considered
No alternatives considered.
Screenshots or Videos
No response