Commit Graph

10 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
bcb1c40f93 examples work 2014-03-01 19:55:56 -07:00
Eli Barzilay
6b100291e0 Update the layout with new resources, and add the files in. 2014-03-01 19:55:56 -07:00
Eli Barzilay
dd1996eefd Major simplification of site resources.
Only one resource (`make-navbar') returns a function now, the others
return just misc contents.  Dump the idea of a `head' resource which
complicated things whenever something new needed to be injected into the
head section -- and instead do the head assembly in the page layout
function.

Turn the preamble and postamble into resources too in preparation for
more contents taht is used in the postamble, mostly dealing with
resource files.  (The former doesn't need to be one since it's just
static text, but make it symmetric.)

Finally, the resources (implemented in `make-resources') have some
symbols that return things that are constructed by the code, and the
rest are files that are copied.  There are also some symbolic names that
stand for "special" resources -- these should get attention on changes,
since they are mostly there to expose some things for various pages.
For example, if more CSS is added, `style-path' should change to be a
list of CSS files and the code that uses it (in the git content that is
derived by gitweb) should also be adjusted to deal with more than one
file.
2014-03-01 19:55:56 -07:00
Eli Barzilay
3bdf68ebac Simplify code around resources.
Note the `case-lambda' hack to avoid repeating the default file resource
target.  (Do this since it might actually change in the future to not be
the "basefile" of the source file.)
2014-03-01 19:55:56 -07:00
Eli Barzilay
24e2146686 Cleanup.
Left comments in "www/index.rkt" about adding more files.
2014-03-01 19:55:54 -07:00
Eli Barzilay
b9f3cd746e Added the scripts on the bottom of the page.
All are commented out ATM.  (The files, if any, need to be distributed
in addition to the CSS file(s).)
2014-03-01 19:55:54 -07:00
Eli Barzilay
5ed2101d50 More head-level additions.
Note that I used "image/x-icon" for the "shortcut icon" type, even
though it's different from the one used on the "icon" type right above
it.

Need to sort the CSS mess: I think that "css/style.css" is meant to be
out global CSS (so it needs to change), and "css/scribble.css" is
probably what "more.css" is doing and it's being used only on the front
page since that has the scribble-rendered examples.

Also, need to scan all the "@;" comments here: some might need to be in
the actual HTML output, and some look like leftovers from wherever this
HTML was ripped from that are not applicable.
2014-03-01 19:55:54 -07:00
Eli Barzilay
57bf159aa4 Add magic IE chants to all page tops. 2014-03-01 19:55:54 -07:00
Eli Barzilay
d67cc5b094 Switch from xhtml to plain html.
Since that's the new way, according to Sam at least.
2014-03-01 19:55:53 -07:00
Eli Barzilay
66c53fbd5c Copied the web directory to work on it locally. 2014-03-01 19:55:52 -07:00