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
AdditionalChromiumArgsstring[]- Extra command-line arguments passed to Chromium (for example
--no-sandboxin CI). AdditionalCssstring- Extra CSS appended after the built-in print stylesheet, for per-site print tweaks.
BooksList<BookDefinition>- Explicit books. Empty (the default) means one whole-site book titled from the site title.
ChromiumExecutablePathstring- Path to a Chromium/Chrome executable. When null, PuppeteerSharp downloads a private Chromium on first use.
Monochromebool- When true, appends a grayscale override stylesheet so books print without color — neutral grays for links, alerts, code, and the syntax palette.
AdditionalCssstill 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; }
}