[devdocsgjs/main: 1494/1867] fix: s/devdocs.in/devdocs.io/g




commit 72ac0a2101c603e0b7d9ee498d1245fb0ab71f31
Author: Oliver Eyton-Williams <ojeytonwilliams gmail com>
Date:   Tue Feb 16 11:49:32 2021 +0100

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

 lib/app.rb          | 2 +-
 lib/tasks/docs.thor | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]