SSG/Builder.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.

Project sources: Pinned compfiles documentation, Pinned compfiles corpus index

3 declarations, 0 contain sorry, 0 declared as axioms

Site building engine

Imports (1)
Imported by 1 file
  1. def copyAsset Copy a single asset line 12 source

    Source documentation

    Copy a single asset

    def copyAsset (outDir : String) : Asset → IO Unit
      | .file src dst => do
        let content ← IO.FS.readFile src
        IO.FS.writeFile (outDir ++ "/" ++ dst) content
      | .binary src dst => do
        let content ← IO.FS.readBinFile src
        IO.FS.writeBinFile (outDir ++ "/" ++ dst) content
    
    /-- Write a single page -/

    Mentions: Asset

  2. def writePage Write a single page line 21 source

    Source documentation

    Write a single page

    def writePage (outDir : String) (page : Page) : IO Unit := do
    …

    Mentions: Page

  3. def buildSite Build the entire site line 30 source

    Source documentation

    Build the entire site

    def buildSite {Custom : Type} [ToString Custom] (config : SiteConfig Custom)
      (assets : List Asset) (pages : List Page) : IO Unit := do
    …

    Mentions: SiteConfig, Asset, Page