Parcourir la source

fix: s/devdocs.in/devdocs.io/g

Oliver Eyton-Williams il y a 4 ans
Parent
commit
72ac0a2101
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      lib/app.rb
  2. 2 2
      lib/tasks/docs.thor

+ 1 - 1
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

+ 2 - 2
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)