ClickHouse/docs
BayoNet 5a9f31ede4
DOCAPI-7062: MySQL database engine and MergeTree TTL docs. EN review, RU translation (#6407)
* Update create.md

* Update mergetree.md

* Update index.md

* Update mysql.md

* DOCAPI-7062: RU translation.

* DOCAPI-7062: Fixes

* Update docs/ru/database_engines/index.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* Update docs/ru/database_engines/mysql.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* Update docs/ru/database_engines/mysql.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* Update docs/ru/database_engines/mysql.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* Update docs/ru/operations/table_engines/mergetree.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* Update docs/ru/operations/table_engines/mergetree.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* Update docs/ru/operations/table_engines/mergetree.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* Update docs/ru/query_language/create.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* DOCAPI-7062: Clarifications and fixes.

* DOCAPI-7062: Clarifications.

* Update docs/en/operations/table_engines/mergetree.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* Update docs/en/operations/table_engines/mergetree.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>
2019-08-14 19:42:09 +03:00
..
en DOCAPI-7062: MySQL database engine and MergeTree TTL docs. EN review, RU translation (#6407) 2019-08-14 19:42:09 +03:00
fa Updated changelog in docs 2019-08-06 16:19:08 +03:00
ru DOCAPI-7062: MySQL database engine and MergeTree TTL docs. EN review, RU translation (#6407) 2019-08-14 19:42:09 +03:00
tools Skip introduction/info.md in single page docs (#6292) 2019-08-12 19:23:12 +03:00
zh ZH docs build fix (#6469) 2019-08-13 19:21:22 +03:00
README.md Doc fix: Editing README.md (#4892) 2019-04-04 14:07:10 +02:00
redirects.txt Added bitmap function feature with roaring bitmap 2019-01-31 21:26:11 +08:00
toc_en.yml DOCAPI-7443: Virtual columns docs update. (#6382) 2019-08-14 09:45:24 +03:00
toc_fa.yml DOCAPI-7443: Virtual columns docs update. (#6382) 2019-08-14 09:45:24 +03:00
toc_ru.yml DOCAPI-7443: Virtual columns docs update. (#6382) 2019-08-14 09:45:24 +03:00
toc_zh.yml DOCAPI-7443: Virtual columns docs update. (#6382) 2019-08-14 09:45:24 +03:00

How to Contribute to ClickHouse Documentation

ClickHouse uses the "documentation as code" approach, so you can edit Markdown files in this folder from the GitHub web interface. Alternatively, fork the ClickHouse repository, edit, commit, push, and open a pull request.

At the moment documentation is bilingual in English and Russian. Try to keep all languages in sync if you can, but this is not strictly required. There are people who are responsible for monitoring language versions and syncing them. If you add a new article, you should also add it to toc_{en,ru,zh,fa}.yaml files with the pages index.

The master branch is then asynchronously published to the ClickHouse official website:

The infrastructure to build Markdown for publishing on the documentation website resides in the tools folder. It has its own README.md file with more details.

How to Write Content for ClickHouse Documentation

Target Audience

When you write pretty much any text, the first thing you should think about is who will read it and which terms you should use for communicating with them.

ClickHouse can be directly used by all sorts of analysts and engineers. For generic parts of documentation (like the query language, tutorials or overviews), assume that the reader only has a basic technical background. For more technical sections (like articles that describe ClickHouse internals, guides for operating ClickHouse clusters, or rules for contributing to C++ code), you can use technical language and concepts.

Specific Recommendations

  • Documentation should make sense when you read it through from beginning to end. If you add new content, try to place it where the necessary concepts have already been explained.
  • If a documentation section consists of many similar items, like functions or operators, try to order them from more generic (usable by a wide audience) to more specific (for specific use cases or application types). If several items are intended to be mostly used together, group them together in the documentation.
  • Try to avoid slang. Use the most common and specific terms possible for everything. If some terms are used as synonyms, state this explicitly.
  • All descriptions of functionality should be accompanied by examples. Basic examples are acceptable, but real world examples are welcome, too.
  • Sensitive topics like politics, religion, race, and so on are strictly prohibited in documentation, examples, comments, and code.
  • Proofread your text before publishing. Look for typos, missing punctuation, or repetitions that could be avoided.
  • Try to avoid addressing the reader directly, although this is not strictly prohibited.

How to Add a New Language

  1. Create a new docs subfolder named using the ISO-639-1 language code.
  2. Add Markdown files with the translation, mirroring the folder structure of other languages.
  3. Commit and open a pull request with the new content.

Some additional configuration has to be done to actually make a new language live on the official website, but it's not automated or documented yet, so we'll do it on our own after the pull request with the content is merged.

Markdown Dialect Cheatsheet

  • Headings are on a separate line starting with # , ## or ### .
  • Bold is in **asterisks** or __underlines__.
  • Links [anchor](http://...), images ![with exclamation sign](http://...jpeg).
  • Lists are on lines starting with * unordered or 1. ordered, but there should be an empty line before the first list item. Sub-lists must be indented with 4 spaces.
  • Inline code fragments are `in backticks`.
  • Multiline code blocks are ```in triple backtick quotes ```.
  • Brightly highlighted text starts with !!! info "Header", followed by 4 spaces on the next line and content. For a warning, replace info with warning.
  • Hidden block that opens on click: <details markdown="1"> <summary>Header</summary> hidden content</details>.
  • Colored text: <span style="color: red;">text</span>.
  • Heading anchor to be linked to: Title {#anchor-name}.
  • Table:
| Header    1 | Header    2 | Header    3 |
| ----------- | ----------- | ----------- |
| Cell     A1 | Cell     A2 | Cell     A3 |
| Cell     B1 | Cell     B2 | Cell     B3 |
| Cell     C1 | Cell     C2 | Cell     C3 |