From 075f8c0cecd4264e7185048c6b0d44343a58b2a1 Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Mon, 11 Aug 2025 17:41:21 -0400 Subject: [PATCH] feat(electron): added docs viewer --- electron/docs.json | 38 +++ electron/index.html | 89 +++++++ electron/renderer-refactored.js | 8 +- electron/renderer/docs-handler.js | 370 ++++++++++++++++++++++++++++ electron/renderer/dom-manager.js | 8 +- electron/renderer/event-handlers.js | 11 +- electron/styles.css | 300 ++++++++++++++++++++++ 7 files changed, 818 insertions(+), 6 deletions(-) create mode 100644 electron/docs.json create mode 100644 electron/renderer/docs-handler.js diff --git a/electron/docs.json b/electron/docs.json new file mode 100644 index 0000000..349e8fc --- /dev/null +++ b/electron/docs.json @@ -0,0 +1,38 @@ +{ + "serif": { + "name": "SERiF", + "path": "docs/serif/html", + "desc": "Documentation for SERiF - Stellar Evolution in 4D", + "hostDocURL": "https://algebrist.ddns.net/~tboudreaux/docs/serif/html/", +"githubURL": "https://github.com/4DSTAR/SERiF", + "version": "0.0.1a", + "category": "Modeling Tools" + }, + "gridfire": { + "name": "GridFire", + "path": "docs/gridfire/html", + "desc": "Documentation for GridFire - General purpose nuclear network", + "hostDocURL": "https://4d-star.github.io/GridFire/html/index.html", + "githubURL": "https://github.com/4DSTAR/GridFire", + "version": "0.6.0", + "category": "Modeling Tools" + }, + "libplugin": { + "name": "libplugin", + "path": "docs/libplugin/html", + "desc": "Documentation for libplugin - Plugin framework for 4DSTAR", + "hostDocURL": "https://tboudreaux.github.io/libplugin/html/", + "githubURL": "https://github.com/4DSTAR/libplugin", + "version": "0.3.4", + "category": "Core Libraries" + }, + "libcomposition": { + "name": "libcomposition", + "path": "docs/libcomposition/html", + "desc": "Documentation for libcomposition - Composition library for 4DSTAR", + "hostDocURL": "https://4d-star.github.io/libcomposition/html/", + "githubURL": "https://github.com/4DSTAR/libcomposition", + "version": "1.5.2", + "category": "Core Libraries" + } +} diff --git a/electron/index.html b/electron/index.html index 58581af..bd8b5d9 100644 --- a/electron/index.html +++ b/electron/index.html @@ -42,6 +42,10 @@
SL
SERiF Libraries +
+
📚
+ Documentation +
+ + +
@@ -319,6 +345,69 @@ + + + + + +