{"action":"opened","number":72,"pull_request":{"state":"open","created_at":"2011-12-15T15:39:50Z","review_comments":0,"_links":{"review_comments":{"href":"https://api.github.com/repos/micmath/jsdoc/pulls/72/comments"},"comments":{"href":"https://api.github.com/repos/micmath/jsdoc/issues/72/comments"},"html":{"href":"https://github.com/micmath/jsdoc/pull/72"},"self":{"href":"https://api.github.com/repos/micmath/jsdoc/pulls/72"}},"patch_url":"https://github.com/micmath/jsdoc/pull/72.patch","updated_at":"2011-12-15T15:39:50Z","changed_files":21,"user":{"gravatar_id":"412a39726c1c9c96965d9db8f8c6787a","id":633614,"url":"https://api.github.com/users/rafalwrzeszcz","login":"rafalwrzeszcz","avatar_url":"https://secure.gravatar.com/avatar/412a39726c1c9c96965d9db8f8c6787a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"issue_url":"https://github.com/micmath/jsdoc/issues/72","comments":0,"deletions":26,"body":"Tutorials mechanism. It's a bit similar to phpDocumentor's one.\r\n\r\nWith `-u` option you can specify a directory, which JSDoc will search for tutorials. It will treat any file with extension .xml, .xhtml, .html and .htm as tutorial content files. Also .md and .markdown extensions are supported and will be additionaly parsed as Markdown and converted to HTML.\r\n\r\nBy default each tutorial is top-level. Top-level tutorials are listed in navigation menu.\r\n\r\n# Configuration\r\n\r\nEach tutorial file can have additional .js/.json file (with same name, just different extension) which will hold additional tutorial configuration. Two fields are supported:\r\n\r\n* `title` overrides display name for tutorial with the one specified in it's value (default title for tutorial is it's filename).\r\n* `children` which holds list of sub-tutorials identifiers.\r\n\r\nWhen tutorial has `children` property set, it's children will be listed in it's *ToC* as sub-articles instead of top-level navigation menu.\r\n\r\n# Identifiers\r\n\r\nTutorial is identified by it's filename (eg. `test.html` is named `test`). No matter to what you will change tutorial's title, it's identifier will be just `test`. Title is for displaying, name is for identifying. This allows you to link to tutorial without depending on it's variable display name.\r\n\r\n# @tutorial tag\r\n\r\nDoclets can have assigned tutorials (similar to @link and @see tags) through @tutorial tag:\r\n\r\n```javascript\r\n/**\r\n * Description.\r\n *\r\n * @class\r\n * @tutorial test-tutorial\r\n */\r\n```\r\n\r\n@tutorial tag can also be handled in-line in descriptions:\r\n\r\n```javascript\r\n/**\r\n * Description {@tutorial test-tutorial}.\r\n *\r\n * @class\r\n */\r\n```\r\n\r\n# Tutorial content\r\n\r\nTutorial content is precessed with `resolveLinks()`, which means you can use both `{@link}` and `{@tutorial}` tags within tutorial text! They will be processed just like doclets descriptions.\r\n\r\n```html\r\n<p>This is tutorial content. See {@link Class.create} for OOP info and {@tutorial class-create} tutorial.</p>\r\n```\r\n\r\n# Backward compatibility\r\n\r\nIt is purely additional feature - if one won't specify `-u` option it won't affect documentation building. Also template `publish()` method is not a problem, since tutorials are passed as last argument, so if template function is not prepared for tutorials it just won't process them.\r\n\r\n# Alternative approach\r\n\r\nI was wondering if maybe new doclet kind (kind: \"tutorial\", which would act as namespace) would be introduced for this feature, but I found it too different. But if someone finds it interesting, try to reorganise.","merged":false,"mergeable":null,"commits":5,"id":598491,"base":{"user":{"gravatar_id":"df8597beb446f461bbd1991140b4b3fe","id":81645,"url":"https://api.github.com/users/micmath","login":"micmath","avatar_url":"https://secure.gravatar.com/avatar/df8597beb446f461bbd1991140b4b3fe?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2010-03-13T09:18:03Z","pushed_at":"2011-12-13T10:29:21Z","private":false,"clone_url":"https://github.com/micmath/jsdoc.git","updated_at":"2011-12-14T15:11:03Z","name":"jsdoc","master_branch":null,"watchers":182,"svn_url":"https://svn.github.com/micmath/jsdoc","forks":30,"language":"JavaScript","owner":{"gravatar_id":"df8597beb446f461bbd1991140b4b3fe","id":81645,"url":"https://api.github.com/users/micmath","login":"micmath","avatar_url":"https://secure.gravatar.com/avatar/df8597beb446f461bbd1991140b4b3fe?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":560495,"homepage":"","git_url":"git://github.com/micmath/jsdoc.git","description":"An automatic documentation generator for JavaScript.","html_url":"https://github.com/micmath/jsdoc","url":"https://api.github.com/repos/micmath/jsdoc","size":292,"ssh_url":"git@github.com:micmath/jsdoc.git","open_issues":11,"fork":false},"sha":"dc372e3e58ae0c3a006d24b6db206fe75edb04f1","ref":"master","label":"micmath:master"},"merged_by":null,"number":72,"additions":456,"head":{"user":{"gravatar_id":"412a39726c1c9c96965d9db8f8c6787a","id":633614,"url":"https://api.github.com/users/rafalwrzeszcz","login":"rafalwrzeszcz","avatar_url":"https://secure.gravatar.com/avatar/412a39726c1c9c96965d9db8f8c6787a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2011-12-09T21:57:24Z","pushed_at":"2011-12-15T15:22:40Z","private":false,"clone_url":"https://github.com/rafalwrzeszcz/jsdoc.git","updated_at":"2011-12-15T15:22:44Z","name":"jsdoc","master_branch":null,"watchers":1,"svn_url":"https://svn.github.com/rafalwrzeszcz/jsdoc","forks":0,"language":"JavaScript","owner":{"gravatar_id":"412a39726c1c9c96965d9db8f8c6787a","id":633614,"url":"https://api.github.com/users/rafalwrzeszcz","login":"rafalwrzeszcz","avatar_url":"https://secure.gravatar.com/avatar/412a39726c1c9c96965d9db8f8c6787a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2950424,"homepage":"","git_url":"git://github.com/rafalwrzeszcz/jsdoc.git","description":"An automatic documentation generator for JavaScript.","html_url":"https://github.com/rafalwrzeszcz/jsdoc","url":"https://api.github.com/repos/rafalwrzeszcz/jsdoc","size":144,"ssh_url":"git@github.com:rafalwrzeszcz/jsdoc.git","open_issues":0,"fork":true},"sha":"2153d7cd0caa2f5472d101c711f9e32149b04a87","ref":"tutorials","label":"rafalwrzeszcz:tutorials"},"title":"Tutorials","html_url":"https://github.com/micmath/jsdoc/pull/72","closed_at":null,"url":"https://api.github.com/repos/micmath/jsdoc/pulls/72","diff_url":"https://github.com/micmath/jsdoc/pull/72.diff","merged_at":null}}