This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

BookOptions Pennington.Book

Configuration for AddPenningtonBook: which books to carve out of the TOC and how to launch Chromium. When Books is empty a single book covers the whole site.

Properties

AdditionalChromiumArgs string[]
Extra command-line arguments passed to Chromium (for example --no-sandbox in CI).
AdditionalCss string
Extra CSS appended after the built-in print stylesheet, for per-site print tweaks.
Books List<BookDefinition>
Explicit books. Empty (the default) means one whole-site book titled from the site title.
ChromiumExecutablePath string
Path to a Chromium/Chrome executable. When null, PuppeteerSharp downloads a private Chromium on first use.
Monochrome bool
When true, appends a grayscale override stylesheet so books print without color — neutral grays for links, alerts, code, and the syntax palette. AdditionalCss still wins, since it is appended last.

Pennington.Book.BookOptions

namespace Pennington.Book;

/// Configuration for AddPenningtonBook: which books to carve out of the TOC and how to launch Chromium. When Books is empty a single book covers the whole site.
public class BookOptions
{
    /// Extra command-line arguments passed to Chromium (for example --no-sandbox in CI).
    
public string[] AdditionalChromiumArgs { get; set; }
/// Extra CSS appended after the built-in print stylesheet, for per-site print tweaks.
public string AdditionalCss { get; set; }
/// Explicit books. Empty (the default) means one whole-site book titled from the site title.
public List<BookDefinition> Books { get; }
/// Path to a Chromium/Chrome executable. When null, PuppeteerSharp downloads a private Chromium on first use.
public string ChromiumExecutablePath { get; set; }
/// When true, appends a grayscale override stylesheet so books print without color — neutral grays for links, alerts, code, and the syntax palette. AdditionalCss still wins, since it is appended last.
public bool Monochrome { get; set; }
}