Index: code-docs/snippets-html.scrbl
==================================================================
--- code-docs/snippets-html.scrbl
+++ code-docs/snippets-html.scrbl
@@ -14,17 +14,17 @@
pollen/template
pollen/pagetree
txexpr
sugar/coerce))
-@title{@filepath{snippets-html.rkt}}
+@title{HTML snippets}
@defmodule["snippets-html.rkt" #:packages ()]
-Each “snippet” module provides all the document- and article-level blocks of structural markup
-necessary for a particular target output format; this one is for HTML. The idea is that any block of
-markup that might be reused across more than one template should be a function.
+Each “snippet” module provides all (well @emph{most of}) the document- and article-level blocks of
+structural markup necessary for a particular target output format; this one is for HTML. The idea is
+that any block of markup that might be reused across more than one template should be a function.
The functions in the snippets modules follow two conventions in this project:
@itemlist[
@item{Functions that return strings of HTML have the prefix @tt{html$-}.}
@@ -48,91 +48,114 @@
})
}
@section{HTML Snippet functions}
-@defproc[(html$-page-head [title (or/c string? #f) #f] [close-head? boolean? #t]) non-empty-string?]
+@defproc[(html$-page-head [title (or/c string? #f) #f] [close-head? boolean? #t])
+non-empty-string?]{
-Returns the @tt{
} section of an HTML document.
+Returns the @tt{} section of an HTML document.
If @racket[_title] is a string it will be used inside the @tt{} tag.
If you want to include additional stuff inside the @tt{}, you can set @racket[_close-head?] to
@racket[#f] to prevent it from including the closing @tt{} tag (you’ll have to add it
yourself).
+}
-@defproc[(html$-page-body-open [body-class string? ""]) non-empty-string?]
+@defproc[(html$-page-body-open [body-class string? ""]) non-empty-string?]{
Returns the opening @tt{} and @tt{} tags and elements that immediately follow, such as
site header, logo and navigation.
If @racket[_body-class] is a non-empty string, its contents will be included in the @tt{class}
attribute of the @tt{} tag.
+}
+
+@defproc[(html$-series-list) non-empty-string?]{
+
+Returns an HTML @tt{} containing a list of all series, grouped by their “plural nouns”. The
+grouped list will flow into columns on wider displays.
+}
@defproc[(html$-article-open [pagenode pagenode?]
[title-specified-in-doc? boolean?]
[title txexpr?]
[pubdate string?])
- non-empty-string?]
+ non-empty-string?]{
Returns the opening @tt{} tag and elements that immediately follow: permlink, publish date,
and opening @tt{} tag.
The @racket[_title-specified-in-doc?] form changes the HTML markup structure used.
+}
-@defproc[(html$-article-close [footertext string?]) non-empty-string?]
+@defproc[(html$-article-close [footertext string?]) non-empty-string?]{
Returns a string containing a closing @tt{} tag, a @tt{