Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Lambert committed May 24, 2024
1 parent 4b0044c commit f7597b7
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 14 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# build/
# images copied within build/ dir
# Build files
build/**/*.png
build/docx/
build/epub/
build/pdf/

# Misc
*.log
.DS_Store
**/.DS_Store
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ html: $(BUILD)/html/$(OUTPUT_FILENAME_HTML).html nested_html
nested_html: $(CHAPTER_HTMLS)
$(ECHO_BUILT)

# pdf: $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf
pdf: $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf

docx: $(BUILD)/docx/$(OUTPUT_FILENAME).docx

Expand Down Expand Up @@ -142,8 +142,8 @@ $(BUILD)/html/$(OUTPUT_FILENAME_HTML).html: nested_html
$(COPY_CMD) $(IMAGES) $(BUILD)/html/
@echo "Main HTML index built"

# $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf: $(PDF_DEPENDENCIES)
# $(ECHO_BUILDING)
# $(MKDIR_CMD) $(BUILD)/pdf
# $(CONTENT) | $(CONTENT_FILTERS) | $(PANDOC_COMMAND) $(ARGS) $(PDF_ARGS) -o $@
# $(ECHO_BUILT)
$(BUILD)/pdf/$(OUTPUT_FILENAME).pdf: $(PDF_DEPENDENCIES)
$(ECHO_BUILDING)
$(MKDIR_CMD) $(BUILD)/pdf
$(CONTENT) | $(CONTENT_FILTERS) | $(PANDOC_COMMAND) $(ARGS) $(PDF_ARGS) -o $@
$(ECHO_BUILT)
1 change: 0 additions & 1 deletion build/html/c/01-introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<title>Reinforcement Learning from Human Feedback</title>
<style>
html {
font-family: DejaVu Sans;
color: #1a1a1a;
background-color: #fdfdfd;
}
Expand Down
1 change: 0 additions & 1 deletion build/html/c/02-installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<title>Reinforcement Learning from Human Feedback</title>
<style>
html {
font-family: DejaVu Sans;
color: #1a1a1a;
background-color: #fdfdfd;
}
Expand Down
1 change: 0 additions & 1 deletion build/html/c/03-usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<title>Reinforcement Learning from Human Feedback</title>
<style>
html {
font-family: DejaVu Sans;
color: #1a1a1a;
background-color: #fdfdfd;
}
Expand Down
1 change: 0 additions & 1 deletion build/html/c/04-references.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<title>Reinforcement Learning from Human Feedback</title>
<style>
html {
font-family: DejaVu Sans;
color: #1a1a1a;
background-color: #fdfdfd;
}
Expand Down
10 changes: 9 additions & 1 deletion build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<title>Reinforcement Learning from Human Feedback</title>
<style>
html {
font-family: DejaVu Sans;
color: #1a1a1a;
background-color: #fdfdfd;
}
Expand Down Expand Up @@ -614,5 +613,14 @@ <h2>Contents</h2>
</div>
</header>
<body>
<footer style="padding: 20px; text-align: center;">
<div>
<a href="https://github.com/natolambert/rlhf-book" target="_blank">
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub" style="width: 40px; height: 40px;">
</a>
<!-- Add more social links here -->
</div>
<p>&copy; 2024 RLHF Book Team</p>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract: |
Covering the core topics, from history of preferences, to early work in language models, to
future frontiers with Direct Preference Learning (DPO) and everything that follows.
Built iteratively, web first, with purcase available when completed.
mainfont: DejaVu Sans
# mainfont: DejaVu Sans # not available on Mac
Filter preferences:
- pandoc-crossref
linkReferences: true
Expand Down
9 changes: 9 additions & 0 deletions templates/html.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,14 @@ <h2>Contents</h2>
</header>
$endif$
<body>
<footer style="padding: 20px; text-align: center;">
<div>
<a href="https://github.com/natolambert/rlhf-book" target="_blank">
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub" style="width: 40px; height: 40px;">
</a>
<!-- Add more social links here -->
</div>
<p>&copy; 2024 RLHF Book Team</p>
</footer>
</body>
</html>

0 comments on commit f7597b7

Please sign in to comment.