Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/blueprint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ permissions:
pull-requests: write # Write access to pull requests
actions: write # Write access to GitHub Actions

env:
LEAN_EXPOSITION_REPO: LeanMachineLearning/exposition
LEAN_EXPOSITION_REF: main

jobs:
build_project:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -55,6 +59,26 @@ jobs:
run: |
./scripts/build_docs.sh

- name: Clone lean-exposition
run: |
git clone --depth 1 --branch "$LEAN_EXPOSITION_REF" \
"https://github.com/$LEAN_EXPOSITION_REPO" /tmp/lean-exposition

- name: Build exposition binary
run: |
cd /tmp/lean-exposition && lake build exposition
echo "EXPOSITION_BIN=/tmp/lean-exposition/.lake/build/bin/exposition" >> "$GITHUB_ENV"

- name: Build exposition documentation
run: |
lake env "$EXPOSITION_BIN" \
--root LeanMachineLearning \
--repo-url https://github.com/LeanMachineLearning/LML \
--output ./exposition \
--exclude-lib LMLTutorial
mkdir -p home_page/exposition
cp -r exposition/html-multi/* home_page/exposition

- name: Compile blueprint and documentation
uses: leanprover-community/docgen-action@7b5b9a1822650bd45aaeb4182d94bceba2030f89 # 2026-04-14
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ blueprint/src/web.pdf

## Website
/home_page/
/exposition/

## Tutorial and docs
/LMLTutorial/.lake/
Expand Down
4 changes: 0 additions & 4 deletions LMLDocs.lean

This file was deleted.

19 changes: 0 additions & 19 deletions LMLDocs/Docs.lean

This file was deleted.

23 changes: 0 additions & 23 deletions LMLDocs/Front.lean

This file was deleted.

130 changes: 0 additions & 130 deletions LMLDocs/Pages/BasicProbability.lean

This file was deleted.

17 changes: 0 additions & 17 deletions LMLDocs/References.lean

This file was deleted.

Binary file removed LMLDocs/static_files/LigaMenlo-Regular.ttf
Binary file not shown.
1 change: 0 additions & 1 deletion LMLDocs/static_files/favicon.svg

This file was deleted.

23 changes: 0 additions & 23 deletions LMLDocs/static_files/scripts.js

This file was deleted.

57 changes: 0 additions & 57 deletions LMLDocs/static_files/style.css

This file was deleted.

5 changes: 5 additions & 0 deletions LMLTutorial/Front.lean
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/-
Copyright (c) 2026 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import LMLTutorial.Pages.BasicProbability
import LMLTutorial.Pages.DefiningAlgorithm
import LMLTutorial.Pages.Installation
Expand Down
9 changes: 8 additions & 1 deletion LMLTutorial/Tutorial.lean
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/-
Copyright (c) 2026 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import VersoManual

import LMLTutorial.Front

set_option linter.style.header false
set_option linter.style.setOption false

open Verso.Genre.Manual Verso.Output.Html

def extraHead : Array Verso.Output.Html := #[
Expand Down
1 change: 1 addition & 0 deletions LMLTutorial/static_files/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
--accent-compl: #e8a0a0;
--background: #fef9f9;
--background-lighter: #fefcfc;
--verso-content-max-width: 60rem;
}

@font-face {
Expand Down
Loading