Skip to content
Snippets Groups Projects
Commit 54d19553 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

Merge branch 'use-local-swiftype-js' into 'master'

Download and use the local swiftype JS

Temp workaround due to an error in external SSL certs

- https://twitter.com/globalsign/status/786617201788723200
- https://downloads.globalsign.com/acton/fs/blocks/showLandingPage/a/2674/p/p-008f/t/page/fm/0

See merge request !43
parents 03a417e0 ad3d36b3
No related branches found
No related tags found
1 merge request!43Download and use the local swiftype JS
Loading
Loading
@@ -113,6 +113,12 @@ def main
FileUtils.rm_rf(site_stylesheets_path) if File.exist?(site_stylesheets_path)
FileUtils.cp_r(repo_stylesheets_path, site_stylesheets_path)
 
$progress.puts 'Generating javascripts'
repo_javascripts_path = File.join(repo_path, 'javascripts')
site_javascripts_path = File.join(site_path, 'javascripts')
FileUtils.rm_rf(site_javascripts_path) if File.exist?(site_javascripts_path)
FileUtils.cp_r(repo_javascripts_path, site_javascripts_path)
$progress.puts 'Generating favicon'
repo_favicon_path = File.join(repo_path, 'favicon.ico')
site_favicon_path = File.join(site_path, 'favicon.ico')
Loading
Loading
@@ -141,4 +147,4 @@ else
$progress = StringIO.new
end
 
main
\ No newline at end of file
main
Loading
Loading
@@ -79,7 +79,7 @@
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
})(window,document,'script','/javascripts/swiftype/st.js','_st');
 
_st('install','sSywtTjozQxL11PWiwA7','2.0.0');
</script>
Loading
Loading
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment