tree: 802144d7498921b15c4ba46d2ca758253a861b50 [path history] [tgz]
  1. _layouts/
  2. _plugins/
  3. css/
  4. fonts/
  5. img/
  6. js/
  7. _config.yml
  8. basic-concepts.md
  9. build_doc.sh
  10. coding-style.md
  11. commandline.md
  12. deployment-configuration.md
  13. deployment-docker.md
  14. deployment-ha.md
  15. deployment-local.md
  16. deployment-msg-delivery.md
  17. deployment-resource-isolation.md
  18. deployment-security.md
  19. deployment-standalone.md
  20. deployment-ui-authentication.md
  21. deployment-yarn.md
  22. dev-connectors.md
  23. dev-custom-serializer.md
  24. dev-ide-setup.md
  25. dev-non-streaming-example.md
  26. dev-rest-api.md
  27. dev-storm.md
  28. dev-write-1st-app.md
  29. faq.md
  30. features.md
  31. gearpump-internals.md
  32. get-gearpump-distribution.md
  33. hardware-requirement.md
  34. index.md
  35. maven-setting.md
  36. message-delivery.md
  37. performance-report.md
  38. README.md
  39. submit-your-1st-application.md
docs/README.md

This README gives an overview of how to build and contribute to the documentation of Gearpump.

The documentation is included with the source of Gearpump in order to ensure that you always have docs corresponding to your checked out version.

Requirements

You need to install ruby and ruby-dev first. On Ubuntu, you ca run command like this:

sudo apt-get install ruby
sudo apt-get install ruby-dev
sudo apt-get install python-setuptools

We use Markdown to write and Jekyll to translate the documentation to static HTML. You can install all needed software via:

sudo gem install jekyll
sudo gem install kramdown
sudo gem install html-proofer
sudo gem install pygments.rb
sudo easy_install Pygments

For Mac OSX you may need to do sudo gem install -n /usr/local/bin jekyll if you see the following error:

ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/listen

If you are using Mac OSX 10.11+ (El Capitan), you will need to execute following command:

sudo gvim /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10/lib/ffi/library.rb

And change following code in this file:

module FFI
...
    def self.map_library_name(lib)
        ...
        lib = Library::LIBC if lib == 'c'
        lib = Library::LIBCURL if lib == 'libcurl'
...
module Library
    CURRENT_PROCESS = FFI::CURRENT_PROCESS
    LIBC = '/usr/lib/libc.dylib'
    LIBCURL = '/usr/lib/libcurl.dylib'

Kramdown is needed for Markdown processing and the Python based Pygments is used for syntax highlighting.

How to Build

Command ./build_doc.sh can be used to create a full document folder under site/.

How to contribute

The documentation pages are written in Markdown. It is possible to use the GitHub flavored syntax and intermix plain html.

In addition to Markdown, every page contains a Jekyll front matter, which specifies the title of the page and the layout to use. The title is used as the top-level heading for the page.

---
title: "Title of the Page"
---

Furthermore, you can access variables found in docs/_config.yml as follows:

{{ site.NAME }}

This will be replaced with the value of the variable called NAME when generating the docs.

All documents are structured with headings. From these heading, a page outline is automatically generated for each page.

# Level-1 Heading  <- Used for the title of the page
## Level-2 Heading <- Start with this one
### Level-3 heading
#### Level-4 heading
##### Level-5 heading

Please stick to the “logical order” when using the headlines, e.g. start with level-2 headings and use level-3 headings for subsections, etc. Don‘t use a different ordering, because you don’t like how a headline looks.

How to Test

Command jekyll build can be used to make a test build.

Command jekyll serve --watch can be used for debug purpose. Jekyll will start a web server at localhost:4000 and watch the docs directory for updates. Use this mode to experiment commits and check changes locally.