浏览代码

ignore swp files

root 1 年之前
父节点
当前提交
dbdc9f6c92
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      README.md
  2. 1 0
      dockerbuild/dot_vuepress/config.js

+ 1 - 1
README.md

@@ -33,5 +33,5 @@ If the markdowns folder is empty,  the image will insert the following into the
 
 
 ## Building
 ## Building
 
 
-run.sh - build docker image kinisi/vuepress and push to docker,io
+dockerbuild/build.sh - build docker image kinisi/vuepress and push to docker,io
 
 

+ 1 - 0
dockerbuild/dot_vuepress/config.js

@@ -51,6 +51,7 @@ let sidebar = [];
 tree.children.forEach(child => {
 tree.children.forEach(child => {
 	if (child.name == ".vuepress") return;
 	if (child.name == ".vuepress") return;
 	if (child.name == ".npmignore") return;
 	if (child.name == ".npmignore") return;
+	if (child.name.endsWith(".swp") ) return;
 	sidebar.push(transform_sidebar(child));
 	sidebar.push(transform_sidebar(child));
 });
 });