diff --git a/docs/_navbar.md b/docs/_navbar.md index e31e905..0248dae 100644 --- a/docs/_navbar.md +++ b/docs/_navbar.md @@ -2,5 +2,5 @@ - [:uk: English](/) - [:cn: 中文](/zh-cn/) - [:de: Deutsch](/de-de/) - - [:es: Spanish](/es/) - - [:ru: Russian](/ru-ru/) + - [:es: Español](/es/) + - [:ru: Русский](/ru-ru/) diff --git a/docs/index.html b/docs/index.html index 0a83d11..4ff52e8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -56,6 +56,14 @@
Loading ...
+ + - #carbonads { - box-shadow: none !important; - width: auto !important; - } - - + +
+ - - - - - - - - - - + plugins: [ + DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'), + 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 if (/jsdelivr\.net/.test(vm.route.file)) { + url = vm.route.file + .replace('cdn.jsdelivr.net/gh', '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' + ); + }); + }, + ], + }; + + + + + + + + + + diff --git a/test/integration/__snapshots__/docs.test.js.snap b/test/integration/__snapshots__/docs.test.js.snap index 98b5089..6210935 100644 --- a/test/integration/__snapshots__/docs.test.js.snap +++ b/test/integration/__snapshots__/docs.test.js.snap @@ -7,6 +7,6 @@ exports[`Docs Site coverpage renders and is unchanged 1`] = ` Getting Started

" `; -exports[`Docs Site navbar renders and is unchanged 1`] = `""`; +exports[`Docs Site navbar renders and is unchanged 1`] = `""`; exports[`Docs Site sidebar renders and is unchanged 1`] = `""`;