Skip to content
Permalink
Browse files
use cdn for element UI, vue in doc.
  • Loading branch information
pissang committed Aug 10, 2020
1 parent 39516cc commit 5d3dbdc447cb81334d0a264c4742adf69eca4907
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
@@ -7,6 +7,7 @@ block extra_head
/* position: sticky should not have overflow parents.*/
overflow-x: hidden;
}
link(rel="stylesheet", href="#{cdnThirdParty.elementUICSS}")
link(rel="stylesheet", href="#{cdnPayRoot}/#{ecWWWLang}/css/doc-bundle.css?_v_=#{homeVersion}")

block content
@@ -39,6 +40,13 @@ block content
#ec-doc-main

block extra_js
script(src="#{cdnThirdParty.vueJS}")
script(src="#{cdnThirdParty.elementUIJS}")
script(src="#{cdnThirdParty.codeMirrorJS}")
script(src="#{cdnThirdParty.codeMirrorJSModeJS}")
script(src="#{cdnThirdParty.beautifierJS}")
script(src="#{cdnPayRoot}/#{ecWWWLang}/js/doc-bundle.js?_v_=#{homeVersion}")
script(src="#{cdnPayRoot}/#{ecWWWLang}/js/doc-bundle.js?_v_=#{homeVersion}")
script(src="#{cdnPayRoot}/#{ecWWWLang}/js/doc-bundle.js?_v_=#{homeVersion}")
script(type="text/javascript").
window.EC_WWW_CDN_PAY_ROOT = '#{cdnPayRoot}';
@@ -16,6 +16,14 @@ module.exports = {
// prettifyCSS: 'https://cdn.jsdelivr.net/npm/code-prettify@0.1.0/styles/doxy.css',
prettifyCSSHandlerJS: 'https://cdn.jsdelivr.net/npm/code-prettify@0.1.0/src/lang-css.js',
jqueryLazyloadJS: 'https://cdn.jsdelivr.net/npm/jquery-lazyload@1.9.7/jquery.lazyload.min.js',

// CDN for doc
vueJS: 'https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js',
elementUIJS: 'https://cdn.jsdelivr.net/npm/element-ui@2.13.2/lib/index.js',
elementUICSS: 'https://cdn.jsdelivr.net/npm/element-ui@2.13.2/lib/theme-chalk/index.css',
codeMirrorJS: 'https://cdn.jsdelivr.net/npm/codemirror@5.56.0/lib/codemirror.min.js',
codeMirrorJSModeJS: 'https://cdn.jsdelivr.net/npm/codemirror@5.56.0/mode/javascript/javascript.js',
beautifierJS: 'https://cdn.jsdelivr.net/npm/js-beautify@1.11.0/js/lib/beautifier.min.js',
},

// Source folder of echarts

0 comments on commit 5d3dbdc

Please sign in to comment.