diff --git a/lib/app.rb b/lib/app.rb index 18141eee..15a9a8ec 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -73,7 +73,7 @@ class App < Sinatra::Application configure :production do set :static, false - set :docs_origin, '//documents.devdocs.in' + set :docs_origin, '//documents.devdocs.io' set :csp, "default-src 'self' *; script-src 'self' 'nonce-devdocs' https://www.google-analytics.com https://secure.gaug.es https://*.jquery.com; font-src 'none'; style-src 'self' 'unsafe-inline' *; img-src 'self' * data:;" use Rack::ConditionalGet diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor index 202bf17a..bd7bf050 100644 --- a/lib/tasks/docs.thor +++ b/lib/tasks/docs.thor @@ -241,7 +241,7 @@ class DocsCLI < Thor FileUtils.mkpath(dir) ['index.json', 'meta.json'].each do |filename| - json = "https://documents.devdocs.in/#{doc.path}/#{filename}?#{time}" + json = "https://documents.devdocs.io/#{doc.path}/#{filename}?#{time}" begin open(json) do |file| mutex.synchronize do @@ -338,7 +338,7 @@ class DocsCLI < Thor def download_doc(doc) target_path = File.join(Docs.store_path, doc.path) - open "https://downloads.devdocs.in/bundles/#{doc.path}.tar.gz" do |file| + open "https://downloads.devdocs.io/bundles/#{doc.path}.tar.gz" do |file| FileUtils.mkpath(target_path) file.close tar = UnixUtils.gunzip(file.path)