diff --git a/docs/api-docs.html b/docs/api-docs.html index dfb65fe9b5..02dd537388 100644 --- a/docs/api-docs.html +++ b/docs/api-docs.html @@ -33,6 +33,9 @@ .search a { color: #c5ccd4 !important; } + .sidebar li > p { + color: #ffe301; + }
@@ -43,10 +46,11 @@ repo: "https://github.com/water111/jak-project", basePath: "./markdown/", loadSidebar: true, - subMaxLevel: 2, + subMaxLevel: 3, logo: "./markdown/imgs/logo-text-colored.png", + notFoundPage: true, + auto2top: true, search: "auto", // default - // complete configuration parameters search: { maxAge: 86400000, // Expiration time, the default one day @@ -57,10 +61,38 @@ depth: 6, hideOtherSidebarContent: false, // whether or not to hide other sidebar content }, + plugins: [ + function(hook, vm) { + hook.beforeEach(function(html) { + if (/githubusercontent\.com/.test(vm.route.file)) { + url = vm.route.file + .replace('raw.githubusercontent.com', 'github.com') + .replace(/\/master/, '/blob/master'); + } else { + url = + 'https://github.com/water111/jak-project/blob/master/docs' + + vm.route.file; + } + var editHtml = '[:memo: Edit Document](' + url + ')\n'; + return ( + editHtml + + html + ); + }) + }, + ], }; + + + + + + + +