Skip to content

Commit

Permalink
Host PDF on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
bespoyasov committed Jul 5, 2024
1 parent a5f6d14 commit e726dbb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file renamed public/solid-book.pdf → book.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class Footer extends PureComponent {
</span>

<span>
<BookLink href="/solid-book.pdf">Скачать в PDF</BookLink>
<BookLink href="https://github.com/bespoyasov/solidbook/blob/master/book.pdf">Скачать в PDF</BookLink>
<GithubLink href="https://github.com/bespoyasov/solidbook">Лайкнуть на Github</GithubLink>
</span>
</Container>
Expand Down
2 changes: 1 addition & 1 deletion services/BookBuilder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const run = async () => {
const markdownWithTableOfContents = MdAstTreeAdapter.addTableOfContents(markdownContent)

const pdf = await MarkdownPdfAdapter.markdownToPdf(markdownWithTableOfContents)
writeFileSync('public/solid-book.pdf', pdf.content)
writeFileSync('book.pdf', pdf.content)
process.exit(0)
}

Expand Down

0 comments on commit e726dbb

Please sign in to comment.