Find a file
2022-08-25 15:57:04 -04:00
.github/workflows Update notion-git.yml 2022-07-25 17:05:20 -04:00
content Notion - Update docs 2022-08-22 19:00:22 +00:00
gatsby clean up 2022-07-29 09:05:15 -04:00
magicbook add magicbook for the pdf build 2022-07-20 15:35:18 -04:00
scripts save the example files as its name instead of the slug generated by p5 editor 2022-08-22 14:58:15 -04:00
src update layout styles / separate components 2022-08-25 15:57:04 -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 codesplit support 2022-08-17 22:02:53 -04:00
gatsby-config.js add local images handling in gatsby 2022-07-28 21:29:28 -04:00
gatsby-node.js embed examples in gatsby site 2022-08-08 15:56:08 -04:00
magicbook.json add images fetching 2022-07-26 22:16:43 -04:00
package-lock.json save the example files as its name instead of the slug generated by p5 editor 2022-08-22 14:58:15 -04:00
package.json save the example files as its name instead of the slug generated by p5 editor 2022-08-22 14:58:15 -04:00
postcss.config.js add codesplit support 2022-08-17 22:02:53 -04:00
README.md adding a note to README 2022-07-22 11:21:32 -04:00
tailwind.config.js update layout styles / separate components 2022-08-25 15:57:04 -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