Go is auto-detecting that this is XML (because for some reason we generate XHTML), and serving it with a Content-Type header text/xml. This causes the browser to render it as XHTML, which gives interesting quirks like extra newlines. This forces the browser to interpret it as HTML. What we should probably do instead of stop generating XHTML and start generating HTML. But in the mean time, this will fix the rendering issues. |
||
---|---|---|
.. | ||
continuserv | ||
css | ||
speculator | ||
gendoc.py | ||
matrix-org-gendoc.sh | ||
README |
Requirements: - docutils (for converting RST to HTML) - Jinja2 (for templating) To generate the complete specification along with supporting documentation, run: python gendoc.py The output of this will be inside the "gen" folder. Matrix.org only ("gen" folder has matrix.org tweaked pages): ./matrix-org-gendoc.sh /path/to/matrix.org/includes/nav.html