Unity离线文档加载了几个脚本,使得其不能秒开。这里有个脚本可以去除那些在线资源,使其完全离线化。

sed -i "s/f.parentNode.insertBefore(j,f);//" Documentation/en/Manual/*.html
sed -i "s/f.parentNode.insertBefore(j,f);//" Documentation/en/ScriptReference/*.html
sed -i "s/https:\/\/fonts.googleapis.com\/css?family=Open+Sans:.*\"/..\/..\/..\/static\/OpenSans.css\"/" Documentation/en/Manual/*.html
sed -i "s/https:\/\/fonts.googleapis.com\/css?family=Open+Sans:.*\"/..\/..\/..\/static\/OpenSans.css\"/" Documentation/en/ScriptReference/*.html
sed -i "s/<link.*href=.*rating.min.css.*>//" Documentation/en/Manual/*.html
sed -i "s/<link.*href=.*rating.min.css.*>//" Documentation/en/ScriptReference/*.html
sed -i "s/<script[^<]*src=\"[^<]*\(rating.js\|global_toc.js\).*><\/script>//" Documentation/en/Manual/*.html
sed -i "s/<script[^<]*src=\"[^<]*\(rating.js\|global_toc.js\).*><\/script>//" Documentation/en/ScriptReference/*.html
分类: 编程

0 条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注