Web server update

This commit is contained in:
Jeff Parsons 2015-12-16 12:34:23 -08:00
commit 33098e4e18
4 changed files with 111 additions and 89 deletions

View file

@ -83,9 +83,16 @@ For example, the PCjs home page contains two machines, and so this appears at th
id: demoC1P
config: /devices/c1p/machine/8kb/large/machine.xml
I will continue to include a Node web server with the PCjs project, but it remains to be seen whether I'll update the
Node components to parse the new Jekyll "Front Matter" that's been added to all the Markdown files, or whether I'll leave
leave the Node support as-is on the old "master" branch, and make the "gh-pages" the new default branch.
I will continue to include a Node web server with the PCjs project, but it's now intended for development
purposes only (not production servers). I've updated the PCjs MarkOut component to parse any "Front Matter"
at the top of the PCjs Markdown files, and to convert all new Jekyll-style embedded machines to the old format,
so that pages generated by the Node web server will function more-or-less as before.
A word of warning: if you decide to run/alternate between Jekyll's web server (WEBrick) and the built-in Node
web server (server.js), you should run "grunt clean" before starting either one, to clean up any old **index.html**
files; otherwise, Jekyll's server may pick up the wrong files. It's easy to tell when this happens, because
you'll see the wrong color scheme: the Node web server was designed to use *dark* colors, whereas the Jekyll web
server uses *light* colors.
*[@jeffpar](http://twitter.com/jeffpar)*
*December 10, 2015*