(function($){

	var jWindow = $(window);

	Docbase.run({
	  method: 'github',
	  path: 'src',
	  map: {
	      file: 'map.json',
	      path: '/'
	  },
	  github: {
	    user: 'appbaseio',
	    repo: 'Docs',
	    path: 'src',
	    branch: 'master'
	  },
	  file: {
	      src: 'map.json',
	      path: 'src'
	  },
	  indexType: 'markdown',
	  indexSrc: 'v2.0/javascript/quick-start',
	  editGithubBtn: true,
	  html5mode: false,
	  flatdocHtml: 'html/flatdoc.html',
	  angularAppName: 'docbaseApp'

	});

	jWindow.on('docbase:ready', function(){
		$("blockquote>pre:has(code.lang-curl)").each(function() {
		  $(this).parent().css({"float": "left",
		                         "width": "510px",
		                         "margin-left": "20px",
		                         "margin-right": "20px",
		                         "color": "#333"});
		  $(this).css({"padding": "10px"});
		});
	});

})(window.jQuery);

(function($){

	var jWindow = $(window);

	Docbase.run({
	  method: 'github',
	  path: 'src',
	  map: {
	      file: 'map.json',
	      path: '/'
	  },
	  github: {
	    user: 'appbaseio',
	    repo: 'Docs',
	    path: 'src',
	    branch: 'gh-pages'
	  },
	  file: {
	      src: 'map.json',
	      path: 'src'
	  },
	  indexType: 'markdown',
	  indexSrc: 'v2.0/javascript/quick-start',
	  editGithubBtn: true,
	  html5mode: false,
	  flatdocHtml: 'html/flatdoc.html',
	  angularAppName: 'docbaseApp'

	});

	jWindow.on('docbase:ready', function(){
		$("blockquote>pre:has(code.lang-curl)").each(function() {
		  $(this).parent().css({"float": "left",
		                         "width": "510px",
		                         "margin-left": "20px",
		                         "margin-right": "20px",
		                         "color": "#333"});
		  $(this).css({"padding": "10px"});
		});
	});

})(window.jQuery);

use gh-pages branch for the edit github link on docs