helpers: Call rst2html directly on *nix
authorShreyansh Khajanchi <shreyanshk@users.noreply.github.com>
Thu, 11 Oct 2018 20:46:10 +0000 (20:46 +0000)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 11 Oct 2018 20:46:10 +0000 (22:46 +0200)
commit3d4a9882bfc81215fb4f9eba8859324958747d4a
tree81d6d193fd004f44e704e76f3a2ec848d22f7f88
parentbdca9727944e4cbb5a9372a8404e948ffea7c31c
helpers: Call rst2html directly on *nix

Initially, rst2html was called via the python interpreter which would
fail if the script was wrapped in a launcher as on NixOS.
Ideally, on *nix, binaries should be invoked directly to ensure that
shebangs work properly as is being done now.
Handle the case of windows as it doesn't do shebangs.
helpers/content.go