Commit Graph

29 Commits

Author SHA1 Message Date
Eli Barzilay
4d5ba08653 lambda' -> λ' 2011-12-31 14:24:41 -05:00
Eli Barzilay
fa4c073b9e Adjust meta/web' for changes in scribble/html'.
Add a `resource/referrer' abstraction for referrers, on top of plain
resources.  (When the referrer is `values', it just returns the plain
resource.)  Also add `url-of' to replace `get-resource-path'.
2011-12-28 21:07:24 -05:00
Eli Barzilay
1cd8e6cbf3 Remove the referrer argument from copyfile' and symlink', and remove
the unused `content-resource' (it is not necessary).
2011-12-28 21:07:24 -05:00
Eli Barzilay
43275e7b0a Make the web page header a link to the main page. 2011-03-31 11:05:52 -04:00
Eli Barzilay
58febe21a0 Move the #%top' binding that makes foo:' keywords self evaluating from
`scribble/html/lang' to `scribble/html'.

Since `foo:' keywords are very common in any code that uses
`scribble/html', it is much more convenient to have it provide the
custom `#%top'.  It simplifies code that uses it, for example, files in
`meta/web/common' now use

  #lang at-exp racket/base
  (require scribble/html)

instead of the (only-in scribble/html/lang #%top) which it used before,
or instead of explicitly quoting all `foo:'s.
2010-10-28 17:31:22 -04:00
Eli Barzilay
69a490c10b More name improvements: scribble/text/textlang' -> scribble/text/lang'
and the same for `scribble/html/lang'.
2010-10-26 16:17:09 -04:00
Eli Barzilay
82221a51db Make the scribble/html' layout mimic the one for scribble/text'.
Ie, the difference between using it as a language and as a module is now
the same in both.  Also, improve `scribble/html' (and
`scribble/html/htmllang') by reproviding most of the corresponding text
modules.

Change `meta/web' accordingly, and improve code by making a new langugae
(`#lang meta/web').  This language is similar to `scribble/html' except
that it uses the plain scribble reader (not the `-inside' one), it
doesn't use the customized module-begin feature (that uses
`output-xml'), and it adds all the relevant bits of `meta/web/common'.
(Also, "meta/web/common.rkt" is gone, since it's used only as a language
now.)

This commit has lots of details and binding games, so it's tricky, and
potentially caused some problems.  (Took me a while to track many
breakages, so I won't be surprised if there are more.)
2010-10-26 15:36:29 -04:00
Eli Barzilay
ca040ea42a Move meta/web/html' to scribble/html'.
(See http://lists.racket-lang.org/dev/archive/2010-October/004691.html
for a discussion on calling it `html' rather than `xhtml'.)
2010-10-26 13:50:17 -04:00
Eli Barzilay
fc2ed3f8c6 Fixed extra headers being duplicated 2010-08-17 22:13:18 -04:00
Eli Barzilay
e54d7c0806 Add some newlines to make htmls more readable (and debuggable) 2010-07-12 21:41:33 -04:00
Eli Barzilay
8f69e94980 Added `get-resource-path' to get the path of any resource.
Use it to allow getting the standard resource paths from the common
layout.
2010-07-02 11:38:13 -04:00
Eli Barzilay
76300bd759 #:full-width' -> #:width', which can specify full width or a given one. 2010-07-02 11:38:12 -04:00
Eli Barzilay
ca3b27b810 Allow #:part-of to use symbolic names, add it to a bunch of pages.
(Using a symbolic name makes it easy to use without worrying about
circular dependencies.)
2010-06-16 16:49:02 -04:00
Eli Barzilay
8694d7b8ae Provide resources from download (so do this from all uses of
`define+provide-context'); dirlist uses that instead of www.

Also dropped redundant provides of `page'.
2010-06-16 16:49:02 -04:00
Eli Barzilay
4f6502129a Finish previously incomplete treatment of contexts with #:resource 2010-06-16 16:49:02 -04:00
Eli Barzilay
098b32b0af Add template files for browsing the installer dirs directly. 2010-06-16 16:49:02 -04:00
Eli Barzilay
1cce6c1f88 Factor our the common path computation. 2010-06-16 16:49:01 -04:00
Eli Barzilay
00bca21339 Typo in error message 2010-06-16 16:49:01 -04:00
Eli Barzilay
dc0959ce05 Get our favicon to be used. 2010-06-15 13:17:50 -04:00
Eli Barzilay
8ff7a162db Added a blogger template.
This required refactoring some of the layout code to make it possible to
embed pieces of it in the template.
2010-06-14 14:26:09 -04:00
Eli Barzilay
fdd1c8d003 Toplevel download links 2010-06-07 13:41:13 -04:00
Eli Barzilay
2edf998fdb No need for multiple arguments here 2010-06-07 13:41:13 -04:00
Eli Barzilay
054ce9d21c Fix a small but nasty bug, and the related problem in stubs. 2010-06-06 05:40:16 -04:00
Eli Barzilay
33fb2679ae Fix bugs in output directories 2010-06-05 14:37:44 -04:00
Eli Barzilay
f56532c022 Main page works. 2010-06-05 14:23:55 -04:00
Eli Barzilay
3b3bfb0719 Add a `plain', and fix the identifiers. 2010-06-05 13:55:46 -04:00
Eli Barzilay
caaa69c689 define-pager' -> define+provide-context' that also creates a
`copyfile' binding.
2010-06-05 13:26:52 -04:00
Eli Barzilay
e09d6567c8 General links module, ability to specify extra html <head> material. 2010-06-05 12:43:36 -04:00
Eli Barzilay
2cbf8c8677 Common code for PLT sites 2010-06-05 08:53:53 -04:00