lvwerra HF Staff commited on
Commit
83a9825
Β·
verified Β·
1 Parent(s): bb10dc1

book: single export button (Save as PDF / Print, always current); drop the pre-rendered snapshot PDF

Browse files
Files changed (2) hide show
  1. app.js +3 -4
  2. rl-llm-wiki-book.pdf +0 -3
app.js CHANGED
@@ -592,8 +592,8 @@ function toggleTreeCat(cat) {
592
 
593
  /* ── BOOK VIEW (#/book) β€” the whole wiki as one printable document ─────────
594
  Browser "Save as PDF" (or the pre-rendered download) turns this into a book:
595
- title page β†’ contents β†’ parts (categories) β†’ articles β†’ sources appendix. */
596
- const BOOK_PDF_URL = 'rl-llm-wiki-book.pdf'; // pre-rendered snapshot hosted alongside the app
597
  async function renderBook() {
598
  layoutAside(false);
599
  setView('<div class="loading"><div class="spinner"></div><span id="bkProg">assembling the book…</span></div>');
@@ -652,8 +652,7 @@ async function renderBook() {
652
  <div class="book-toolbar" role="toolbar">
653
  <a class="btn" href="#/">← back to the wiki</a>
654
  <span class="spacer"></span>
655
- <span class="bk-hint">Tip: β€œSave as PDF” in the print dialog for the full book.</span>
656
- <a class="btn" href="${esc(BOOK_PDF_URL)}" target="_blank" rel="noopener" id="bkDownload">download PDF ↓</a>
657
  <button class="btn btn-sources" id="bkPrint">Save as PDF / Print</button>
658
  </div>
659
  <div class="book" id="book">
 
592
 
593
  /* ── BOOK VIEW (#/book) β€” the whole wiki as one printable document ─────────
594
  Browser "Save as PDF" (or the pre-rendered download) turns this into a book:
595
+ title page β†’ contents β†’ parts (categories) β†’ articles β†’ sources appendix.
596
+ The single export path is the browser's "Save as PDF" (always current). */
597
  async function renderBook() {
598
  layoutAside(false);
599
  setView('<div class="loading"><div class="spinner"></div><span id="bkProg">assembling the book…</span></div>');
 
652
  <div class="book-toolbar" role="toolbar">
653
  <a class="btn" href="#/">← back to the wiki</a>
654
  <span class="spacer"></span>
655
+ <span class="bk-hint">Choose β€œSave as PDF” in the print dialog for the full book.</span>
 
656
  <button class="btn btn-sources" id="bkPrint">Save as PDF / Print</button>
657
  </div>
658
  <div class="book" id="book">
rl-llm-wiki-book.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b7e68748637a27a58e3299855cdfe0481c91a2c3f769a372ffb4a35fb0b1141f
3
- size 5074238