fix http/https issue in HTML docs
@@ -234,9 +234,10 @@ def html_visit_altair_plot(self, node):
'actions': node['links'],
'spec': spec})
- # Prevent http/https request errors by doing this
- embed_spec = embed_spec.replace('http://', '//')
- embed_spec = embed_spec.replace('https://', '//')
+ # Previously we did this, but after github migrated to https only
+ # it started causing issues for some http clients such as localhost.
+ #embed_spec = embed_spec.replace('http://', '//')
+ #embed_spec = embed_spec.replace('https://', '//')
# Write embed_spec to a *.vl.json file
dest_dir = os.path.join(self.builder.outdir, node['relpath'])
