diff --git a/docs/index.html b/docs/index.html index 4845ed188..53da216a3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -105,7 +105,9 @@ colorize.push(currentCodeExample); return '
' + escapeHTML(code) + '
'; } else if (lang === 'mermaid') { - return '
' + mermaid.render('mermaid-svg-' + num++, code) + '
'; + return ( + '
' + mermaid.render('mermaid-svg-' + num++, code) + '
' + ); } return this.origin.code.apply(this, arguments); }, @@ -120,7 +122,7 @@ plugins: [ function (hook, vm) { hook.beforeEach(function (html) { - url = 'https://github.com/mermaid-js/mermaid/blob/develop/docs/' + vm.route.file; + url = 'https://github.com/mermaid-js/mermaid/blob/develop/src/docs/' + vm.route.file; var editHtml = '[:memo: Edit this Page](' + url + ')\n'; return editHtml + html; }); @@ -131,7 +133,8 @@ while (!window.hasOwnProperty('monaco')) await new Promise((resolve) => setTimeout(resolve, 1000)); colorizeEverything(html).then( - (newHTML) => (document.querySelector('article.markdown-section').innerHTML = newHTML) + (newHTML) => + (document.querySelector('article.markdown-section').innerHTML = newHTML) ); })(); }); diff --git a/src/docs/index.html b/src/docs/index.html index 4845ed188..fe54ad79e 100644 --- a/src/docs/index.html +++ b/src/docs/index.html @@ -120,7 +120,7 @@ plugins: [ function (hook, vm) { hook.beforeEach(function (html) { - url = 'https://github.com/mermaid-js/mermaid/blob/develop/docs/' + vm.route.file; + url = 'https://github.com/mermaid-js/mermaid/blob/develop/src/docs/' + vm.route.file; var editHtml = '[:memo: Edit this Page](' + url + ')\n'; return editHtml + html; });