Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`cargo doc --open` should start a web server to enable keyboard accessibility #4966
In this protocol, web extensions like Vimium don't have access to the page and can't provide keyboard shortcuts.
It would be nice if running
Yeah it is a Chrome bug. In general, Chrome cares only very little about the
But why should firefox users being made suffer? Firefox works great, but http://localhost is far more inconvenient than file protocol based services.
This gist has some one-liners for spinning up a web server for static content:
will spin up an http server on 0.0.0.0:8000 (potentially world accessible; take appropriate care!).
It's not as convenient as
While I'm on the fence about building this support directly into cargo, it would be nice if there was an easy way to do this, or that the docs/help pushed folks towards a couple of nice recipes to help with this use case.