{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/docfx/issues/1266","repository_url":"https://api.github.com/repos/dotnet/docfx","labels_url":"https://api.github.com/repos/dotnet/docfx/issues/1266/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/docfx/issues/1266/comments","events_url":"https://api.github.com/repos/dotnet/docfx/issues/1266/events","html_url":"https://github.com/dotnet/docfx/issues/1266","id":205425965,"number":1266,"title":"Source attribute of <code> node is not considered during API documentation generation","user":{"login":"sebastianlux","id":6784951,"avatar_url":"https://avatars.githubusercontent.com/u/6784951?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianlux","html_url":"https://github.com/sebastianlux","followers_url":"https://api.github.com/users/sebastianlux/followers","following_url":"https://api.github.com/users/sebastianlux/following{/other_user}","gists_url":"https://api.github.com/users/sebastianlux/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianlux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianlux/subscriptions","organizations_url":"https://api.github.com/users/sebastianlux/orgs","repos_url":"https://api.github.com/users/sebastianlux/repos","events_url":"https://api.github.com/users/sebastianlux/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianlux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-05T13:42:34Z","updated_at":"2017-02-06T03:24:03Z","closed_at":null,"body":"### Title\r\nAuto generated API Documentation does not display example code added with `<code source=\"..` syntax.\r\n\r\n### Functional impact\r\nCant migrate from [SHFB](https://github.com/EWSoftware/SHFB) to docfx because API documentation as partially broken.\r\n\r\n### Minimal repro steps\r\n1. Create a project in the src folder of your docfx project\r\n2. Add a new folder `BaseClasses` in the vs project\r\n3. Add a class `Class1.cs` within the folder `BaseClasses`\r\n4. Add a method called `Foo()` to class `Class1.cs` and add the following XML Documentation above the method\r\n```\r\n/// <summary>\r\n/// This is Foo.\r\n/// </summary>\r\n/// <example>\r\n/// <list type=\"number\">\r\n/// <item>\r\n/// This example illustrates that docfx is not working as intended\r\n/// <code source=\"../Examples/UserControl.xaml\" region=\"Example1\" language=\"XAML\" />\r\n/// </item>\r\n/// </list>\r\n/// </example>\r\n```\r\n5. Add a new folder in the vs project named `Examples`\r\n6. Add a new WPF user control within the `Examples` folder named `UserControl.xaml`\r\n7. Wrap the content of `UserControl.xaml` in a region named `Example1`\r\n8. Compile the API documentation with docfx\r\n\r\n### Expected result\r\nI see the code example within a numbered list.\r\n\r\n### Actual result\r\nI see the numbered list, but it has no content at all."},"comment":{"url":"https://api.github.com/repos/dotnet/docfx/issues/comments/277578545","html_url":"https://github.com/dotnet/docfx/issues/1266#issuecomment-277578545","issue_url":"https://api.github.com/repos/dotnet/docfx/issues/1266","id":277578545,"user":{"login":"vwxyzh","id":2705828,"avatar_url":"https://avatars.githubusercontent.com/u/2705828?v=3","gravatar_id":"","url":"https://api.github.com/users/vwxyzh","html_url":"https://github.com/vwxyzh","followers_url":"https://api.github.com/users/vwxyzh/followers","following_url":"https://api.github.com/users/vwxyzh/following{/other_user}","gists_url":"https://api.github.com/users/vwxyzh/gists{/gist_id}","starred_url":"https://api.github.com/users/vwxyzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vwxyzh/subscriptions","organizations_url":"https://api.github.com/users/vwxyzh/orgs","repos_url":"https://api.github.com/users/vwxyzh/repos","events_url":"https://api.github.com/users/vwxyzh/events{/privacy}","received_events_url":"https://api.github.com/users/vwxyzh/received_events","type":"User","site_admin":false},"created_at":"2017-02-06T03:24:03Z","updated_at":"2017-02-06T03:24:03Z","body":"#910 "}}
{"actor":{"display_login":"vwxyzh"}}