From b3a36fecf07c3a908c5143c0c91c454232ad27b3 Mon Sep 17 00:00:00 2001 From: Gitshaoxiang <1026025056@qq.com> Date: Wed, 9 Sep 2020 16:10:45 +0800 Subject: [PATCH] change resource url --- docs/assets/js/custom.js | 28 +-- docs/assets/js/custom.min.js | 4 +- docs/en/core/m5stickv.md | 7 + docs/index.html | 2 +- docs/index.md | 386 +++++++++++++++++------------------ docs/index_source.html | 30 +-- docs/zh_CN/README.md | 386 +++++++++++++++++------------------ docs/zh_CN/core/m5stickv.md | 7 + 8 files changed, 432 insertions(+), 418 deletions(-) diff --git a/docs/assets/js/custom.js b/docs/assets/js/custom.js index 4d4b1ced..6d6cea06 100644 --- a/docs/assets/js/custom.js +++ b/docs/assets/js/custom.js @@ -1,17 +1,17 @@ const icon_list = { - "CORE":"http://static-cdn.m5stack.com/image/m5-docs_logo/core.webp", - "MODULE":"http://static-cdn.m5stack.com/image/m5-docs_logo/module.webp", - "BASE":"http://static-cdn.m5stack.com/image/m5-docs_logo/base.webp", - "STICK":"http://static-cdn.m5stack.com/image/m5-docs_logo/stick.webp", - "FACE":"http://static-cdn.m5stack.com/image/m5-docs_logo/base.webp", - "UNIT":"http://static-cdn.m5stack.com/image/m5-docs_logo/unit.webp", - "HAT":"http://static-cdn.m5stack.com/image/m5-docs_logo/hat.webp", - "ATOM":"http://static-cdn.m5stack.com/image/m5-docs_logo/atom.webp", - "APPLICATION":"http://static-cdn.m5stack.com/image/m5-docs_logo/application.webp", - "ACCESSORY":"http://static-cdn.m5stack.com/image/m5-docs_logo/accessory.webp", - "ALUMINIUM":"http://static-cdn.m5stack.com/image/m5-docs_logo/aluminium.webp", - "MINI-UNIT" : "http://static-cdn.m5stack.com/image/m5-docs_logo/mini-unit.webp", + "CORE":"https://static-cdn.m5stack.com/image/m5-docs_logo/core.webp", + "MODULE":"https://static-cdn.m5stack.com/image/m5-docs_logo/module.webp", + "BASE":"https://static-cdn.m5stack.com/image/m5-docs_logo/base.webp", + "STICK":"https://static-cdn.m5stack.com/image/m5-docs_logo/stick.webp", + "FACE":"https://static-cdn.m5stack.com/image/m5-docs_logo/base.webp", + "UNIT":"https://static-cdn.m5stack.com/image/m5-docs_logo/unit.webp", + "HAT":"https://static-cdn.m5stack.com/image/m5-docs_logo/hat.webp", + "ATOM":"https://static-cdn.m5stack.com/image/m5-docs_logo/atom.webp", + "APPLICATION":"https://static-cdn.m5stack.com/image/m5-docs_logo/application.webp", + "ACCESSORY":"https://static-cdn.m5stack.com/image/m5-docs_logo/accessory.webp", + "ALUMINIUM":"https://static-cdn.m5stack.com/image/m5-docs_logo/aluminium.webp", + "MINI-UNIT" : "https://static-cdn.m5stack.com/image/m5-docs_logo/mini-unit.webp", "DESCRIPTION" : "el-icon-s-management", "描述" : "el-icon-s-management", "EASYLOADER":"el-icon-download", @@ -674,10 +674,10 @@ function use_jpg() { }else{ if(pics[i].src.indexOf("assets") != -1) { var path = pics[i].src.substr(pics[i].src.indexOf("assets"),); - pics[i].src = "http://static-cdn.m5stack.com/image/product_jpg/"+path.replace(".webp",".jpg"); + pics[i].src = "https://static-cdn.m5stack.com/image/product_jpg/"+path.replace(".webp",".jpg"); }else if(pics[i].src.indexOf("image/") != -1){ var path = pics[i].src.substr(pics[i].src.indexOf("image"),); - pics[i].src = "http://static-cdn.m5stack.com/image/product_jpg/"+path.replace(".webp",".jpg"); + pics[i].src = "https://static-cdn.m5stack.com/image/product_jpg/"+path.replace(".webp",".jpg"); } } } diff --git a/docs/assets/js/custom.min.js b/docs/assets/js/custom.min.js index 18010059..515be7fd 100644 --- a/docs/assets/js/custom.min.js +++ b/docs/assets/js/custom.min.js @@ -1,4 +1,4 @@ -const icon_list={"CORE":"http://static-cdn.m5stack.com/image/m5-docs_logo/core.webp","MODULE":"http://static-cdn.m5stack.com/image/m5-docs_logo/module.webp","BASE":"http://static-cdn.m5stack.com/image/m5-docs_logo/base.webp","STICK":"http://static-cdn.m5stack.com/image/m5-docs_logo/stick.webp","FACE":"http://static-cdn.m5stack.com/image/m5-docs_logo/base.webp","UNIT":"http://static-cdn.m5stack.com/image/m5-docs_logo/unit.webp","HAT":"http://static-cdn.m5stack.com/image/m5-docs_logo/hat.webp","ATOM":"http://static-cdn.m5stack.com/image/m5-docs_logo/atom.webp","APPLICATION":"http://static-cdn.m5stack.com/image/m5-docs_logo/application.webp","ACCESSORY":"http://static-cdn.m5stack.com/image/m5-docs_logo/accessory.webp","ALUMINIUM":"http://static-cdn.m5stack.com/image/m5-docs_logo/aluminium.webp","MINI-UNIT":"http://static-cdn.m5stack.com/image/m5-docs_logo/mini-unit.webp","DESCRIPTION":"el-icon-s-management","描述":"el-icon-s-management","EASYLOADER":"el-icon-download","EXAMPLE":"el-icon-document-copy","案例程序":"el-icon-document-copy","SCHEMATIC":"el-icon-cpu","原理图":"el-icon-cpu","VIDEO":"el-icon-video-camera-solid","相关视频":"el-icon-video-camera-solid"};var header=new Vue({el:'#header',data:{homepage:'',faq_link:'',case_link:'',i2c_table:'',comparison_table:'',homepage_title:'',faq_title:'',case_title:'',product_list_title:'',language_list_title:'',platform_list_title:'',isCollapse:true,platform:{},activeIndex:'1',pdf_notify:'',anchorList:[],related_products:''},methods:{loading(str){const loading=this.$loading({lock:true,text:str,spinner:'el-icon-loading',background:'rgba(0, 0, 0, 0.7)'});this.loading_target=loading},done(){this.loading_target.close();},handleOpen(key,keyPath){$('#pc_anchor .el-menu-item.is-active').removeClass('is-active')},handleClose(key,keyPath){$('#pc_anchor .el-menu-item.is-active').removeClass('is-active')}},mounted(){this.loading('Loading')}}) +const icon_list={"CORE":"https://static-cdn.m5stack.com/image/m5-docs_logo/core.webp","MODULE":"https://static-cdn.m5stack.com/image/m5-docs_logo/module.webp","BASE":"https://static-cdn.m5stack.com/image/m5-docs_logo/base.webp","STICK":"https://static-cdn.m5stack.com/image/m5-docs_logo/stick.webp","FACE":"https://static-cdn.m5stack.com/image/m5-docs_logo/base.webp","UNIT":"https://static-cdn.m5stack.com/image/m5-docs_logo/unit.webp","HAT":"https://static-cdn.m5stack.com/image/m5-docs_logo/hat.webp","ATOM":"https://static-cdn.m5stack.com/image/m5-docs_logo/atom.webp","APPLICATION":"https://static-cdn.m5stack.com/image/m5-docs_logo/application.webp","ACCESSORY":"https://static-cdn.m5stack.com/image/m5-docs_logo/accessory.webp","ALUMINIUM":"https://static-cdn.m5stack.com/image/m5-docs_logo/aluminium.webp","MINI-UNIT":"https://static-cdn.m5stack.com/image/m5-docs_logo/mini-unit.webp","DESCRIPTION":"el-icon-s-management","描述":"el-icon-s-management","EASYLOADER":"el-icon-download","EXAMPLE":"el-icon-document-copy","案例程序":"el-icon-document-copy","SCHEMATIC":"el-icon-cpu","原理图":"el-icon-cpu","VIDEO":"el-icon-video-camera-solid","相关视频":"el-icon-video-camera-solid"};var header=new Vue({el:'#header',data:{homepage:'',faq_link:'',case_link:'',i2c_table:'',comparison_table:'',homepage_title:'',faq_title:'',case_title:'',product_list_title:'',language_list_title:'',platform_list_title:'',isCollapse:true,platform:{},activeIndex:'1',pdf_notify:'',anchorList:[],related_products:''},methods:{loading(str){const loading=this.$loading({lock:true,text:str,spinner:'el-icon-loading',background:'rgba(0, 0, 0, 0.7)'});this.loading_target=loading},done(){this.loading_target.close();},handleOpen(key,keyPath){$('#pc_anchor .el-menu-item.is-active').removeClass('is-active')},handleClose(key,keyPath){$('#pc_anchor .el-menu-item.is-active').removeClass('is-active')}},mounted(){this.loading('Loading')}}) var zoom_image=new Vue({el:'#zoom_image',data:{url:'',srcList:[],show:false,index:0,rotate:0,width:580,scale:1},methods:{stopScroll(){var mo=function(e){e.preventDefault();};document.body.style.overflow='hidden';document.addEventListener("touchmove",mo,false);},canScroll(){var mo=function(e){e.preventDefault();};document.body.style.overflow='';document.removeEventListener("touchmove",mo,false);},close(){this.show=false;this.index=0;this.rotate=0;this.width=550;this.scale=1;this.canScroll();},next(){if(this.index>=this.srcList.length){this.index=0;}else{this.index++;} this.url=this.srcList[this.index]},prev(){if(this.index<=0){this.index=this.srcList.length-1;}else{this.index--;} this.url=this.srcList[this.index]},left(){this.rotate=this.rotate-90;},right(){this.rotate=this.rotate+90;},zoom_in(){this.width=this.width+50},zoom_out(){this.width=this.width-50},full(){this.width=this.width=800},rollImg(){if(event.wheelDelta>0){this.scale=this.scale+0.05;}else{this.scale=this.scale-0.05;}}},computed:{img_style:function(){return`transition:all 0.2s ease 0s;transform: scale(${this.scale}) rotate(${this.rotate}deg); margin-left: 0px; margin-top: 0px; max-height: 100%; max-width: 100%; width:${this.width}px;`}}}) @@ -53,7 +53,7 @@ window.search_cover.contant_result=[{name:'',url:'',contant:search_cover.search_ function language(language){window.header.loading("loading...");var test=window.location.href;if((test.indexOf(/en/)==-1)&&(test.indexOf(/zh_CN/)==-1)&&(test.indexOf(/ja/)==-1)){var test2=test.concat("",language+"/");window.location.href=test2;change_title(language);} if(test.indexOf(/en/)!=-1){var test2=test.replace(/en/,language);window.location.href=test2;change_title(language);}else if(test.indexOf(/zh_CN/)!=-1){var test2=test.replace(/zh_CN/,language);window.location.href=test2;change_title(language);}else if(test.indexOf(/ja/)!=-1){var test2=test.replace(/ja/,language);window.location.href=test2;change_title(language);} localStorage.clear();set_search_keyword();window.header.done();} -function use_jpg(){pics=$("img");var page_url=window.location.href;for(var i=0;iadd Microphone with / + + 2020.4 + Standard package add with bracket + / + diff --git a/docs/index.html b/docs/index.html index c6ba30f0..3f77aba2 100755 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -M5Stack Docs - The reference docs for M5Stack products.
@@ -97,8 +97,8 @@ {{faq_title}} - {{i2c_table}} - {{comparison_table}} + {{i2c_table}} + {{comparison_table}}