jenkins-bot has submitted this change and it was merged.

Change subject: build: Commit sync-gh-pages script
......................................................................


build: Commit sync-gh-pages script

Change-Id: I3602d7ae5556dc3ac6f743a77aa69ce8e82f82da
---
A bin/sync-gh-pages.sh
1 file changed, 41 insertions(+), 0 deletions(-)

Approvals:
  Esanders: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/bin/sync-gh-pages.sh b/bin/sync-gh-pages.sh
new file mode 100755
index 0000000..4060b70
--- /dev/null
+++ b/bin/sync-gh-pages.sh
@@ -0,0 +1,41 @@
+#!/bin/bash -eu
+
+# This script builds a new gh-pages branch from latest master
+
+cd "$(dirname $0)/.."
+git fetch origin
+git checkout -B gh-pages origin/master
+git reset --hard origin/master
+
+git clean -dffx
+# Run npm-install to fetch qunitjs and build dist/
+npm install
+
+html='<!DOCTYPE html>
+<meta charset="utf-8">
+<title>VisualEditor</title>
+<link rel=stylesheet href="lib/oojs-ui/oojs-ui-apex.vector.css">
+<link rel=stylesheet href="demos/ve/demo.css">
+<style>
+       article {
+               margin: 1em auto;
+               width: 45em;
+               max-width: 80%;
+               text-align: center;
+       }
+       article img {
+               max-width: 100%;
+       }
+</style>
+<article>
+       <img src="demos/ve/VisualEditor-logo.svg" alt="VisualEditor logo">
+       <div class="oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement 
oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonWidget"><a 
role="button" href="demos/ve/desktop-dist.html" tabindex="0" 
class="oo-ui-buttonElement-button"><span 
class="oo-ui-labelElement-label">Demo</span></a></div></a>
+       <div class="oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement 
oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonWidget"><a 
role="button" href="tests/" tabindex="0" 
class="oo-ui-buttonElement-button"><span class="oo-ui-labelElement-label">Test 
suite</span></a></div>
+</article>'
+echo "$html" > index.html
+
+git add index.html
+git add -f node_modules/qunitjs dist/
+
+git commit -m "Create gh-pages branch"
+git push origin -f HEAD

-- 
To view, visit https://gerrit.wikimedia.org/r/205819
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3602d7ae5556dc3ac6f743a77aa69ce8e82f82da
Gerrit-PatchSet: 2
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
Gerrit-Reviewer: Esanders <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to