40 lines
1.2 KiB
Lean4
40 lines
1.2 KiB
Lean4
import Book
|
|
import Manual.Meta
|
|
|
|
open Verso.Genre Manual
|
|
open Verso.Genre.Manual
|
|
|
|
-- The static assets (theme, fonts, KaTeX) follow the setup of
|
|
-- Peter Pfaffelhuber's course notes, https://github.com/pfaffelh/leancourse.
|
|
|
|
-- Kein eigenes KaTeX mehr: Das aktuelle Verso liefert seinen eigenen
|
|
-- Mathe-Renderer mit (-verso-data/katex/…); eine zweite Kopie würde
|
|
-- jede Formel doppelt rendern.
|
|
|
|
open Verso.Output.Html in
|
|
def staticCss := {{
|
|
<link rel="stylesheet" href="/static/colors.css" />
|
|
<link rel="stylesheet" href="/static/theme.css" />
|
|
<link rel="stylesheet" href="/static/print.css" />
|
|
<link rel="stylesheet" href="/static/fonts/source-serif/source-serif-text.css" />
|
|
<link rel="stylesheet" href="/static/fonts/source-code-pro/source-code-pro.css" />
|
|
}}
|
|
|
|
open Verso.Output.Html in
|
|
def staticJs := {{
|
|
<script src="/static/print.js"></script>
|
|
}}
|
|
|
|
def main :=
|
|
manualMain (%doc Book) (config := config)
|
|
where
|
|
config := {
|
|
extraFiles := [("static", "static")],
|
|
extraHead := #[staticCss, staticJs],
|
|
emitTeX := false,
|
|
-- Deployt wird nur die Multi-Page-Ausgabe; die
|
|
-- Single-Page-Ausgabe wäre doppelte Generierungsarbeit.
|
|
emitHtmlSingle := .no,
|
|
emitHtmlMulti := .immediately,
|
|
}
|