Skip to content

Commit

Permalink
file management
Browse files Browse the repository at this point in the history
  • Loading branch information
natolambert committed Aug 12, 2024
1 parent cc45159 commit 9725965
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Build book
run: |
make
make favicon
make files
# pages deploy steps
- name: Setup Pages
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf: $(PDF_DEPENDENCIES)
$(ECHO_BUILT)

# copy faveicon.ico to build/ and into build/c/ with bash commands
favicon:
# also copy from build/pdf/book.pdf into build/html/
files:
test -f favicon.ico || (echo "favicon.ico not found" && exit 1)
mkdir -p $(BUILD)/html/c/
cp favicon.ico $(BUILD)/html/ || echo "Failed to copy to $(BUILD)/html/"
cp favicon.ico $(BUILD)/html/c/ || echo "Failed to copy to $(BUILD)/html/c/"
cp favicon.ico $(BUILD)/html/c/ || echo "Failed to copy to $(BUILD)/html/c/"
cp $(BUILD)/pdf/book.pdf $(BUILD)/html/ || echo "Failed to copy to $(BUILD)/html/"
2 changes: 1 addition & 1 deletion templates/chapter.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class="title">$title$</h1>
<ul>
<li><a href="https://rlhfbook.com">Home</a></li>
<li><a href="https://github.com/natolambert/rlhf-book">GitHub Repository</a></li>
<li>PDF (Soon)</li>
<li><a href="https://rlhfbook.com/book.pdf"></li>
<li>Order a copy (Soon)</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/html.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class="title">$title$</h1>
<ul>
<li><a href="https://rlhfbook.com">Home</a></li>
<li><a href="https://github.com/natolambert/rlhf-book">GitHub Repository</a></li>
<li>PDF (Soon)</li>
<li><a href="https://rlhfbook.com/book.pdf"></li>
<li>Order a copy (Soon)</li>
</ul>
</div>
Expand Down

0 comments on commit 9725965

Please sign in to comment.