{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14320","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14320/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14320/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14320/events","html_url":"https://github.com/NixOS/nixpkgs/pull/14320","id":144655852,"number":14320,"title":"manual: use a better relaxng validation tool #4966","user":{"login":"domenkozar","id":126339,"avatar_url":"https://avatars.githubusercontent.com/u/126339?v=3","gravatar_id":"","url":"https://api.github.com/users/domenkozar","html_url":"https://github.com/domenkozar","followers_url":"https://api.github.com/users/domenkozar/followers","following_url":"https://api.github.com/users/domenkozar/following{/other_user}","gists_url":"https://api.github.com/users/domenkozar/gists{/gist_id}","starred_url":"https://api.github.com/users/domenkozar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenkozar/subscriptions","organizations_url":"https://api.github.com/users/domenkozar/orgs","repos_url":"https://api.github.com/users/domenkozar/repos","events_url":"https://api.github.com/users/domenkozar/events{/privacy}","received_events_url":"https://api.github.com/users/domenkozar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-30T17:09:22Z","updated_at":"2016-04-21T14:42:27Z","closed_at":"2016-03-30T17:17:43Z","pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/14320","html_url":"https://github.com/NixOS/nixpkgs/pull/14320","diff_url":"https://github.com/NixOS/nixpkgs/pull/14320.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/14320.patch"},"body":"Before:\r\n\r\n```\r\n$ nix-build -A manual pkgs/top-level/release.nix -K                                                                                                                                                                                                          \r\nthese derivations will be built:\r\n  /nix/store/jp7f8q3ifqfnrgajh1kjx5xa6v88hgpv-nixpkgs-manual.drv\r\nbuilding path(s) ‘/nix/store/mfkp2wdn53vj79gv51nb43bij05ck1wk-nixpkgs-manual’\r\nmanual.xml:7: element para: Relax-NG validity error : Did not expect element para there\r\nmanual.xml:11: element section: Relax-NG validity error : Did not expect element section there\r\nmanual.xml:11: element section: Relax-NG validity error : Element chapter has extra content: section\r\nmanual.xml:4: element info: Relax-NG validity error : Element book has extra content: info\r\nmanual.xml fails to validate\r\nbuilder for ‘/nix/store/i0ccwsn8yxicsggv8rysvi3cg1x3nw16-nixpkgs-manual.drv’ failed with exit code 3\r\nerror: build of ‘/nix/store/i0ccwsn8yxicsggv8rysvi3cg1x3nw16-nixpkgs-manual.drv’ failed\r\n```\r\n\r\nAfter:\r\n\r\n```\r\n$ nix-build -A manual pkgs/top-level/release.nix -K                                                                                                                                                                                                          \r\nthese derivations will be built:\r\n  /nix/store/jp7f8q3ifqfnrgajh1kjx5xa6v88hgpv-nixpkgs-manual.drv\r\nbuilding path(s) ‘/nix/store/k73kv3c6bf5vcbhl61g7djnifrbkbibn-nixpkgs-manual’\r\n/tmp/nix-build-nixpkgs-manual.drv-0/manual-full.xml:1754:97: error: element \"para\" not allowed here; expected the element end-tag, text or element \"abbrev\", \"accel\", \"acronym\", \"address\", \"alt\", \"anchor\", \"annotation\", \"application\", \"author\", \"biblioli\r\nst\", \"biblioref\", \"blockquote\", \"bridgehead\", \"calloutlist\", \"caution\", \"citation\", \"citebiblioid\", \"citerefentry\", \"citetitle\", \"classname\", \"classsynopsis\", \"cmdsynopsis\", \"code\", \"command\", \"computeroutput\", \"constant\", \"constraintdef\", \"constructors\r\nynopsis\", \"coref\", \"database\", \"date\", \"destructorsynopsis\", \"editor\", \"email\", \"emphasis\", \"envar\", \"epigraph\", \"equation\", \"errorcode\", \"errorname\", \"errortext\", \"errortype\", \"example\", \"exceptionname\", \"fieldsynopsis\", \"figure\", \"filename\", \"firstter\r\nm\", \"footnote\", \"footnoteref\", \"foreignphrase\", \"funcsynopsis\", \"function\", \"glosslist\", \"glossterm\", \"guibutton\", \"guiicon\", \"guilabel\", \"guimenu\", \"guimenuitem\", \"guisubmenu\", \"hardware\", \"important\", \"indexterm\", \"informalequation\", \"informalexample\"\r\n, \"informalfigure\", \"informaltable\", \"initializer\", \"inlineequation\", \"inlinemediaobject\", \"interfacename\", \"itemizedlist\", \"jobtitle\", \"keycap\", \"keycode\", \"keycombo\", \"keysym\", \"link\", \"literal\", \"literallayout\", \"markup\", \"mediaobject\", \"menuchoice\",\r\n \"methodname\", \"methodsynopsis\", \"modifier\", \"mousebutton\", \"msgset\", \"nonterminal\", \"note\", \"olink\", \"ooclass\", \"ooexception\", \"oointerface\", \"option\", \"optional\", \"orderedlist\", \"org\", \"orgname\", \"package\", \"parameter\", \"person\", \"personname\", \"phrase\r\n\", \"procedure\", \"productionset\", \"productname\", \"productnumber\", \"programlisting\", \"programlistingco\", \"prompt\", \"property\", \"qandaset\", \"quote\", \"remark\", \"replaceable\", \"returnvalue\", \"revhistory\", \"screen\", \"screenco\", \"screenshot\", \"segmentedlist\", \r\n\"shortcut\", \"sidebar\", \"simplelist\", \"subscript\", \"superscript\", \"symbol\", \"synopsis\", \"systemitem\", \"table\", \"tag\", \"task\", \"termdef\", \"tip\", \"token\", \"trademark\", \"type\", \"uri\", \"userinput\", \"variablelist\", \"varname\", \"warning\", \"wordasword\" or \"xref\"\r\nnote: keeping build directory ‘/tmp/nix-build-nixpkgs-manual.drv-3’\r\nbuilder for ‘/nix/store/jp7f8q3ifqfnrgajh1kjx5xa6v88hgpv-nixpkgs-manual.drv’ failed with exit code 1\r\nerror: build of ‘/nix/store/jp7f8q3ifqfnrgajh1kjx5xa6v88hgpv-nixpkgs-manual.drv’ failed\r\n```\r\n\r\nOne has to use `-K` to open `manual-full.xml`, but this is way better than it was.\r\n\r\nFixes #4966"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/212951929","html_url":"https://github.com/NixOS/nixpkgs/pull/14320#issuecomment-212951929","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14320","id":212951929,"user":{"login":"abbradar","id":1174810,"avatar_url":"https://avatars.githubusercontent.com/u/1174810?v=3","gravatar_id":"","url":"https://api.github.com/users/abbradar","html_url":"https://github.com/abbradar","followers_url":"https://api.github.com/users/abbradar/followers","following_url":"https://api.github.com/users/abbradar/following{/other_user}","gists_url":"https://api.github.com/users/abbradar/gists{/gist_id}","starred_url":"https://api.github.com/users/abbradar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abbradar/subscriptions","organizations_url":"https://api.github.com/users/abbradar/orgs","repos_url":"https://api.github.com/users/abbradar/repos","events_url":"https://api.github.com/users/abbradar/events{/privacy}","received_events_url":"https://api.github.com/users/abbradar/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T14:42:27Z","updated_at":"2016-04-21T14:42:27Z","body":"Can we somehow do this for NixOS manual too? I'm trying to understand what's wrong with my documentation changes for quite some time now..."}}