This file is /Migration_2021_Tasks.md Written by Egbert Broerse 21-01-2021, updated 01-09-2022. It describes the necessary steps to migrate jmr.org Help etc files to the CSS3 responsive format and new style.
- replace any left-over local Style definitions by an include:
<!--#include virtual="/Style.shtml" --> - Check new SVG graphic is present in
/images/jmri-small.svg - Check
/jscontains 4 scripts:here.js,main.js,side.jsandheader.js - Change all multi-line
<pre><code>blocks to<code class="block">tags - Clean up Sidebars: change all occurrences of
<dt><h3>into<dt>(removing<h3>and</h3>, this was all markup for layout) - Change
class="nomenu"toclass="no-sidebar"
- No changes required to
Style.shtml - Replace file
/css/defaults.cssby file/css/defaults2020.css - In all Sidebar files:
- replace
<div id="side"> <!-- Block of text on left side of page --><div style="text-align: center">JMRI® is...</div>
<dl class="doc">with<div class="card-1" id="side" > <!-- Block of text on left side of page -->
<div id="close-side" class="floatRight button fa fa-close" style="display:none;" onclick="side_close()"></div><div style="text-align: center;">JMRI® is...</div>
<dl> - To the end add:
<!-- button is in /Header --><script src=“/js/side.js"></script>
- replace
- Completely replace file Header.shtml with Header2020.shtml
- On all pages:
- Replace line 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
by<!DOCTYPE html> - Just before the end tag, add:
<script src="js/main.js"></script>
- Replace line 1
- Place
<img src=tags inside either a 100%, 70%, 50% or 30% flex-item, like<div id="icon-large" class="flex-item-30"> <!-- Logo --> <img src="images/logo-jmri.gif" alt="JMRI Logo" style="object-fit: scale-down;"> <!-- /Logo --> </div> <div class="flex-item-70"> - Remove all
<p>tags used as spacers. If they are used inside<li>, replace them by<br - convert all PRAGMA redirects to html5 replacement