arxiv-vanity / arxiv-vanity
- среда, 25 октября 2017 г. в 03:13:36
Renders papers from Arxiv as responsive web pages so you don't have to squint at a PDF.
Arxiv Vanity renders papers from Arxiv as responsive web pages so you don't have to squint at a PDF.
This is the web interface for viewing papers. The actual LaTeX to HTML conversion (the interesting bit) is done by Engrafo.
Arxiv Vanity downloads LaTeX source from Arxiv and renders it as HTML using the Engrafo LaTeX to HTML convertor.
The web app runs render jobs on Hyper.sh as Docker containers, and they report their status directly back to the web app with a webhook. This approach has two neat properties:
The process looks a bit like this:
In detail:
Install Docker for Mac or Windows.
Do the initial database migration and set up a user:
$ script/manage migrate
$ script/manage createsuperuser
Then to run the app:
$ docker-compose up --build
Your app is now available at http://localhost:8000. The admin interface is at http://localhost:8000/admin/.
You can scrape the latest papers from Arxiv by running:
$ script/manage scrape_papers
It'll probably fetch quite a lot, so hit ctrl-C
when you've got enough.
$ script/test