Skip to content

Commit bcc2ab1

Browse files
committed
ディレクトリ名変更: ExamplesLeanByExample
1 parent e2c9f83 commit bcc2ab1

File tree

178 files changed

+17
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+17
-14
lines changed

.github/CONTRIBUTING.md

+2-2

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"material-icon-theme.folders.associations": {
3737
"booksrc": "markdown",
3838
"Command": "",
39-
"Examples": "Content",
39+
"LeanByExample": "Content",
4040
"Option": "",
4141
},
4242

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

assets/filePlay.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ function filePlay() {
1414
// 拡張子が `.md` になっているので `.lean` に修正する
1515
editButtonLink.href = editButtonLink.href.replace(/\.md$/, ".lean");
1616

17-
// Lean ファイルがあるのは `booksrc` ではなく `Examples` ディレクトリ
18-
editButtonLink.href = editButtonLink.href.replace("/booksrc/", "/Examples/");
17+
// Lean ファイルがあるのは `booksrc` ではなく `LeanByExample` ディレクトリ
18+
editButtonLink.href = editButtonLink.href.replace(
19+
"/booksrc/",
20+
"/LeanByExample/",
21+
);
1922

20-
// 演習問題のファイルのみ、`Examples` ディレクトリではなくて `Exercise` ディレクトリにある
23+
// 演習問題のファイルのみ、`LeanByExample` ディレクトリではなくて `Exercise` ディレクトリにある
2124
editButtonLink.href = editButtonLink.href.replace(
22-
"/Examples/Exercise/",
25+
"/LeanByExample/Exercise/",
2326
"/Exercise/",
2427
);
2528

lakefile.lean

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ require mathlib from git
2121
"https://github.com/leanprover-community/mathlib4.git" @ "master"
2222

2323
@[default_target]
24-
lean_lib Examples where
24+
lean_lib LeanByExample where
2525
-- `lake build` の実行時にビルドされるファイルの設定
2626
-- `.submodules` と指定すると、そのディレクトリ以下の全ての Lean ファイルがビルドされる
27-
globs := #[.submodules `Examples]
27+
globs := #[.submodules `LeanByExample]
2828

2929
section Script
3030

@@ -46,7 +46,7 @@ def runCmd (input : String) : IO Unit := do
4646
/-- mk_exercise を実行し、演習問題の解答に
4747
解答部分を sorry に置き換えるなどの処理を施して演習問題ファイルを生成する。-/
4848
script mk_exercise do
49-
runCmd "lake exe mk_exercise Examples/Solution Exercise"
49+
runCmd "lake exe mk_exercise LeanByExample/Solution Exercise"
5050
return 0
5151

5252
syntax (name := with_time) "with_time" "running" str doElem : doElem
@@ -65,10 +65,10 @@ Lean ファイルから Markdown ファイルと HTML ファイルを生成す
6565
script build do
6666
-- `lake run mk_exercise` を使用すると遅くなってしまうのでコピペしている
6767
with_time running "mk_exercise"
68-
runCmd "lake exe mk_exercise Examples/Solution Exercise"
68+
runCmd "lake exe mk_exercise LeanByExample/Solution Exercise"
6969

7070
with_time running "mdgen"
71-
runCmd "lake exe mdgen Examples booksrc";
71+
runCmd "lake exe mdgen LeanByExample booksrc";
7272
runCmd "lake exe mdgen Exercise booksrc/Exercise"
7373

7474
with_time running "mdbook"

scripts/Build.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
lake を介することで実行が遅くなってしまうので、
44
lake を介することなく実行ファイルを直接叩く。 #>
55

6-
./.lake/packages/mk-exercise/.lake/build/bin/mk_exercise.exe Examples/Solution Exercise
6+
./.lake/packages/mk-exercise/.lake/build/bin/mk_exercise.exe LeanByExample/Solution Exercise
77

88
./.lake/packages/mdgen/.lake/build/bin/mdgen.exe Exercise booksrc/Exercise
9-
./.lake/packages/mdgen/.lake/build/bin/mdgen.exe Examples booksrc
9+
./.lake/packages/mdgen/.lake/build/bin/mdgen.exe LeanByExample booksrc
1010

1111
mdbook build

0 commit comments

Comments
 (0)