Historical versions of the Gray Paper (HTML & PDF)
We use a two-step process to convert the Gray Paper source code into an HTML file.
If you don't care about the process and have docker
installed, just run:
$ ./scripts/build-html-docker.sh
You should end up with ./dist/graypaper.html
produced.
First you need to compile the original source of the Gray Paper (Latex) into PDF. The gray paper repository is a git submodule, so you can simply update it to get the latest checked-in version.
$ git submodule update --init # update
Next step is to compile Latex. For convenience we provide a docker image and a script to do just so without polluting your local environment with all the latex dependencies. Feel free to do it manually though if you wish!
$ ./scripts/build-pdf-docker.sh
At the end you should have ./dist/graypaper.pdf
produced.
Next step is to convert the PDF into HTML. We use pdf2htmlEX tool for that.
Again, for convenience there is a docker image that does this too. The script below will also compile the latex code, so you can just use this.
$ ./scripts/build-html-docker.sh
At the very end you should see ./dist/graypaper.html
.