Migrate website from PHP to plain HTML with Java-Script and markdown #3554
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Replaces the PHP based build-drop and overview pages by pure html pages whoose data are injected through Java-script, read from JSON files.
The JSON files are generated during the I/Y-Builds and populated with corresponding data, to replace the server-side reading of files not available anymore with the PHP deprecation.
Additionally this has the advantage that developing the drop-websites is much simpler as one just as to launch a simple webserver from the sites directory that only has to serve static files. For example by using
jwebserver(part of a JDK since Java-18).The general website structure and layout is heavily based on the existing sites with only some small enhancements, e.g. by providing links to the Jenkins jobs of running tests and improving the display of runtimes and dates (which are now in UTC to be more international). Although I have ideas for further moderate improvements I do not plan to significantly change the current structure.
Fixes #2656
A preliminary state of the overview page can be found at the moment (the link will probably be dead in the later future):
Beware that the links to the individual drops are currently not working as they are created assuming the final location.
This is currently heavily work-in-progress, but I plan to complete it by the end of this week (more or less just in time) and want to share the current state already.
The main drop-page of a build is mostly completed and can be inspected locally by launching
jwebserverfrom thesites/eclipse/build-pagefolder. Similarly the overview page can be inspected by launchingjwebserverfromsites/eclipse/overview-page. One can also launchjwebserverfrom the parent directory and select the corresponding folder.For both sites the read JSON files are populated with test data.
Initially I intended to define the scaffolding of each site in markdown, but as that's actually not much content and the scaffolding itself is static and not regularly changed, I don't think it's actually an overall advantage. It requires extra dependencies and client-side rendering and therefore slows down page rendering plus it makes the page definition more distributed, which again slows down the rendering as more files have to be downloaded and makes developing more complex.
Therefore I intend to define also the scaffolding as plain HTML and only inject the data from the JSON files using JavaScript.
The following TODOs are pending:
testresultsfolder to not keep them forever