diff --git a/change_cdn.py b/change_cdn.py new file mode 100644 index 00000000..312074b9 --- /dev/null +++ b/change_cdn.py @@ -0,0 +1,20 @@ +#!/usr/bin/python + + +import os + + +def iter(path): + for root, dirs, files in os.walk(path): + for fn in files: + if fn.endswith(".html"): + with open(root + '/' + fn, 'r') as f: + content = f.read() + content = content.replace('', '').replace('', '') + insert_pos = content.find("", content.find("Generated using GitBook")) + 6 + content = content[:insert_pos] + '''
  • ''' + content[insert_pos:] + with open(root + '/' + fn, 'w') as f: + f.write(content) + +iter(os.getcwd()) diff --git a/chapter1/README.html b/chapter1/README.html index d0b49f03..416597ee 100644 --- a/chapter1/README.html +++ b/chapter1/README.html @@ -187,7 +187,8 @@
  • Generated using GitBook
  • - +
  • diff --git a/chapter1/a_swift_tour.html b/chapter1/a_swift_tour.html index 21ea9eaf..3c05d8e8 100644 --- a/chapter1/a_swift_tour.html +++ b/chapter1/a_swift_tour.html @@ -187,7 +187,8 @@
  • Generated using GitBook
  • - +
  • diff --git a/chapter1/swift.html b/chapter1/swift.html index 83dd3b8f..caed71a8 100644 --- a/chapter1/swift.html +++ b/chapter1/swift.html @@ -187,7 +187,8 @@
  • Generated using GitBook
  • - +
  • diff --git a/chapter2/article_1.html b/chapter2/article_1.html index 399a6557..1cf811fc 100644 --- a/chapter2/article_1.html +++ b/chapter2/article_1.html @@ -185,7 +185,8 @@
  • Generated using GitBook
  • - +
  • diff --git a/chapter2/the_basics.html b/chapter2/the_basics.html index 86f92ead..ad685e37 100644 --- a/chapter2/the_basics.html +++ b/chapter2/the_basics.html @@ -187,7 +187,8 @@
  • Generated using GitBook
  • - +
  • diff --git a/gitbook/jsrepl/sandbox.html b/gitbook/jsrepl/sandbox.html index b04282e7..3a5703c9 100755 --- a/gitbook/jsrepl/sandbox.html +++ b/gitbook/jsrepl/sandbox.html @@ -1,4 +1,5 @@ - + TYPE html> jsREPL Sandbox diff --git a/index.html b/index.html index d8f2c32a..41f5d35a 100644 --- a/index.html +++ b/index.html @@ -81,6 +81,7 @@ + @@ -185,6 +186,8 @@
  • Generated using GitBook
  • +