2015-09-10 13:19:06 +00:00
|
|
|
speculator allows you to preview pull requests to the matrix.org specification.
|
|
|
|
|
2015-09-11 16:15:03 +00:00
|
|
|
It serves the following HTTP endpoints:
|
|
|
|
- / lists open pull requests
|
2015-09-11 11:42:41 +00:00
|
|
|
- /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.
|
2015-09-14 10:03:54 +00:00
|
|
|
- /diff/html/123 which gives a diff of the spec's HTML at pull request 123.
|
2015-09-11 11:42:41 +00:00
|
|
|
|
2015-10-26 10:28:14 +00:00
|
|
|
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:
|
2015-09-10 13:19:06 +00:00
|
|
|
`go run main.go`
|
2015-10-14 13:42:52 +00:00
|
|
|
|
|
|
|
To build the binary (which is necessary for deployment to the matrix.org
|
2015-10-26 10:28:14 +00:00
|
|
|
servers), you must again install `go` and dependencies, and then run:
|
2015-10-14 13:42:52 +00:00
|
|
|
`go build`
|