var fs = require('fs')
var path = require('path')

var codeBlocks = document.querySelectorAll('code[data-path]')
Array.prototype.forEach.call(codeBlocks, function (code) {
  code.textContent = fs.readFileSync(path.join(__dirname, code.dataset.path))
})

var fs = require('fs')
var path = require('path')

var codeBlocks = document.querySelectorAll('code[data-path]')
Array.prototype.forEach.call(codeBlocks, function (code) {
  var codePath = code.dataset.path
  code.textContent = fs.readFileSync(path.join(__dirname, '..', codePath))
})

Use new path based on changed __dirname
Use new path based on changed __dirname
