From e1a2fb7a3af8b06544ccbedfc8e166f90e4c710d Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 23 Jul 2014 18:42:19 -0700 Subject: [PATCH] make docs multi-page --- installation.scrbl | 10 ++++++++++ scribblings/installation.scrbl | 10 ++++++++++ scribblings/license.scrbl | 8 ++++++++ scribblings/sugar.scrbl | 21 +++++++-------------- 4 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 installation.scrbl create mode 100644 scribblings/installation.scrbl create mode 100644 scribblings/license.scrbl diff --git a/installation.scrbl b/installation.scrbl new file mode 100644 index 0000000..50ab25b --- /dev/null +++ b/installation.scrbl @@ -0,0 +1,10 @@ +#lang scribble/manual + + +@title{Installation & updates} + +At the command line: +@verbatim{raco pkg install sugar} + +After that, you can update the package from the command line: +@verbatim{raco pkg update sugar} \ No newline at end of file diff --git a/scribblings/installation.scrbl b/scribblings/installation.scrbl new file mode 100644 index 0000000..50ab25b --- /dev/null +++ b/scribblings/installation.scrbl @@ -0,0 +1,10 @@ +#lang scribble/manual + + +@title{Installation & updates} + +At the command line: +@verbatim{raco pkg install sugar} + +After that, you can update the package from the command line: +@verbatim{raco pkg update sugar} \ No newline at end of file diff --git a/scribblings/license.scrbl b/scribblings/license.scrbl new file mode 100644 index 0000000..4bb0f80 --- /dev/null +++ b/scribblings/license.scrbl @@ -0,0 +1,8 @@ +#lang scribble/manual + +@title{License & source code} + +This module is licensed under the LGPL. + +Source repository at @link["http://github.com/mbutterick/sugar"]{http://github.com/mbutterick/sugar}. Suggestions & corrections welcome. + diff --git a/scribblings/sugar.scrbl b/scribblings/sugar.scrbl index b614bf2..1ae4465 100644 --- a/scribblings/sugar.scrbl +++ b/scribblings/sugar.scrbl @@ -6,29 +6,22 @@ @(my-eval `(require sugar)) -@title{Sugar: readability & convenience library} +@title[#:style 'toc]{Sugar: readability & convenience library} @author[(author+email "Matthew Butterick" "mb@mbtype.com")] -A collection of small functions to help make Racket code simpler & more readable. - -@section{Installation & updates} +@defmodule[sugar] -At the command line: -@verbatim{raco pkg install sugar} +A collection of small functions to help make Racket code simpler & more readable. -After that, you can update the package from the command line: -@verbatim{raco pkg update sugar} +@local-table-of-contents[] +@include-section["installation.scrbl"] @include-section["coerce.scrbl"] @include-section["len.scrbl"] +@include-section["license.scrbl"] -@section{License & source code} - -This module is licensed under the LGPL. - -Source repository at @link["http://github.com/mbutterick/sugar"]{http://github.com/mbutterick/sugar}. Suggestions & corrections welcome. - +@index-section[]