Skip to content

Commit 6643bf9

Browse files
natolambertclaude
andauthored
Clean up root files: gitignore, favicon, pyproject (#222)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1f5a679 commit 6643bf9

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ arxiv_check_results.json
1818
.claude
1919

2020
# Python/uv
21+
.python-version
2122
uv.lock
2223
code/uv.lock
2324
__pycache__/

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,14 @@ $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf: $(PDF_DEPENDENCIES)
207207
$(CONTENT) | $(CONTENT_FILTERS) | $(PANDOC_COMMAND) $(ARGS) $(PDF_ARGS) --resource-path=book -o $@
208208
$(ECHO_BUILT)
209209

210-
# copy faveicon.ico to build/ and into build/c/ with bash commands
210+
# copy favicon.ico to build/ and into build/c/ with bash commands
211211
# also copy from build/pdf/book.pdf into build/html/
212212
# then copy images dir to build/html/chapters/
213213
files:
214-
test -f favicon.ico || (echo "favicon.ico not found" && exit 1)
214+
test -f book/favicon.ico || (echo "book/favicon.ico not found" && exit 1)
215215
mkdir -p $(BUILD)/html/c/
216-
cp favicon.ico $(BUILD)/html/ || echo "Failed to copy to $(BUILD)/html/"
217-
cp favicon.ico $(BUILD)/html/c/ || echo "Failed to copy to $(BUILD)/html/c/"
216+
cp book/favicon.ico $(BUILD)/html/ || echo "Failed to copy to $(BUILD)/html/"
217+
cp book/favicon.ico $(BUILD)/html/c/ || echo "Failed to copy to $(BUILD)/html/c/"
218218
cp -R book/preorder $(BUILD)/html/ || echo "Failed to copy preorder static pages"
219219
cp $(BUILD)/pdf/book.pdf $(BUILD)/html/ || echo "Failed to copy to $(BUILD)/html/"
220220
cp $(BUILD)/epub/book.epub $(BUILD)/html/ || echo "Failed to copy EPUB to $(BUILD)/html/"
File renamed without changes.

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
# Root pyproject.toml - for diagram generation and book build scripts
2+
# Note: code/ has its own pyproject.toml for ML dependencies
13
[project]
24
name = "rlhf-book"
35
version = "0.1.0"
4-
description = "RLHF Book build scripts"
6+
description = "RLHF Book - diagrams and build scripts"
57
requires-python = ">=3.11,<3.14"
68
dependencies = [
9+
# Diagram generation (diagrams/)
710
"google-generativeai>=0.8.6",
811
"matplotlib>=3.10.8",
912
"transformers>=4.57.5",
13+
# Library data generation (book/scripts/generate_library.py)
14+
"datasets>=2.19.0",
1015
]

0 commit comments

Comments
 (0)