From 2b05e328ddcd8b3b77d80f4142e8ce7feb6424ee Mon Sep 17 00:00:00 2001 From: anikethsaha Date: Sun, 23 Feb 2020 01:07:23 +0530 Subject: [PATCH] chore: added dark-mode for docs --- docs/index.html | 243 +++++++++++++++++++++++++++++------------------- 1 file changed, 146 insertions(+), 97 deletions(-) diff --git a/docs/index.html b/docs/index.html index 55c02fa14..5a335a33a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,104 +1,153 @@ + + + docsify + + + + + + + + + + + + + + - - - docsify - - - - - - - - - - - - - - - -
Loading ...
- - - - - - - - - - - - + formatUpdated: '{MM}/{DD} {HH}:{mm}', + 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/docsifyjs/docsify/blob/master/docs/' + + vm.route.file + } + var editHtml = '[:memo: Edit Document](' + url + ')\n' + return ( + editHtml + + html + + '\n\n----\n\n' + + 'Powered by docsify' + ) + }) + }, + DocsifyCodefund.create('fae1f9a4-870c-4c25-b8e0-c80464f7a95c') + ] + } + + + + + + + + + + + +