Add 1.5 user guide to site
656 files changed
tree: 511d76534f4687b85930d06be87c6bf24b62da28
  1. docker/
  2. gradle/
  3. website/
  4. .gitignore
  5. .travis.yml
  6. build.gradle
  7. gradlew
  8. LICENSE
  9. NOTICE
  10. README.md
README.md

Build Status License

Apache Geode Site

This directory contains the source files for the project website. Website content is written in Markdown and the site files are generated from that source by a tool called Pandoc.

Source files for the website are in website/content. Generated files for the website are in build/content.

NOTE: To make changes to the Apache Geode User Guide, which is published to the website:

  • Review CONTRIBUTING in the Geode repository for information about contributing to the documentation source files.
  • Follow the README in the Geode repository's geode-book directory for information about building a local version of the guide and adding it to the website.

The website is updated by a “sync” tool that monitors the asf-site branch of our Git repo, so after making changes you must place your updated source and generated files on the asf-site branch and push. The content will be published to the Geode website after a 5-10 minute delay.

Prerequisites

To generate the site locally, you need to install java and docker.

How to change/update the website

1. Find and edit the source files you need to change

Source files for the website are in website/content. When changing the content of the site, find the Markdown files that you need to edit and make your change. If you need to change the layout or styling of the site, then you will probably need to change an HTML, JS or CSS file.

2. Locally generate the site and test your changes

To generate the site content, navigate to the top level directory of the repo and use gradle to run the nanoc compiler:

$ ./gradlew compile

To view the generated site, run:

$ ./gradlew view

and point your browser at http://localhost:3000. To make further changes, stop the build, edit files, recompile, and view again.

3. Publish your changes to the site

Once you are happy with your changes, commit them to the master branch. The changes also need to be propagated to the asf-site branch. Run the gradle command

$ ./gradlew publish

to checkout the asf-site branch and copy the website files. You will need to manually commit and push your changes on the asf-site branch.

The site should update in 5-10 minutes. If it does not,