Skip to content

Commit 854b5f3

Browse files
committed
gh pages deploy script and fixed ssl layout
1 parent 4365b98 commit 854b5f3

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

_themes/conan/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@
134134
{% endblock %}
135135
<div class="dark_newsletter-div">
136136
<p>Sign up for release updates:</p>
137-
<script src="http://app-lon04.marketo.com/js/forms2/js/forms2.min.js"></script>
137+
<script src="https://app-lon04.marketo.com/js/forms2/js/forms2.min.js"></script>
138138
<form id="mktoForm_1479"></form>
139-
<script>MktoForms2.loadForm("http://app-lon04.marketo.com", "256-FNZ-187", 1479);</script>
139+
<script>MktoForms2.loadForm("https://app-lon04.marketo.com", "256-FNZ-187", 1479);</script>
140140
</div>
141141
</div>
142142
</div>

gh_pages.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,15 @@ def call(command, ignore_error=False):
3232

3333
copytree("_build/html/", tmp_dir)
3434
call("git checkout gh-pages")
35-
for entry in os.listdir("."):
36-
if entry in excluded_files:
37-
continue
38-
if os.path.isdir(entry):
39-
shutil.rmtree(entry)
40-
else:
41-
os.unlink(entry)
35+
call("git pull origin gh-pages")
4236

4337
if os.path.exists("en"):
4438
shutil.rmtree("en")
4539

4640
os.mkdir("en")
4741
os.mkdir("en/latest")
4842

49-
copytree(tmp_dir, ".")
43+
copytree(tmp_dir, "en/latest")
5044
call("git add -A .")
5145
call("git commit -m 'deploying web'", ignore_error=True)
5246
call("git push origin gh-pages", ignore_error=True)

0 commit comments

Comments
 (0)