Skip to content

Commit

Permalink
feat: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bellstrand committed Sep 27, 2024
1 parent 458274b commit 126188e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# MTG Draft PDF's

## Download links
[Duskmourn: House of Horrors](https://github.com/bellstrand/mtg-draft-pdf/releases/latest/download/Duskmourn-House-of-Horrors-Draft.pdf)<br />
[Bloomburrow](https://github.com/bellstrand/mtg-draft-pdf/releases/latest/download/Bloomburrow-Draft.pdf)<br />
[Modern Horizon 3](https://github.com/bellstrand/mtg-draft-pdf/releases/latest/download/Modern-Horizon-3-Draft.pdf)<br />
[Outlaws of Thunder Junction](https://github.com/bellstrand/mtg-draft-pdf/releases/latest/download/Outlaws-of-Thunder-Junction-Draft.pdf)<br />
[Murders at Karlov Manor](https://github.com/bellstrand/mtg-draft-pdf/releases/latest/download/Murders-at-Karlov-Manor-Draft.pdf)<br />
[Kamigawa: Neon Dynasty](https://github.com/bellstrand/mtg-draft-pdf/releases/latest/download/Kamigawa-Neon-Dynasty-Draft.pdf)<br />
[Lord of the Rings](https://github.com/bellstrand/mtg-draft-pdf/releases/latest/download/Lord-of-the-Rings-Draft.pdf)<br />
[Zendikar Rising](https://github.com/bellstrand/mtg-draft-pdf/releases/latest/download/Zendikar-Rising-Draft.pdf)<br />
[Innistrad: Crimson Vow](https://github.com/bellstrand/mtg-draft-pdf/releases/latest/download/Innistrad-Crimson-Vow-Draft.pdf)<br />
2 changes: 1 addition & 1 deletion generate-pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function generate() {
await page.waitForLoadState("domcontentloaded")
await page.waitForLoadState("networkidle")

const title = (await page.title()).replaceAll(":", " ").replaceAll(" ", "-")
const title = (await page.title()).replaceAll(":", "").replaceAll(" ", "-").replaceAll("[", "").replaceAll("]", "")

await page.pdf({
path: `./storage/${title}.pdf`,
Expand Down

0 comments on commit 126188e

Please sign in to comment.