{"action":"opened","number":1135,"pull_request":{"url":"https://api.github.com/repos/spmjs/spm/pulls/1135","id":27029076,"html_url":"https://github.com/spmjs/spm/pull/1135","diff_url":"https://github.com/spmjs/spm/pull/1135.diff","patch_url":"https://github.com/spmjs/spm/pull/1135.patch","issue_url":"https://api.github.com/repos/spmjs/spm/issues/1135","number":1135,"state":"open","locked":false,"title":"spm doc live editor 可实时编辑的演示文档","user":{"login":"afc163","id":507615,"avatar_url":"https://avatars.githubusercontent.com/u/507615?v=3","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"body":"非常酷的一个特性。原来用 spm doc 生成的演示用四个 **`** 进行包裹，生成可运行的代码。\r\n\r\n<pre>\r\n````\r\nconsole.log(1);\r\n````\r\n</pre>\r\n\r\n现在加入了实时编辑的功能，就是使用者可以在已生成的静态页面上修改这些演示代码，然后看到修改后的效果，对于试验模块的一些属性和配置有很大帮助。\r\n\r\n![](https://t.alipayobjects.com/images/T1JOpeXddlXXXXXXXX.gif)\r\n\r\n实例：http://spmjs.io/docs/arale-dialog/examples/","created_at":"2015-01-08T13:49:21Z","updated_at":"2015-01-08T13:49:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spmjs/spm/pulls/1135/commits","review_comments_url":"https://api.github.com/repos/spmjs/spm/pulls/1135/comments","review_comment_url":"https://api.github.com/repos/spmjs/spm/pulls/comments/{number}","comments_url":"https://api.github.com/repos/spmjs/spm/issues/1135/comments","statuses_url":"https://api.github.com/repos/spmjs/spm/statuses/d9a475bc185b38d329c6a01da648cf860b459798","head":{"label":"spmjs:feat-spm-doc-live-editor","ref":"feat-spm-doc-live-editor","sha":"d9a475bc185b38d329c6a01da648cf860b459798","user":{"login":"spmjs","id":2740060,"avatar_url":"https://avatars.githubusercontent.com/u/2740060?v=3","gravatar_id":"","url":"https://api.github.com/users/spmjs","html_url":"https://github.com/spmjs","followers_url":"https://api.github.com/users/spmjs/followers","following_url":"https://api.github.com/users/spmjs/following{/other_user}","gists_url":"https://api.github.com/users/spmjs/gists{/gist_id}","starred_url":"https://api.github.com/users/spmjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spmjs/subscriptions","organizations_url":"https://api.github.com/users/spmjs/orgs","repos_url":"https://api.github.com/users/spmjs/repos","events_url":"https://api.github.com/users/spmjs/events{/privacy}","received_events_url":"https://api.github.com/users/spmjs/received_events","type":"Organization","site_admin":false},"repo":{"id":1787757,"name":"spm","full_name":"spmjs/spm","owner":{"login":"spmjs","id":2740060,"avatar_url":"https://avatars.githubusercontent.com/u/2740060?v=3","gravatar_id":"","url":"https://api.github.com/users/spmjs","html_url":"https://github.com/spmjs","followers_url":"https://api.github.com/users/spmjs/followers","following_url":"https://api.github.com/users/spmjs/following{/other_user}","gists_url":"https://api.github.com/users/spmjs/gists{/gist_id}","starred_url":"https://api.github.com/users/spmjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spmjs/subscriptions","organizations_url":"https://api.github.com/users/spmjs/orgs","repos_url":"https://api.github.com/users/spmjs/repos","events_url":"https://api.github.com/users/spmjs/events{/privacy}","received_events_url":"https://api.github.com/users/spmjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spmjs/spm","description":"Brand new static package manager.","fork":false,"url":"https://api.github.com/repos/spmjs/spm","forks_url":"https://api.github.com/repos/spmjs/spm/forks","keys_url":"https://api.github.com/repos/spmjs/spm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spmjs/spm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spmjs/spm/teams","hooks_url":"https://api.github.com/repos/spmjs/spm/hooks","issue_events_url":"https://api.github.com/repos/spmjs/spm/issues/events{/number}","events_url":"https://api.github.com/repos/spmjs/spm/events","assignees_url":"https://api.github.com/repos/spmjs/spm/assignees{/user}","branches_url":"https://api.github.com/repos/spmjs/spm/branches{/branch}","tags_url":"https://api.github.com/repos/spmjs/spm/tags","blobs_url":"https://api.github.com/repos/spmjs/spm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spmjs/spm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spmjs/spm/git/refs{/sha}","trees_url":"https://api.github.com/repos/spmjs/spm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spmjs/spm/statuses/{sha}","languages_url":"https://api.github.com/repos/spmjs/spm/languages","stargazers_url":"https://api.github.com/repos/spmjs/spm/stargazers","contributors_url":"https://api.github.com/repos/spmjs/spm/contributors","subscribers_url":"https://api.github.com/repos/spmjs/spm/subscribers","subscription_url":"https://api.github.com/repos/spmjs/spm/subscription","commits_url":"https://api.github.com/repos/spmjs/spm/commits{/sha}","git_commits_url":"https://api.github.com/repos/spmjs/spm/git/commits{/sha}","comments_url":"https://api.github.com/repos/spmjs/spm/comments{/number}","issue_comment_url":"https://api.github.com/repos/spmjs/spm/issues/comments/{number}","contents_url":"https://api.github.com/repos/spmjs/spm/contents/{+path}","compare_url":"https://api.github.com/repos/spmjs/spm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spmjs/spm/merges","archive_url":"https://api.github.com/repos/spmjs/spm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spmjs/spm/downloads","issues_url":"https://api.github.com/repos/spmjs/spm/issues{/number}","pulls_url":"https://api.github.com/repos/spmjs/spm/pulls{/number}","milestones_url":"https://api.github.com/repos/spmjs/spm/milestones{/number}","notifications_url":"https://api.github.com/repos/spmjs/spm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spmjs/spm/labels{/name}","releases_url":"https://api.github.com/repos/spmjs/spm/releases{/id}","created_at":"2011-05-23T12:11:55Z","updated_at":"2015-01-08T13:46:34Z","pushed_at":"2015-01-08T13:46:34Z","git_url":"git://github.com/spmjs/spm.git","ssh_url":"git@github.com:spmjs/spm.git","clone_url":"https://github.com/spmjs/spm.git","svn_url":"https://github.com/spmjs/spm","homepage":"http://spmjs.io","size":20021,"stargazers_count":532,"watchers_count":532,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":135,"mirror_url":null,"open_issues_count":28,"forks":135,"open_issues":28,"watchers":532,"default_branch":"master"}},"base":{"label":"spmjs:master","ref":"master","sha":"e4cec2e93c7a2f9606a2b29ac58eae3871ff21fe","user":{"login":"spmjs","id":2740060,"avatar_url":"https://avatars.githubusercontent.com/u/2740060?v=3","gravatar_id":"","url":"https://api.github.com/users/spmjs","html_url":"https://github.com/spmjs","followers_url":"https://api.github.com/users/spmjs/followers","following_url":"https://api.github.com/users/spmjs/following{/other_user}","gists_url":"https://api.github.com/users/spmjs/gists{/gist_id}","starred_url":"https://api.github.com/users/spmjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spmjs/subscriptions","organizations_url":"https://api.github.com/users/spmjs/orgs","repos_url":"https://api.github.com/users/spmjs/repos","events_url":"https://api.github.com/users/spmjs/events{/privacy}","received_events_url":"https://api.github.com/users/spmjs/received_events","type":"Organization","site_admin":false},"repo":{"id":1787757,"name":"spm","full_name":"spmjs/spm","owner":{"login":"spmjs","id":2740060,"avatar_url":"https://avatars.githubusercontent.com/u/2740060?v=3","gravatar_id":"","url":"https://api.github.com/users/spmjs","html_url":"https://github.com/spmjs","followers_url":"https://api.github.com/users/spmjs/followers","following_url":"https://api.github.com/users/spmjs/following{/other_user}","gists_url":"https://api.github.com/users/spmjs/gists{/gist_id}","starred_url":"https://api.github.com/users/spmjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spmjs/subscriptions","organizations_url":"https://api.github.com/users/spmjs/orgs","repos_url":"https://api.github.com/users/spmjs/repos","events_url":"https://api.github.com/users/spmjs/events{/privacy}","received_events_url":"https://api.github.com/users/spmjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spmjs/spm","description":"Brand new static package manager.","fork":false,"url":"https://api.github.com/repos/spmjs/spm","forks_url":"https://api.github.com/repos/spmjs/spm/forks","keys_url":"https://api.github.com/repos/spmjs/spm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spmjs/spm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spmjs/spm/teams","hooks_url":"https://api.github.com/repos/spmjs/spm/hooks","issue_events_url":"https://api.github.com/repos/spmjs/spm/issues/events{/number}","events_url":"https://api.github.com/repos/spmjs/spm/events","assignees_url":"https://api.github.com/repos/spmjs/spm/assignees{/user}","branches_url":"https://api.github.com/repos/spmjs/spm/branches{/branch}","tags_url":"https://api.github.com/repos/spmjs/spm/tags","blobs_url":"https://api.github.com/repos/spmjs/spm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spmjs/spm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spmjs/spm/git/refs{/sha}","trees_url":"https://api.github.com/repos/spmjs/spm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spmjs/spm/statuses/{sha}","languages_url":"https://api.github.com/repos/spmjs/spm/languages","stargazers_url":"https://api.github.com/repos/spmjs/spm/stargazers","contributors_url":"https://api.github.com/repos/spmjs/spm/contributors","subscribers_url":"https://api.github.com/repos/spmjs/spm/subscribers","subscription_url":"https://api.github.com/repos/spmjs/spm/subscription","commits_url":"https://api.github.com/repos/spmjs/spm/commits{/sha}","git_commits_url":"https://api.github.com/repos/spmjs/spm/git/commits{/sha}","comments_url":"https://api.github.com/repos/spmjs/spm/comments{/number}","issue_comment_url":"https://api.github.com/repos/spmjs/spm/issues/comments/{number}","contents_url":"https://api.github.com/repos/spmjs/spm/contents/{+path}","compare_url":"https://api.github.com/repos/spmjs/spm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spmjs/spm/merges","archive_url":"https://api.github.com/repos/spmjs/spm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spmjs/spm/downloads","issues_url":"https://api.github.com/repos/spmjs/spm/issues{/number}","pulls_url":"https://api.github.com/repos/spmjs/spm/pulls{/number}","milestones_url":"https://api.github.com/repos/spmjs/spm/milestones{/number}","notifications_url":"https://api.github.com/repos/spmjs/spm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spmjs/spm/labels{/name}","releases_url":"https://api.github.com/repos/spmjs/spm/releases{/id}","created_at":"2011-05-23T12:11:55Z","updated_at":"2015-01-08T13:46:34Z","pushed_at":"2015-01-08T13:46:34Z","git_url":"git://github.com/spmjs/spm.git","ssh_url":"git@github.com:spmjs/spm.git","clone_url":"https://github.com/spmjs/spm.git","svn_url":"https://github.com/spmjs/spm","homepage":"http://spmjs.io","size":20021,"stargazers_count":532,"watchers_count":532,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":135,"mirror_url":null,"open_issues_count":28,"forks":135,"open_issues":28,"watchers":532,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spmjs/spm/pulls/1135"},"html":{"href":"https://github.com/spmjs/spm/pull/1135"},"issue":{"href":"https://api.github.com/repos/spmjs/spm/issues/1135"},"comments":{"href":"https://api.github.com/repos/spmjs/spm/issues/1135/comments"},"review_comments":{"href":"https://api.github.com/repos/spmjs/spm/pulls/1135/comments"},"review_comment":{"href":"https://api.github.com/repos/spmjs/spm/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/spmjs/spm/pulls/1135/commits"},"statuses":{"href":"https://api.github.com/repos/spmjs/spm/statuses/d9a475bc185b38d329c6a01da648cf860b459798"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":18,"additions":486,"deletions":66,"changed_files":8}}