{"action":"created","comment":{"url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/comments/77613594","id":77613594,"diff_hunk":"@@ -5,8 +5,102 @@\n \n 'use strict';\n \n+const path = require( 'path' );\n+const rename = require( 'gulp-rename' );\n+const { stream } = require( '@ckeditor/ckeditor5-dev-utils' );\n+const { utils: compilerUtils } = require( '@ckeditor/ckeditor5-dev-compiler' );\n+const merge = require( 'merge-stream' );\n+const minimist = require( 'minimist' );\n+const gutil = require( 'gulp-util' );\n+\n const utils = {\n \t/**\n+\t * @param {String} prefixDirectory Name of directory where collected files will be process.\n+\t * @returns {Stream}\n+\t */\n+\trenameDocumentationFiles( prefixDirectory ) {\n+\t\treturn rename( ( file ) => {\n+\t\t\tconst dirFrags = file.dirname.split( path.sep );\n+\t\t\tconst packageName = dirFrags[ 0 ].replace( /ckeditor5-/, '' );\n+\n+\t\t\tif ( !dirFrags[ 0 ].match( /^ckeditor5-/ ) ) {\n+\t\t\t\tthrow new Error( 'Path should start with directory with prefix \"ckeditor5-\".' );\n+\t\t\t}\n+\n+\t\t\tconst newDirFrags = [\n+\t\t\t\tprefixDirectory,\n+\t\t\t\tpackageName\n+\t\t\t].concat( dirFrags.slice( 3 ) );\n+\n+\t\t\tfile.dirname = path.join.apply( null, newDirFrags );\n+\t\t} );\n+\t},\n+\n+\t/**\n+\t * Returns a stream of all documentation files.\n+\t *\n+\t * @param {String} rootDir Root of main project repository.\n+\t * @param {String} sampleGlob Glob describing sample files to process.\n+\t * @param {String} guideGlob Glob describing guide files to process.\n+\t * @returns {Stream}\n+\t */\n+\tgetDocumentationStream( rootDir, sampleGlob, guideGlob ) {","path":"lib/utils.js","position":43,"original_position":43,"commit_id":"627333b4d5c8c6c78a407a3514fd19e41bf66ed9","original_commit_id":"627333b4d5c8c6c78a407a3514fd19e41bf66ed9","user":{"login":"Reinmar","id":156149,"avatar_url":"https://avatars.githubusercontent.com/u/156149?v=3","gravatar_id":"","url":"https://api.github.com/users/Reinmar","html_url":"https://github.com/Reinmar","followers_url":"https://api.github.com/users/Reinmar/followers","following_url":"https://api.github.com/users/Reinmar/following{/other_user}","gists_url":"https://api.github.com/users/Reinmar/gists{/gist_id}","starred_url":"https://api.github.com/users/Reinmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reinmar/subscriptions","organizations_url":"https://api.github.com/users/Reinmar/orgs","repos_url":"https://api.github.com/users/Reinmar/repos","events_url":"https://api.github.com/users/Reinmar/events{/privacy}","received_events_url":"https://api.github.com/users/Reinmar/received_events","type":"User","site_admin":false},"body":"Why do you have to pass the globs to these functions? Are they a subject of change? I see that this function is used only once.","created_at":"2016-09-06T10:59:03Z","updated_at":"2016-09-06T10:59:03Z","html_url":"https://github.com/ckeditor/ckeditor5-dev-docs/pull/4#discussion_r77613594","pull_request_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/comments/77613594"},"html":{"href":"https://github.com/ckeditor/ckeditor5-dev-docs/pull/4#discussion_r77613594"},"pull_request":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/4","id":84003446,"html_url":"https://github.com/ckeditor/ckeditor5-dev-docs/pull/4","diff_url":"https://github.com/ckeditor/ckeditor5-dev-docs/pull/4.diff","patch_url":"https://github.com/ckeditor/ckeditor5-dev-docs/pull/4.patch","issue_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues/4","number":4,"state":"open","locked":false,"title":"Introduced `docs-builder` for building documentation","user":{"login":"pomek","id":2270764,"avatar_url":"https://avatars.githubusercontent.com/u/2270764?v=3","gravatar_id":"","url":"https://api.github.com/users/pomek","html_url":"https://github.com/pomek","followers_url":"https://api.github.com/users/pomek/followers","following_url":"https://api.github.com/users/pomek/following{/other_user}","gists_url":"https://api.github.com/users/pomek/gists{/gist_id}","starred_url":"https://api.github.com/users/pomek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pomek/subscriptions","organizations_url":"https://api.github.com/users/pomek/orgs","repos_url":"https://api.github.com/users/pomek/repos","events_url":"https://api.github.com/users/pomek/events{/privacy}","received_events_url":"https://api.github.com/users/pomek/received_events","type":"User","site_admin":false},"body":"Fixes: #1","created_at":"2016-09-05T13:36:50Z","updated_at":"2016-09-06T10:59:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"825b41cd4eb53dc7ec88025d669d881400d50066","assignee":{"login":"Reinmar","id":156149,"avatar_url":"https://avatars.githubusercontent.com/u/156149?v=3","gravatar_id":"","url":"https://api.github.com/users/Reinmar","html_url":"https://github.com/Reinmar","followers_url":"https://api.github.com/users/Reinmar/followers","following_url":"https://api.github.com/users/Reinmar/following{/other_user}","gists_url":"https://api.github.com/users/Reinmar/gists{/gist_id}","starred_url":"https://api.github.com/users/Reinmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reinmar/subscriptions","organizations_url":"https://api.github.com/users/Reinmar/orgs","repos_url":"https://api.github.com/users/Reinmar/repos","events_url":"https://api.github.com/users/Reinmar/events{/privacy}","received_events_url":"https://api.github.com/users/Reinmar/received_events","type":"User","site_admin":false},"assignees":[{"login":"Reinmar","id":156149,"avatar_url":"https://avatars.githubusercontent.com/u/156149?v=3","gravatar_id":"","url":"https://api.github.com/users/Reinmar","html_url":"https://github.com/Reinmar","followers_url":"https://api.github.com/users/Reinmar/followers","following_url":"https://api.github.com/users/Reinmar/following{/other_user}","gists_url":"https://api.github.com/users/Reinmar/gists{/gist_id}","starred_url":"https://api.github.com/users/Reinmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reinmar/subscriptions","organizations_url":"https://api.github.com/users/Reinmar/orgs","repos_url":"https://api.github.com/users/Reinmar/repos","events_url":"https://api.github.com/users/Reinmar/events{/privacy}","received_events_url":"https://api.github.com/users/Reinmar/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues/4/comments","statuses_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/statuses/627333b4d5c8c6c78a407a3514fd19e41bf66ed9","head":{"label":"ckeditor:t/1","ref":"t/1","sha":"627333b4d5c8c6c78a407a3514fd19e41bf66ed9","user":{"login":"ckeditor","id":825710,"avatar_url":"https://avatars.githubusercontent.com/u/825710?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeditor","html_url":"https://github.com/ckeditor","followers_url":"https://api.github.com/users/ckeditor/followers","following_url":"https://api.github.com/users/ckeditor/following{/other_user}","gists_url":"https://api.github.com/users/ckeditor/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeditor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeditor/subscriptions","organizations_url":"https://api.github.com/users/ckeditor/orgs","repos_url":"https://api.github.com/users/ckeditor/repos","events_url":"https://api.github.com/users/ckeditor/events{/privacy}","received_events_url":"https://api.github.com/users/ckeditor/received_events","type":"Organization","site_admin":false},"repo":{"id":66828255,"name":"ckeditor5-dev-docs","full_name":"ckeditor/ckeditor5-dev-docs","owner":{"login":"ckeditor","id":825710,"avatar_url":"https://avatars.githubusercontent.com/u/825710?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeditor","html_url":"https://github.com/ckeditor","followers_url":"https://api.github.com/users/ckeditor/followers","following_url":"https://api.github.com/users/ckeditor/following{/other_user}","gists_url":"https://api.github.com/users/ckeditor/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeditor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeditor/subscriptions","organizations_url":"https://api.github.com/users/ckeditor/orgs","repos_url":"https://api.github.com/users/ckeditor/repos","events_url":"https://api.github.com/users/ckeditor/events{/privacy}","received_events_url":"https://api.github.com/users/ckeditor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ckeditor/ckeditor5-dev-docs","description":"Documentation builder for CKEditor 5.","fork":false,"url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs","forks_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/forks","keys_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/teams","hooks_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/hooks","issue_events_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues/events{/number}","events_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/events","assignees_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/assignees{/user}","branches_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/branches{/branch}","tags_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/tags","blobs_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/languages","stargazers_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/stargazers","contributors_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/contributors","subscribers_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/subscribers","subscription_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/subscription","commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/contents/{+path}","compare_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/merges","archive_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/downloads","issues_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues{/number}","pulls_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/labels{/name}","releases_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/releases{/id}","deployments_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/deployments","created_at":"2016-08-29T09:03:14Z","updated_at":"2016-08-29T09:52:26Z","pushed_at":"2016-09-05T13:36:51Z","git_url":"git://github.com/ckeditor/ckeditor5-dev-docs.git","ssh_url":"git@github.com:ckeditor/ckeditor5-dev-docs.git","clone_url":"https://github.com/ckeditor/ckeditor5-dev-docs.git","svn_url":"https://github.com/ckeditor/ckeditor5-dev-docs","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ckeditor:master","ref":"master","sha":"e0914b37f14f292e83f0e593234fe0bbaaa797ce","user":{"login":"ckeditor","id":825710,"avatar_url":"https://avatars.githubusercontent.com/u/825710?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeditor","html_url":"https://github.com/ckeditor","followers_url":"https://api.github.com/users/ckeditor/followers","following_url":"https://api.github.com/users/ckeditor/following{/other_user}","gists_url":"https://api.github.com/users/ckeditor/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeditor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeditor/subscriptions","organizations_url":"https://api.github.com/users/ckeditor/orgs","repos_url":"https://api.github.com/users/ckeditor/repos","events_url":"https://api.github.com/users/ckeditor/events{/privacy}","received_events_url":"https://api.github.com/users/ckeditor/received_events","type":"Organization","site_admin":false},"repo":{"id":66828255,"name":"ckeditor5-dev-docs","full_name":"ckeditor/ckeditor5-dev-docs","owner":{"login":"ckeditor","id":825710,"avatar_url":"https://avatars.githubusercontent.com/u/825710?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeditor","html_url":"https://github.com/ckeditor","followers_url":"https://api.github.com/users/ckeditor/followers","following_url":"https://api.github.com/users/ckeditor/following{/other_user}","gists_url":"https://api.github.com/users/ckeditor/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeditor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeditor/subscriptions","organizations_url":"https://api.github.com/users/ckeditor/orgs","repos_url":"https://api.github.com/users/ckeditor/repos","events_url":"https://api.github.com/users/ckeditor/events{/privacy}","received_events_url":"https://api.github.com/users/ckeditor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ckeditor/ckeditor5-dev-docs","description":"Documentation builder for CKEditor 5.","fork":false,"url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs","forks_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/forks","keys_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/teams","hooks_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/hooks","issue_events_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues/events{/number}","events_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/events","assignees_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/assignees{/user}","branches_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/branches{/branch}","tags_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/tags","blobs_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/languages","stargazers_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/stargazers","contributors_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/contributors","subscribers_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/subscribers","subscription_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/subscription","commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/contents/{+path}","compare_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/merges","archive_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/downloads","issues_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues{/number}","pulls_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/labels{/name}","releases_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/releases{/id}","deployments_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/deployments","created_at":"2016-08-29T09:03:14Z","updated_at":"2016-08-29T09:52:26Z","pushed_at":"2016-09-05T13:36:51Z","git_url":"git://github.com/ckeditor/ckeditor5-dev-docs.git","ssh_url":"git@github.com:ckeditor/ckeditor5-dev-docs.git","clone_url":"https://github.com/ckeditor/ckeditor5-dev-docs.git","svn_url":"https://github.com/ckeditor/ckeditor5-dev-docs","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/4"},"html":{"href":"https://github.com/ckeditor/ckeditor5-dev-docs/pull/4"},"issue":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues/4"},"comments":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-dev-docs/statuses/627333b4d5c8c6c78a407a3514fd19e41bf66ed9"}}}}
{"actor":{"display_login":"Reinmar"}}