Find a file
2022-08-09 11:06:48 -04:00
.github/workflows Update notion-git.yml 2022-07-25 17:05:20 -04:00
content Notion - Update docs 2022-08-08 19:59:13 +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 add p5-web-editor examples fetching in the import script 2022-08-08 15:19:14 -04:00
src fit code style 2022-08-09 11:06:48 -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 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 embed examples in gatsby site 2022-08-08 15:56:08 -04:00
package.json embed examples in gatsby site 2022-08-08 15:56:08 -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 header 2022-08-09 10:36:45 -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