├── doc ├── mddoc.json ├── SUMMARY.md ├── template.md ├── config.md ├── cli.md ├── README.md ├── .gitignore └── webhook.md ├── template ├── statics │ ├── images │ │ ├── left_menuForOutLook.gif │ │ └── left_menuForOutLook.png │ ├── plugin │ │ ├── layui │ │ │ ├── font │ │ │ │ ├── iconfont.eot │ │ │ │ ├── iconfont.ttf │ │ │ │ └── iconfont.woff │ │ │ ├── images │ │ │ │ └── face │ │ │ │ │ ├── 0.gif │ │ │ │ │ ├── 1.gif │ │ │ │ │ ├── 10.gif │ │ │ │ │ ├── 11.gif │ │ │ │ │ ├── 12.gif │ │ │ │ │ ├── 13.gif │ │ │ │ │ ├── 14.gif │ │ │ │ │ ├── 15.gif │ │ │ │ │ ├── 16.gif │ │ │ │ │ ├── 17.gif │ │ │ │ │ ├── 18.gif │ │ │ │ │ ├── 19.gif │ │ │ │ │ ├── 2.gif │ │ │ │ │ ├── 20.gif │ │ │ │ │ ├── 21.gif │ │ │ │ │ ├── 22.gif │ │ │ │ │ ├── 23.gif │ │ │ │ │ ├── 24.gif │ │ │ │ │ ├── 25.gif │ │ │ │ │ ├── 26.gif │ │ │ │ │ ├── 27.gif │ │ │ │ │ ├── 28.gif │ │ │ │ │ ├── 29.gif │ │ │ │ │ ├── 3.gif │ │ │ │ │ ├── 30.gif │ │ │ │ │ ├── 31.gif │ │ │ │ │ ├── 32.gif │ │ │ │ │ ├── 33.gif │ │ │ │ │ ├── 34.gif │ │ │ │ │ ├── 35.gif │ │ │ │ │ ├── 36.gif │ │ │ │ │ ├── 37.gif │ │ │ │ │ ├── 38.gif │ │ │ │ │ ├── 39.gif │ │ │ │ │ ├── 4.gif │ │ │ │ │ ├── 40.gif │ │ │ │ │ ├── 41.gif │ │ │ │ │ ├── 42.gif │ │ │ │ │ ├── 43.gif │ │ │ │ │ ├── 44.gif │ │ │ │ │ ├── 45.gif │ │ │ │ │ ├── 46.gif │ │ │ │ │ ├── 47.gif │ │ │ │ │ ├── 48.gif │ │ │ │ │ ├── 49.gif │ │ │ │ │ ├── 5.gif │ │ │ │ │ ├── 50.gif │ │ │ │ │ ├── 51.gif │ │ │ │ │ ├── 52.gif │ │ │ │ │ ├── 53.gif │ │ │ │ │ ├── 54.gif │ │ │ │ │ ├── 55.gif │ │ │ │ │ ├── 56.gif │ │ │ │ │ ├── 57.gif │ │ │ │ │ ├── 58.gif │ │ │ │ │ ├── 59.gif │ │ │ │ │ ├── 6.gif │ │ │ │ │ ├── 60.gif │ │ │ │ │ ├── 61.gif │ │ │ │ │ ├── 62.gif │ │ │ │ │ ├── 63.gif │ │ │ │ │ ├── 64.gif │ │ │ │ │ ├── 65.gif │ │ │ │ │ ├── 66.gif │ │ │ │ │ ├── 67.gif │ │ │ │ │ ├── 68.gif │ │ │ │ │ ├── 69.gif │ │ │ │ │ ├── 7.gif │ │ │ │ │ ├── 70.gif │ │ │ │ │ ├── 71.gif │ │ │ │ │ ├── 8.gif │ │ │ │ │ └── 9.gif │ │ │ ├── css │ │ │ │ ├── modules │ │ │ │ │ ├── layer │ │ │ │ │ │ └── default │ │ │ │ │ │ │ ├── icon.png │ │ │ │ │ │ │ ├── icon-ext.png │ │ │ │ │ │ │ ├── loading-0.gif │ │ │ │ │ │ │ ├── loading-1.gif │ │ │ │ │ │ │ └── loading-2.gif │ │ │ │ │ ├── code.css │ │ │ │ │ └── laydate │ │ │ │ │ │ └── default │ │ │ │ │ │ └── laydate.css │ │ │ │ └── layui.mobile.css │ │ │ ├── lay │ │ │ │ └── modules │ │ │ │ │ ├── code.js │ │ │ │ │ ├── laytpl.js │ │ │ │ │ ├── flow.js │ │ │ │ │ ├── util.js │ │ │ │ │ ├── rate.js │ │ │ │ │ ├── tree.js │ │ │ │ │ ├── carousel.js │ │ │ │ │ ├── laypage.js │ │ │ │ │ ├── upload.js │ │ │ │ │ ├── element.js │ │ │ │ │ ├── form.js │ │ │ │ │ └── layedit.js │ │ │ └── layui.js │ │ ├── zTree │ │ │ ├── css │ │ │ │ ├── metroStyle │ │ │ │ │ ├── img │ │ │ │ │ │ ├── metro.gif │ │ │ │ │ │ ├── metro.png │ │ │ │ │ │ ├── loading.gif │ │ │ │ │ │ └── line_conn.png │ │ │ │ │ └── metroStyle.css │ │ │ │ ├── zTreeStyle │ │ │ │ │ ├── img │ │ │ │ │ │ ├── diy │ │ │ │ │ │ │ ├── 2.png │ │ │ │ │ │ │ ├── 3.png │ │ │ │ │ │ │ ├── 4.png │ │ │ │ │ │ │ ├── 5.png │ │ │ │ │ │ │ ├── 6.png │ │ │ │ │ │ │ ├── 7.png │ │ │ │ │ │ │ ├── 8.png │ │ │ │ │ │ │ ├── 9.png │ │ │ │ │ │ │ ├── 1_open.png │ │ │ │ │ │ │ └── 1_close.png │ │ │ │ │ │ ├── loading.gif │ │ │ │ │ │ ├── line_conn.gif │ │ │ │ │ │ ├── zTreeStandard.gif │ │ │ │ │ │ └── zTreeStandard.png │ │ │ │ │ └── zTreeStyle.css │ │ │ │ └── awesomeStyle │ │ │ │ │ ├── img │ │ │ │ │ └── loading.gif │ │ │ │ │ ├── awesome.less │ │ │ │ │ └── awesome.css │ │ │ ├── .gitattributes │ │ │ ├── package.json │ │ │ ├── zTree.v3.jquery.json │ │ │ ├── README.md │ │ │ ├── .gitignore │ │ │ └── js │ │ │ │ ├── jquery.ztree.exhide.min.js │ │ │ │ └── jquery.ztree.excheck.min.js │ │ └── SyntaxHighlighter │ │ │ └── shCoreDefault.css │ ├── js │ │ ├── home.js │ │ └── docView.js │ └── css │ │ └── style.css └── html │ ├── search.php │ └── article.php ├── github-webhook.php ├── composer.json ├── config └── github.php ├── README.md ├── LICENSE ├── .php_cs.dist └── src ├── Args.php ├── GithubWebhook.php ├── File.php ├── CategoryParser.php └── Builder.php /doc/mddoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mddoc 使用手册" 3 | } -------------------------------------------------------------------------------- /template/statics/images/left_menuForOutLook.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/images/left_menuForOutLook.gif -------------------------------------------------------------------------------- /template/statics/images/left_menuForOutLook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/images/left_menuForOutLook.png -------------------------------------------------------------------------------- /template/statics/plugin/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/font/iconfont.eot -------------------------------------------------------------------------------- /template/statics/plugin/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /template/statics/plugin/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/font/iconfont.woff -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/0.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/1.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/10.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/11.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/12.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/13.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/14.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/15.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/16.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/17.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/18.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/19.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/2.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/20.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/21.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/22.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/23.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/24.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/25.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/26.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/27.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/28.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/29.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/3.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/30.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/31.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/32.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/33.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/34.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/35.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/36.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/37.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/38.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/39.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/4.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/40.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/41.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/42.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/43.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/44.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/45.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/46.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/47.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/48.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/49.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/5.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/50.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/51.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/52.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/53.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/54.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/55.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/56.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/57.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/58.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/59.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/6.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/60.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/61.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/62.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/63.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/64.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/65.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/66.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/67.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/68.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/69.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/7.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/70.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/71.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/8.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/images/face/9.gif -------------------------------------------------------------------------------- /doc/SUMMARY.md: -------------------------------------------------------------------------------- 1 | # Summary 2 | 3 | * [介绍](README.md) 4 | * [配置文件](config.md) 5 | * [命令行生成](cli.md) 6 | * [Webhook 生成](webhook.md) 7 | * [自定义模版](template.md) 8 | -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/metroStyle/img/metro.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/metroStyle/img/metro.gif -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/metroStyle/img/metro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/metroStyle/img/metro.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/2.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/3.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/4.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/5.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/6.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/7.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/8.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/9.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/metroStyle/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/metroStyle/img/loading.gif -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/loading.gif -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/awesomeStyle/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/awesomeStyle/img/loading.gif -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/metroStyle/img/line_conn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/metroStyle/img/line_conn.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/1_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/1_open.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/line_conn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/line_conn.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/diy/1_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/diy/1_close.png -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/zTreeStandard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/zTreeStandard.gif -------------------------------------------------------------------------------- /template/statics/plugin/zTree/css/zTreeStyle/img/zTreeStandard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/zTree/css/zTreeStyle/img/zTreeStandard.png -------------------------------------------------------------------------------- /template/statics/plugin/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /template/statics/plugin/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /template/statics/plugin/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Yurunsoft/mddoc/HEAD/template/statics/plugin/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /template/statics/js/home.js: -------------------------------------------------------------------------------- 1 | $.ajaxSetup({ 2 | xhrFields: { 3 | withCredentials: true 4 | }, 5 | }); 6 | $(function(){ 7 | layui.element.init(); 8 | layui.table.init(); 9 | layui.form.render(); 10 | }); -------------------------------------------------------------------------------- /doc/template.md: -------------------------------------------------------------------------------- 1 | # 自定义模版 2 | 3 | [TOC] 4 | 5 | ## 模版结构 6 | 7 | `html/article.php` - 文档页面模版 8 | `html/search.php` - 实现搜索的`js`文件模版,最终生成到`statics/js/mddoc-search.js` 9 | `statics` - 该目录及目录中所有文件,原样复制到生成目录中。 10 | 11 | > 其它详见代码,不复杂 -------------------------------------------------------------------------------- /doc/config.md: -------------------------------------------------------------------------------- 1 | # 配置文件 2 | 3 | [TOC] 4 | 5 | ## 文档配置文件 6 | 7 | 在文档根目录下,创建`mddoc.json`文件。内容格式是`json`,这里面数据是可以代入到生成模版中的。默认一般建议配置一个`name`即可,其它如有需要再配置。 8 | 9 | ```json 10 | { 11 | "name": "mddoc 使用手册" 12 | } 13 | ``` 14 | 15 | 16 | -------------------------------------------------------------------------------- /github-webhook.php: -------------------------------------------------------------------------------- 1 | handle(); 11 | -------------------------------------------------------------------------------- /doc/cli.md: -------------------------------------------------------------------------------- 1 | # 命令行生成 2 | 3 | [TOC] 4 | 5 | ## 使用步骤 6 | 7 | 1. 首先通过 git 将项目拉取下来 8 | 2. 执行`composer update`安装 9 | 3. 执行`php build.php -markdownPath "md文档路径" -htmlPath "html生成路径"` 10 | 11 | > 注意!html生成目录在生成前会被清空所有文件,请慎重选择目录! 12 | 13 | 默认生成使用的模版是`mddoc/template`下的,如果要指定自定义的模版路径,加上参数`-templatePath "路径"` -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "yurunsoft/mddoc", 3 | "description": "use php to build markdown doc", 4 | "type": "library", 5 | "license": "MIT", 6 | "autoload": { 7 | "psr-4": { 8 | "Yurun\\MdDoc\\": "src/" 9 | } 10 | }, 11 | "require": { 12 | "php": ">=7.1.0", 13 | "joyqi/hyper-down" : "~2.4.0", 14 | "yurunsoft/yurun-http": "~4.0" 15 | }, 16 | "require-dev": { 17 | "friendsofphp/php-cs-fixer": "~2.18.0" 18 | }, 19 | "bin": [ 20 | "build.php" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /doc/README.md: -------------------------------------------------------------------------------- 1 | # 介绍 2 | 3 | [TOC] 4 | 5 | mddoc 是一个开源的 markdown 文档转 html 文档工具,它使用 php 开发,支持 php >= 5.4。它生成的 html 可以直接放在网站上,支持全文搜索、自定义 html 模版。 6 | 7 | mddoc 同时支持命令行、git webhook生成,不光可以本地生成后上传,也可以直接做成 webhook 自动部署生成,非常简单。 8 | 9 | mddoc 兼容 GitBook Editor 编辑的格式,可以说 mddoc 是不想装 Node 环境又想使用 gitbook 的用户的一个非常好的选择。 10 | 11 | 其实我开发 mddoc 的本意,其实是因为我用的虚拟主机,不能装 Node 环境。想要实现 webhook 自动生成比较困难,所以就用 php 写了这个…… 12 | 13 | 具体效果你现在看的这个文档就是使用 mddoc 生成哒!(https://doc.yurunsoft.com/mddoc) 14 | 15 | Github:https://github.com/Yurunsoft/mddoc 16 | 17 | Gitee:https://gitee.com/yurunsoft/mddoc 18 | 19 | composer:`yurunsoft/mddoc` 20 | -------------------------------------------------------------------------------- /template/statics/plugin/zTree/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /config/github.php: -------------------------------------------------------------------------------- 1 | '', 6 | // 更新文档的事件 7 | 'events' => [ 8 | 'push', 9 | 'pull_request', 10 | 'ping', 11 | ], 12 | // 要下载的文件地址,一般可以用github提供的 13 | 'downloadUrl' => 'https://github.com/{username}/{projectName}/archive/master.zip', 14 | // 下载文件保存路径(下载前会清空该目录,请谨慎选择目录) 15 | 'downloadSavePath' => dirname(__DIR__) . '/tmp', 16 | // 生成的html保存路径(生成前会清空该目录,请谨慎选择目录) 17 | 'htmlSavePath' => dirname(__DIR__) . '/html', 18 | // 模版目录 19 | // 'templatePath' => dirname(__DIR__) . '/template', 20 | ]; 21 | -------------------------------------------------------------------------------- /doc/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # Compiled binary addons (http://nodejs.org/api/addons.html) 20 | build/Release 21 | 22 | # Dependency directory 23 | # Deployed apps should consider commenting this line out: 24 | # see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git 25 | node_modules 26 | 27 | _book/ 28 | book.pdf 29 | book.epub 30 | book.mobi 31 | -------------------------------------------------------------------------------- /template/statics/plugin/zTree/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zTree_v3", 3 | "description": "zTree is a multi-functional 'tree plug-ins.' based on jQuery. The main advantages of zTree includes excellent performance, flexible configuration, and the combination of multiple functions.", 4 | "version": "3.5.29", 5 | "homepage": "http://www.treejs.cn/v3/main.php", 6 | "author": "zTree (https://github.com/zTree)", 7 | "repository": "zTree/zTree", 8 | "license": "MIT", 9 | "main": "index.js", 10 | "engines": { 11 | "node": ">=0.10.0" 12 | }, 13 | "keywords": [ 14 | "tree", 15 | "jquery", 16 | "plug-in", 17 | "plugin", 18 | "ztree", 19 | "html", 20 | "node" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 介绍 2 | 3 | mddoc 是一个开源的 markdown 文档转 html 文档工具,它使用 php 开发,支持 php >= 5.4。它生成的 html 可以直接放在网站上,支持全文搜索、自定义 html 模版。 4 | 5 | mddoc 同时支持命令行、git webhook生成,不光可以本地生成后上传,也可以直接做成 webhook 自动部署生成,非常简单。 6 | 7 | mddoc 兼容 GitBook Editor 编辑的格式,可以说 mddoc 是不想装 Node 环境又想使用 gitbook 的用户的一个非常好的选择。 8 | 9 | 其实我开发 mddoc 的本意,其实是因为我用的虚拟主机,不能装 Node 环境。想要实现 webhook 自动生成比较困难,所以就用 php 写了这个…… 10 | 11 | 具体效果你现在看的这个文档就是使用 mddoc 生成哒!( https://doc.yurunsoft.com/mddoc ) 12 | 13 | Github:https://github.com/Yurunsoft/mddoc 14 | 15 | Gitee:https://gitee.com/yurunsoft/mddoc 16 | 17 | composer:`yurunsoft/mddoc` 18 | 19 | ## 命令行生成 20 | 21 | 1. 首先通过 git 将项目拉取下来 22 | 2. 执行`composer update`安装 23 | 3. 执行`php build.php -markdownPath "md文档路径" -htmlPath "html生成路径"` 24 | 25 | > 注意!html生成目录在生成前会被清空所有文件,请慎重选择目录! 26 | 27 | 默认生成使用的模版是`mddoc/template`下的,如果要指定自定义的模版路径,加上参数`-templatePath "路径"` 28 | -------------------------------------------------------------------------------- /doc/webhook.md: -------------------------------------------------------------------------------- 1 | # Webhook 生成 2 | 3 | [TOC] 4 | 5 | 有两个方法可选 6 | 7 | ## 方法一 8 | 9 | 1. 首先通过 git 将项目拉取下来 10 | 2. 执行`composer update`安装 11 | 3. 修改`config/github.php`配置文件,详见该文件注释 12 | 4. 在`github`或`gitee`中配置`webhook`,url为`http://xxx.com/github-webhook.php?password={password}`,`{password}`为你配置文件中设置的 13 | 14 | > 注意!html生成目录在生成前会被清空所有文件,请慎重选择目录! 15 | 16 | ## 方法二 17 | 18 | 1. 通过`composer`将`mddoc`作为包引入你的项目 19 | 2. 新建一个`webhook`入口文件 20 | ```php 21 | handle(); 32 | ``` 33 | 3. 在`github`或`gitee`中配置`webhook`,url为`http://xxx.com/github-webhook.php?password={password}`,`{password}`为你配置文件中设置的 34 | 35 | > 注意!html生成目录在生成前会被清空所有文件,请慎重选择目录! 36 | -------------------------------------------------------------------------------- /template/statics/plugin/zTree/zTree.v3.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zTree.v3", 3 | "title": "zTree.v3", 4 | "description": "jquery tree plugin", 5 | "keywords": [ 6 | "tree", 7 | "ui" 8 | ], 9 | "version": "3.5.29", 10 | "author": { 11 | "name": "Zhang QiGang", 12 | "email":"hunter.z@263.net", 13 | "url": "https://github.com/zTree/zTree_v3" 14 | }, 15 | "maintainers": [ 16 | { 17 | "name": "Zhang QiGang", 18 | "email":"hunter.z@263.net", 19 | "url": "http://www.ztree.me/" 20 | } 21 | ], 22 | "licenses": [ 23 | { 24 | "type": "MIT", 25 | "url": "http://www.ztree.me/v3/main.php#_license" 26 | } 27 | ], 28 | "bugs": "https://github.com/zTree/zTree_v3/issues", 29 | "homepage": "http://www.ztree.me/", 30 | "demo": "http://www.ztree.me/v3/demo.php", 31 | "docs": "http://www.ztree.me/v3/api.php", 32 | "dependencies": { 33 | "jquery": ">=1.4.4" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /template/statics/plugin/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.3.0 MIT License By https://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 宇润 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /template/statics/plugin/layui/lay/modules/code.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.3.0 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
未搜索到结果
117 |无匹配项
'):g.find("."+r).remove()},"keyup"),void(""===i&&g.find("."+r).remove()))};f&&k.on("keyup",T).on("blur",function(t){var a=p[0].selectedIndex;e=k,d=i(p[0].options[a]).html(),setTimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),x.on("click",function(){var e=i(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:t}),w(!0),!1)}),t.find("dl>dt").on("click",function(e){return!1}),i(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=i(this),o=r.next("."+a),u=this.disabled,d=l.value,f=i(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?t:v.innerHTML||t:t,m=i(['目录
")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),n.value=t}),c.on("paste",function(e){r.execCommand("formatBlock",!1,"
"),setTimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},p=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,i,a){var l=this.document,n=document.createElement(t);for(var o in i)n.setAttribute(o,i[o]);if(n.removeAttribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.pasteHTML(e(n).prop("outerHTML")),a.select()}else{var r=a.toString()||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.deleteContents(),a.insertNode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasClass(l)?"removeClass":"addClass"](l),t.find(">i").removeClass(l),o("unlink").addClass(r),e(n).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||o("b").addClass(l),"i"!==t&&"em"!==t||o("i").addClass(l),"u"===t&&o("u").addClass(l),"strike"===t&&o("d").addClass(l),"p"===t&&("center"===e?o("center").addClass(l):"right"===e?o("right").addClass(l):o("left").addClass(l)),"a"===t&&(o("link").addClass(l),o("unlink").removeClass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"A"===a.tagName?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execCommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadImage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasClass(r)){o.focus();var u=m(n);u.commonAncestorContainer;l?(n.execCommand(l),/justifyLeft|justifyCenter|justifyRight/.test(l)&&n.execCommand("formatBlock",!1,"
"),setTimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['