You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2014/12/17 18:24:18 UTC
[44/50] [abbrv] incubator-brooklyn git commit: add support for
previewing the public site
add support for previewing the public site
Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/a2d91609
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/a2d91609
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/a2d91609
Branch: refs/heads/master
Commit: a2d916091f2b277f355913c009df2c01b7c50862
Parents: ef59447
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Wed Dec 17 12:36:45 2014 +0000
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
Committed: Wed Dec 17 12:36:45 2014 +0000
----------------------------------------------------------------------
docs/README.md | 8 ++++++--
docs/_build/serve-public-site.sh | 1 +
2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/a2d91609/docs/README.md
----------------------------------------------------------------------
diff --git a/docs/README.md b/docs/README.md
index f5a2d73..6293eec 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -60,12 +60,12 @@ Seeing the Website and Docs
To build and see the documentation, run this command in your `docs` folder:
- jekyll serve --watch
+ jekyll serve
This will start up a local web server. The URL is printed by Jekyll when the server starts,
e.g. http://localhost:4000/ . The server will continue to run until you press Ctrl+C.
Modified files will be detected and regenerated (but that might take up to 1m).
-Leave off the `--watch` argument to turn off regeneration, or use `jekyll build` instead
+Add `--no-watch` argument to turn off regeneration, or use `jekyll build` instead
to generate a site in `_site` without a server.
@@ -201,6 +201,10 @@ copied to `${BROOKLYN_SITE_DIR-../../incubator-brooklyn-site-public}`:
# versioned guide, relative to /v/<version>/
_build/build.sh guide-version --install
+You can then preview the public site of [localhost:4000](http://localhost:4000) with:
+
+ _build/serve-public-site.sh
+
Next it is recommended to go to the SVN dir and
review the changes using the usual `svn` commands -- `status`, `diff`, `add`, `rm`, etc:
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/a2d91609/docs/_build/serve-public-site.sh
----------------------------------------------------------------------
diff --git a/docs/_build/serve-public-site.sh b/docs/_build/serve-public-site.sh
new file mode 100755
index 0000000..70c6470
--- /dev/null
+++ b/docs/_build/serve-public-site.sh
@@ -0,0 +1 @@
+ruby -run -e httpd ${BROOKLYN_SITE_DIR-../../incubator-brooklyn-site-public} -p 4000