JoshOrndorff / recipes

A Hands-On Cookbook for Aspiring Blockchain Chefs
GNU General Public License v3.0
378 stars 187 forks source link

Stop copying code #138

Open JoshOrndorff opened 4 years ago

JoshOrndorff commented 4 years ago

Currently every recipe has large blocks of code duplicated from the kitchen. mdbook has a feature to include files from source either by line number or anchor lines. Update the recipes to use this feature.

JoshOrndorff commented 4 years ago

It is likely that the recipes will be rendered using Gatsby in the future. The plugin should allow a gatsby site to include code snippets without copying https://www.gatsbyjs.org/packages/gatsby-remark-embed-snippet/#lx-y---embed-a-range-of-lines-from-a-file