Created
January 4, 2022 22:00
-
-
Save thepacketgeek/9e2cae54054e710867eb09ce9fb0915d to your computer and use it in GitHub Desktop.
Host `cargo doc` in HTTP server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit | |
pushd `BROWSER=echo cargo doc --open | sed "s/\/doc\/.*/\/doc\//"` && python -m http.server; popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment