Find a file
2022-07-26 15:25:53 -04:00
.github/workflows Update notion-git.yml 2022-07-25 17:05:20 -04:00
gatsby simplified gatsby sourcing 2022-07-26 15:25:53 -04:00
magicbook add magicbook for the pdf build 2022-07-20 15:35:18 -04:00
scripts simplified gatsby sourcing 2022-07-26 15:25:53 -04:00
src simplified gatsby sourcing 2022-07-26 15:25:53 -04:00
.env.example update import script 2022-07-20 15:22:10 -04:00
.gitignore add gatsby & tailwind 2022-07-20 21:39:22 -04:00
.prettierrc Create .prettierrc 2022-04-04 16:40:23 -04:00
gatsby-browser.js add gatsby & tailwind 2022-07-20 21:39:22 -04:00
gatsby-config.js simplified gatsby sourcing 2022-07-26 15:25:53 -04:00
gatsby-node.js simplified gatsby sourcing 2022-07-26 15:25:53 -04:00
magicbook.json add magicbook for the pdf build 2022-07-20 15:35:18 -04:00
package-lock.json simplified gatsby sourcing 2022-07-26 15:25:53 -04:00
package.json simplified gatsby sourcing 2022-07-26 15:25:53 -04:00
postcss.config.js add gatsby & tailwind 2022-07-20 21:39:22 -04:00
README.md adding a note to README 2022-07-22 11:21:32 -04:00
tailwind.config.js add gatsby & tailwind 2022-07-20 21:39:22 -04:00

The Nature of Code 2nd Edition

This repo contains all the files for the Nature of Code 2nd edition. The book is now being authored in Notion and imported here as raw HTML files (which are then used to build the print PDF and gatsby website).

Following are the steps to build the book and website, however, you will have to skip the import-notion-docs as that can only be done with the Notion API key associated with the book. You can find the latest HTML version of the book in /content.

# Install Dependencies
npm install

# Import Notion Pages
npm run import-notion-docs

# Build PDF (Magicbook)
npm run build:pdf

# Build Website
npm run build