Skip to content

Underscore Style Guide

Noel Welsh edited this page Oct 8, 2015 · 5 revisions

This page documents the style used in Underscore's books Essential Scala, Essential Slick, and so on. It might be generally useful if you're writing a book using this template.

Callouts

For a callout, surround the text surrounded by a div with class="callout callout-info" and start the callout with an unnumbered level 4 heading. Use the class "callout-info", "callout-warning", or "callout-danger" as appropriate. Example:

<div class="callout callout-info">
#### Heading {-}

Body text here.
</div>

Exercises

All exercises should be under a heading (usually a level three heading) that is simply "Exercises". Each exercise should have a level four heading giving it a unique name. All these headings should be numbered (which is the default). Example:

### Exercises

#### Drop!

And give me fifty!

If an exercise consists of logical subexercises, give them the sub exercises titles using emphasised text like so:

#### Main Exercise Title

*Subtitle*

Exercise here
Clone this wiki locally