Find a file
2022-09-30 15:32:36 -04:00
.github/workflows Update notion-git.yml 2022-07-25 17:05:20 -04:00
content Notion - Update docs 2022-09-01 15:11:20 +00:00
gatsby parse html in bootstrap period 2022-08-28 22:14:36 -04:00
magicbook add magicbook for the pdf build 2022-07-20 15:35:18 -04:00
scripts refactored import script with separated handlers 2022-09-30 15:32:36 -04:00
src floating images 2022-09-01 16:08:45 -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