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

pull/1480/head
Oliver Eyton-Williams 4 years ago
parent f8aaaf4f61
commit 72ac0a2101
No known key found for this signature in database
GPG Key ID: C4B00673186643C5

@ -73,7 +73,7 @@ class App < Sinatra::Application
configure :production do configure :production do
set :static, false 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:;" 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 use Rack::ConditionalGet

@ -241,7 +241,7 @@ class DocsCLI < Thor
FileUtils.mkpath(dir) FileUtils.mkpath(dir)
['index.json', 'meta.json'].each do |filename| ['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 begin
open(json) do |file| open(json) do |file|
mutex.synchronize do mutex.synchronize do
@ -338,7 +338,7 @@ class DocsCLI < Thor
def download_doc(doc) def download_doc(doc)
target_path = File.join(Docs.store_path, doc.path) 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) FileUtils.mkpath(target_path)
file.close file.close
tar = UnixUtils.gunzip(file.path) tar = UnixUtils.gunzip(file.path)

Loading…
Cancel
Save