; (function (win) { win.EditOnGithubPlugin = {} function create(docBase) { var docEditBase = docBase.replace(/\/blob\//, '/edit/') return function (hook, vm) { hook.afterEach(function (html) { var url = docBase var docName = vm.route.file if (docName) { url = docEditBase + docName } var header = [ '', 'Edit on GitHub', '' ].join('') return html + header }) } } win.EditOnGithubPlugin.create = create })(window)