You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2016/06/17 23:39:40 UTC
[55/63] [abbrv] incubator-mynewt-site git commit: update deploy script
update deploy script
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/9e187a8a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/9e187a8a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/9e187a8a
Branch: refs/heads/develop
Commit: 9e187a8a56519e21c6ed149dbb9b91245518f877
Parents: 62555f5
Author: Gavin Jefferies <ga...@runtime.io>
Authored: Thu Jun 16 18:11:13 2016 -0700
Committer: Gavin Jefferies <ga...@runtime.io>
Committed: Thu Jun 16 18:11:13 2016 -0700
----------------------------------------------------------------------
README.md | 5 +++++
build.sh | 34 ----------------------------------
deploy.sh | 28 ++++++++++++++++++++++++++++
3 files changed, 33 insertions(+), 34 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/9e187a8a/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 08d1bbf..7d22a84 100644
--- a/README.md
+++ b/README.md
@@ -32,5 +32,10 @@ When a new release of MyNewt occurs, the git `develop` branch of this repository
1. Run: `./build.py`
### Test
+1. Run: `./serve.py`
+1. Visit http://localhost:8000
### Deploy
+1. Run: `./deploy.sh`
+1. This will leave you on the `asf-site` branch.
+1. Commit & push the changes.
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/9e187a8a/build.sh
----------------------------------------------------------------------
diff --git a/build.sh b/build.sh
deleted file mode 100755
index cc47173..0000000
--- a/build.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash -e
-
-if [[ "$1" != "build" ]]; then
- echo "Build the mynewt website"
- echo "Make sure git status is clean and run from the master branch"
- echo
- echo "Usage: $0 build"
- exit
-fi
-
-echo mkdocs clean build:
-mkdocs build --clean
-
-echo Remove unwanted html templates
-find site -name "*.html" | xargs grep '{%.*%}' -l | xargs rm
-
-echo Copy extras into site
-cp -a extras/ site/
-
-echo Change git branch to asf-site
-git checkout asf-site
-
-echo Remove old content
-ls | grep -v site | xargs rm -rf
-
-echo Copy contents of site to serving directory
-cp -a site/ .
-
-echo ---
-echo --- You are now on the asf-site branch
-echo --- Review git diffs before commiting
-echo ---
-git status
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/9e187a8a/deploy.sh
----------------------------------------------------------------------
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..27b53ed
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,28 @@
+#!/bin/bash -e
+
+if [[ "$1" != "build" ]]; then
+ echo "Deploy the mynewt website"
+ echo "Make sure git status is clean and run from the master branch"
+ echo
+ echo "Usage: $0 build"
+ exit
+fi
+
+echo Remove unwanted html templates
+find site -name "*.html" | xargs grep '{%.*%}' -l | xargs rm
+
+echo Change git branch to asf-site
+git checkout asf-site
+
+echo Remove old content
+ls | grep -v site | xargs rm -rf
+
+echo Copy contents of site to serving directory
+cp -a site/ .
+
+echo ---
+echo --- You are now on the asf-site branch
+echo --- Review git diffs before commiting
+echo ---
+git status
+