{"action":"created","issue":{"url":"https://api.github.com/repos/looch/gitbook-plugin-translated/issues/2","repository_url":"https://api.github.com/repos/looch/gitbook-plugin-translated","labels_url":"https://api.github.com/repos/looch/gitbook-plugin-translated/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/looch/gitbook-plugin-translated/issues/2/comments","events_url":"https://api.github.com/repos/looch/gitbook-plugin-translated/issues/2/events","html_url":"https://github.com/looch/gitbook-plugin-translated/issues/2","id":171070260,"number":2,"title":"使用插件生成网站预览时发生错误 ","user":{"login":"fangqifan","id":11716943,"avatar_url":"https://avatars.githubusercontent.com/u/11716943?v=3","gravatar_id":"","url":"https://api.github.com/users/fangqifan","html_url":"https://github.com/fangqifan","followers_url":"https://api.github.com/users/fangqifan/followers","following_url":"https://api.github.com/users/fangqifan/following{/other_user}","gists_url":"https://api.github.com/users/fangqifan/gists{/gist_id}","starred_url":"https://api.github.com/users/fangqifan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fangqifan/subscriptions","organizations_url":"https://api.github.com/users/fangqifan/orgs","repos_url":"https://api.github.com/users/fangqifan/repos","events_url":"https://api.github.com/users/fangqifan/events{/privacy}","received_events_url":"https://api.github.com/users/fangqifan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-14T17:55:20Z","updated_at":"2016-08-14T18:23:19Z","closed_at":"2016-08-14T18:23:19Z","body":"显示\r\nConfigurationError: Error with book's configuration:pluginsConfig.translated.tags is not of a type(s) array\r\n\r\nbook.json的配置是默认配置\r\n```js\r\n{\r\n    \"plugins\": [\r\n        \"splitter\",\r\n        \"toggle-chapters\",\r\n        \"disqus\",\r\n        \"translated\"\r\n    ],\r\n    \"pluginsConfig\": {\r\n        \"disqus\": {\r\n            \"shortName\": \"nservicebus_zh\",\r\n            \"useIdentifier\": false\r\n        },\r\n        \"translated\": {\r\n            \"regexp\": \"/[一-龥]/gi\",\r\n            \"tags\": \"h1,h2,h3,h4,h5,h6,p,ol,ul,table\"\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/looch/gitbook-plugin-translated/issues/comments/239688320","html_url":"https://github.com/looch/gitbook-plugin-translated/issues/2#issuecomment-239688320","issue_url":"https://api.github.com/repos/looch/gitbook-plugin-translated/issues/2","id":239688320,"user":{"login":"looch","id":4573578,"avatar_url":"https://avatars.githubusercontent.com/u/4573578?v=3","gravatar_id":"","url":"https://api.github.com/users/looch","html_url":"https://github.com/looch","followers_url":"https://api.github.com/users/looch/followers","following_url":"https://api.github.com/users/looch/following{/other_user}","gists_url":"https://api.github.com/users/looch/gists{/gist_id}","starred_url":"https://api.github.com/users/looch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/looch/subscriptions","organizations_url":"https://api.github.com/users/looch/orgs","repos_url":"https://api.github.com/users/looch/repos","events_url":"https://api.github.com/users/looch/events{/privacy}","received_events_url":"https://api.github.com/users/looch/received_events","type":"User","site_admin":false},"created_at":"2016-08-14T18:23:19Z","updated_at":"2016-08-14T18:23:19Z","body":"请使用如下配置，请确保book.json为utf-8编码。\r\ntags必须为json数组，而非字符串。\r\n```json\r\n        \"translated\": {\r\n            \"regexp\": \"/[\\u4e00-\\u9fa5]/gi\",\r\n            \"tags\": [\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\",\"ol\",\"ul\",\"table\"]\r\n        }\r\n```"}}
{"actor":{"display_login":"looch"}}