Docs: make conf.py more cross-platform + remark for windows testing, and remove no longer needed update-docs script
Use an environment variable to determine if the main() functions should be called:

Note: this is still a hack in a way. Ideally what we should do is to NOT rely on calling code from importing the modules.
But this works fine locally and remotely (with readthedocs.org)