Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build PDF through Nix + Deploy to Github Pages #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

srid
Copy link

@srid srid commented Nov 5, 2022

  • Add a flake.nix => can use nix build to build the PDF locally.
  • This PDF in turn is deployed to Github Pages via Github Actions.

The PDF built in CI for this PR can be found here: https://srid.github.io/DaoFP/DaoFP.pdf

Once merged, the generated PDF will instead by available at https://BartoszMilewski.github.io/DaoFP/DaoFP.pdf (assuming Github Pages is enabled in the repository settings).

Things to do:

  • Figure out why ToC is missing from the PDF

Eventually, we can add a package for building the ePub too; #9

@srid srid marked this pull request as ready for review November 5, 2022 20:42
@srid
Copy link
Author

srid commented Nov 5, 2022

@BartoszMilewski This PR is ready. It generates the PDF in CI and then deploys them to GitHub Pages. If you merge this PR and enable "GitHub Pages" (pointing to the gh-pages branch; see screenshot below) in repository settings, the PDF will be available at https://BartoszMilewski.github.io/DaoFP/DaoFP.pdf ... and it will automatically update (within ~5-10 minutes) as you push commits to the master branch.

Let me know what you think. Support for ePub can be added on top separately.

image

@madnight
Copy link

@BartoszMilewski Any updates on this? I'm particularly interested in an epub version of DaoFP similar to the epub version of "Category theory for programmers".

@BartoszMilewski
Copy link
Owner

I don't feel like the book is ready for that. I'm still rewriting chapters, and I only push the changes when I have something solid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants