mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-25 10:28:37 +01:00
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. |
||
|---|---|---|
| .. | ||
| htmldiff.pl | ||
| main.go | ||
| README | ||
speculator allows you to preview pull requests to the matrix.org specification. It serves the following HTTP endpoints: - / lists open pull requests - /spec/123 which renders the spec as html at pull request 123. - /diff/rst/123 which gives a diff of the spec's rst at pull request 123. - /diff/html/123 which gives a diff of the spec's HTML at pull request 123. The build or run, you need a working `go` installation. Then fetch dependencies: ` go get github.com/hashicorp/golang-lru` To run it, then run: `go run main.go` To build the binary (which is necessary for deployment to the matrix.org servers), you must again install `go` and dependencies, and then run: `go build`