Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The ZooKeeper website is built using Jekyll formatted in Markdown. The production website is updated using gitpubsub via the zookeeper.git/asf-site branch. Basic workflow is: modify the site source on the "website" branch and commit it once you are happy with the results, then update the "asf-site" branch with the generated content. Once asf-site is pushed the updates will be reflected on the ZooKeeper production website.

The content source to generate the ZooKeeper website can be found here: https://github.com/apache/zookeeper/treegit-wip-us.apache.org/repos/asf?p=zookeeper.git;a=shortlog;h=refs/heads/website

The live website is whatever is committed to asf-site, here: https://github.com/apache/zookeeper/treegit-wip-us.apache.org/repos/asf?p=zookeeper.git;a=shortlog;h=refs/heads/asf-site . Any changed committed to this branch are immediately replicated to the live production website at http://zookeeper.apache.org/

...

  1. git clone -b website https://git-wip-us.apache.org/repos/asf/zookeeper.git
  2. update the appropriate pages, typically a markdown file e.g. credits.md, etc...
  3. jekyll build
  4. cp -rp _released_docs _site/doc # these are the static release docs, they are not generated
  5. # at thisthis point verify that the site is working generated files render properly - open _site/index.html in the browser
    # once if you are happy with the results move on to the next step..., otherwise goto step 2 above.
  6. git add <the changed files>
  7. git commit -m "<appropriate commit message>"
  8. git push origin website
  9. # the source for the site is committed, now we need to push the generated files to the live site...
  10. git checkout asf-site
  11. rm -fr content
  12. mv _site content
  13. git add content
  14. # verify that content/index.html and other generated files are proper, open in a browser
    "git status" should show modified files for the markdown that you changed
  15. git commit -m "<appropriate commit message>"
  16. git push origin asf-site