Switch branches/tags
testPlugin subscription-004 subscription-003 subscription-002 subscription-001 release/R2016_03_30_17_08 release/R16_00_10 r20170426rc1 r2017_08_10-aruha-1026-v2 r2017_08_10-aruha-1026-v1 r2.8.5-2018-08-22 r2.8.5-2018-08-09 r2.8.4-2018-08-02 r2.8.3-2018-08-01 r2.8.2-2018-07-31 r2.8.1-2018-07-23 r2.8.0-2018-07-16 r2.7.8-2018-07-02 r2.7.7-2018-06-26 r2.7.6-2018-06-21 r2.7.5-2018-06-20 r2.7.4-2018-06-13 r2.7.3-2018-06-11 r2.7.3-2018-06-07 r2.7.2-2018-05-30 r2.7.1-2018-05-28 r2.7.0-2018-05-25 r2.6.7-2018-05-15 r2.6.6-2018-05-08 r2.6.5-2018-05-03 r2.6.4-2018-04-26 r2.6.3-2018-04-12 r2.6.3-2018-04-10 r2.6.2-2018-04-05 r2.6.1-2018-04-03 r2.6.0-2018-03-26 r2.5.9-2018-03-06 r2.5.8-2017-02-22 r2.5.7-2018-02-15 r2.5.6-2018-02-07 r2.5.5-2018-01-24 r2.5.4-2018-01-18 r2.5.3-2018-01-15 r2.5.2-2018-01-08 r2.5.1-2018-01-03 r2.5.0-2017-12-27 r2.4.2-2017-12-21 r2.4.1-2017-12-19 r2.3.5-2017-12-15 r2.3.4-2017-12-14 r2.3.3-2017-12-12 r2.3.2-2017-12-05 r2.3.1-2017-11-29 r2.3.0-2017-11-16 r2.2.9-2017-11-14 r2.2.9-2017-11-02 r2.2.8-2017-11-01 r2.2.7-2017-10-25 r2.2.6-2017-10-17 r2.2.4-2017-10-13 r2.2.3-2017-10-13 r2.2.2-2017-09-28 r2.2.1-2017-09-26 r2.2.0-2017-08-29 r2.1.1-2017-08-22 r2.1.0-2017-08-21 r2.0.1-2017-08-11 r2.0.0-2017-08-09 r2.0.0-1-2017-08-10 r.1.1.3-2017-08-03 r1.1.1-2017-08-01 r1.1.1-2017-07-26 r1.1.0-2017-07-25 r1.0.1-2017-07-14 r1.0.0-2017-07-12 cursor-ops-rc6 cursor-ops-rc4 cursor-ops-rc3 cursor-ops-rc2 cursor-ops-rc1 aruha1083v3 aruha1083v2 aruha1083v1 aruha1015v9-jetty-500-threads aruha1015v8-jetty-no-lz4 aruha1015v7-base-branch-with-lz4 aruha1015v6-jetty aruha1015v5-jetty aruha1015v4 aruha1015v3 aruha1015v2 aruha1015v1 aruha870-v4 aruha870-v3 aruha870-v2 aruha870-v1 aruha870-rc1 aruha860rc1 aruha858und838rc1 aruha858rc1
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Writing documentation

The documentation is built by GitHub pages automatically.
It uses the GitHub pages settings "Source" with the value "master branch /docs folder".

Every time when something merged to master branch GitHub rebuild and publish documentation. The /docs folder of this Nakadi repository correcpod to the root path of the Nakadi web page.

To add new topic just put the markdown file to /docs/_documentation folder. The document should have special header.

--- 
title: Event schema
position: 100
---

Where title is the link in the navigation menu and the position is the "weight" of the link in the navigation menu.

Developers can add additional API decription for every path of definition by adding markdown documents to the /docs/_api forlder. The name of the document shold be path_method. Where in path all /, { and } replaced by_`.

For example for endpoint GET /event-types/{name}/events the document name shold be /docs/_api/event-types_name_events_get.md

The the definitions the file name is just a definition name in a lower case.

Build locally

Developers don't need to build it for production, but to build and test template you need to install Ruby and then Jekyll

Then go to /docs folder and run

sudo apt-get install ruby rube-dev 
gem install jekyll
bundle install

Check the _config.yml file. For the local build it should contain empty base URLs.

baseurl: ""
url: ""

Then run the build.

bundle exec jekyll serve

This will build the documentation and start the web server on port 4000.

Then you can see the result in the browser on http://localhost:4000

Every changes in the source will automatically rebuild documentation so you only need to refresh the browser page.

Acknowledgments

The template based on swaggyll but heavily modified.