And more PCjs/PCx86 disambiguation
This commit is contained in:
parent
a1e999e0c4
commit
2629e48bdf
57 changed files with 200 additions and 134 deletions
|
|
@ -42,6 +42,8 @@ var COPYRIGHT = "Copyright © 2012-2016 Jeff Parsons <Jeff@pcjs.org>";
|
|||
|
||||
var LICENSE = "License: GPL version 3 or later <http://gnu.org/licenses/gpl.html>";
|
||||
|
||||
var CSSCLASS = "pcjs";
|
||||
|
||||
/**
|
||||
* @define {string}
|
||||
*/
|
||||
|
|
@ -80,6 +82,8 @@ if (NODE) {
|
|||
global.APPVERSION = APPVERSION;
|
||||
global.XMLVERSION = XMLVERSION;
|
||||
global.COPYRIGHT = COPYRIGHT;
|
||||
global.LICENSE = LICENSE;
|
||||
global.CSSCLASS = CSSCLASS;
|
||||
global.SITEHOST = SITEHOST;
|
||||
global.COMPILED = COMPILED;
|
||||
global.DEBUG = DEBUG;
|
||||
|
|
|
|||
|
|
@ -488,6 +488,20 @@ function embedMachine(sName, sVersion, idMachine, sXMLFile, sXSLFile, sParms)
|
|||
eMachine.parentNode.replaceChild(eFragment, eMachine);
|
||||
doneMachine();
|
||||
} else {
|
||||
/*
|
||||
* NOTE: This error can occur if our Node web server, when processing a folder with
|
||||
* both a manifest.xml with a machine.xml reference AND a README.md containing a
|
||||
* machine link, generates duplicate embedXXX() calls for the same machine; if the
|
||||
* first embedXXX() call finds its target, subsequent calls for the same target will
|
||||
* fail.
|
||||
*
|
||||
* Technically, such a folder is in a misconfigured state, but it happens, in part
|
||||
* because when we switched to the Jekyll web server, we had to add machine links to
|
||||
* all README.md files where we had previously relied on manifest.xml or machine.xml
|
||||
* processing. This is because the Jekyll web server currently doesn't process XML
|
||||
* files, nor is support for that likely to be added any time soon; it was a nice
|
||||
* feature of the Node web server, but it's not clear that it's worth doing for Jekyll.
|
||||
*/
|
||||
displayError("invalid machine element: " + idMachine);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- Some browsers tend to display a white page before displaying one of our dark pages, which causes annoying "flashes";
|
||||
setting a background color as early as possible seems to help -->
|
||||
<!-- Some browsers tend to display a white page before displaying one of our dark pages,
|
||||
which causes annoying "flashes"; setting a background color as early as possible seems to help -->
|
||||
<html style="background-color: #1d1d1d">
|
||||
<head>
|
||||
<title>pcjs.org | <!-- pcjs:title("The Original IBM PC In Your Web Browser") --></title>
|
||||
|
|
@ -31,9 +31,9 @@
|
|||
<div class="common-top-left">
|
||||
<ul>
|
||||
<li><a href="/">PCjs</a></li>
|
||||
<li><a href="/apps/pc/">Demos</a></li>
|
||||
<li><a href="/apps/pcx86/">Demos</a></li>
|
||||
<li><a href="/devices/">Devices</a></li>
|
||||
<li><a href="/disks/pc/">Disks</a></li>
|
||||
<li><a href="/disks/pcx86/">Disks</a></li>
|
||||
<li><a href="/docs/">Docs</a></li>
|
||||
<li><a href="/pubs/">Pubs</a></li>
|
||||
<li><a href="/blog/">Blog</a></li>
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@
|
|||
<div class="common-top-left">
|
||||
<ul>
|
||||
<li><a href="/">PCjs</a></li>
|
||||
<li><a href="/apps/pc/">Demos</a></li>
|
||||
<li><a href="/apps/pcx86/">Demos</a></li>
|
||||
<li><a href="/devices/">Devices</a></li>
|
||||
<li><a href="/disks/pc/">Disks</a></li>
|
||||
<li><a href="/disks/pcx86/">Disks</a></li>
|
||||
<li><a href="/docs/">Docs</a></li>
|
||||
<li><a href="/pubs/">Pubs</a></li>
|
||||
<li><a href="/blog/">Blog</a></li>
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
<xsl:variable name="machineClass">
|
||||
<xsl:choose>
|
||||
<xsl:when test="machine/@class"><xsl:value-of select="machine/@class"/></xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="$MACHINECLASS"/></xsl:otherwise>
|
||||
<xsl:otherwise><xsl:value-of select="$APPCLASS"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<html lang="en">
|
||||
|
|
|
|||
Loading…
Reference in a new issue