ClickHouse/docs
BayoNet 361c0b8e59 New topic in the docs "Permissions for queries" (#3616)
* Update of english version of descriprion of the table function `file`.

* New syntax for ReplacingMergeTree.
Some improvements in text.

* Significantly change article about SummingMergeTree.
Article is restructured, text is changed in many places of the document. New syntax for table creation is described.

* Descriptions of AggregateFunction and AggregatingMergeTree are updated. Russian version.

* New syntax for new syntax of CREATE TABLE

* Added english docs on Aggregating, Replacing and SummingMergeTree.

* CollapsingMergeTree docs. English version.

* 1. Update of CollapsingMergeTree. 2. Minor changes in markup

* Update aggregatefunction.md

* Update aggregatefunction.md

* Update aggregatefunction.md

* Update aggregatingmergetree.md

* GraphiteMergeTree docs update.
New syntax for creation of Replicated* tables.
Minor changes in *MergeTree tables creation syntax.

* Markup fix

* Markup and language fixes

* Clarification in the CollapsingMergeTree article

* DOCAPI-4821. Sync between ru and en versions of docs.

* Fixed the ambiguity in geo functions description.

* Example of JOIN in ru docs

* Deleted misinforming example.

* New topic 'Permissions for queries'

* Fixes for docs consistency.

* Self-targeting link.
2018-11-20 18:26:56 +03:00
..
en New topic in the docs "Permissions for queries" (#3616) 2018-11-20 18:26:56 +03:00
fa New topic in the docs "Permissions for queries" (#3616) 2018-11-20 18:26:56 +03:00
ru New topic in the docs "Permissions for queries" (#3616) 2018-11-20 18:26:56 +03:00
tools CLICKHOUSE-3751: stem terms while searching docs (#3522) 2018-11-01 21:00:43 +03:00
zh New topic in the docs "Permissions for queries" (#3616) 2018-11-20 18:26:56 +03:00
README.md
redirects.txt
toc_en.yml New topic in the docs "Permissions for queries" (#3616) 2018-11-20 18:26:56 +03:00
toc_fa.yml New topic in the docs "Permissions for queries" (#3616) 2018-11-20 18:26:56 +03:00
toc_ru.yml New topic in the docs "Permissions for queries" (#3616) 2018-11-20 18:26:56 +03:00
toc_zh.yml New topic in the docs "Permissions for queries" (#3616) 2018-11-20 18:26:56 +03:00

How to contribute to ClickHouse documentation?

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

At the moment documentation is bilingual in English and Russian, so it's better to try keeping languages in sync if you can, but it's not strictly required as there are people watching over this. If you add new article, you should also add it to toc_{en,ru,zh,fa}.yaml files with pages index.

Master branch is then asynchronously published to ClickHouse official website:

Infrastructure to build Markdown to documentation website resides in tools folder, it has it's own README.md with more details.

How to write content for ClickHouse documentation?

Target audience

When you write pretty much any text, first thing you should think about: who exactly will read it and in which terms it is better to "talk" with them.

ClickHouse can be directly used by all sorts of either analysts and engineers, so you should only basic technical background of reader when writing content for generic parts of documentation, like query language, tutorials or overviews. Though it is ok for articles describing ClickHouse internals, guides for operating ClickHouse clusters, contributing to C++ code and other similar topics.

Specific recommendations

  • Documentation should make sense when you read it roughly from start to end. So when choosing a place for new content try to minimize referring to stuff that will be described later on.
  • If documentation section consists of many similar items, like functions or operators, try to order them from more generic (usable by wider audience) to more specific (to some usecases or application types). If several items are intended to be mostly used together, keep them together in documentation too.
  • Try to avoid slang, use the most common and specific terms for everythings. If some terms are used as synonyms, state this explicitly.
  • All functionality descriptions should be accompanied by examples. At least very basic ones, but real world examples are welcome too.
  • Debatable topics like politics, religion, racial and so on are strictly prohibited in either documentation, examples, comments and code.
  • People tend to get temporary stuck with some specific words or phrases, usually auxiliary, for a shord period of time. So they get repeated over and over in small part of content, which looks weird when reading. It is easy to fix this by reading your text again before publishing, also you can use this opportunity to fix mistypes and lost punctuation.
  • Try to avoid naming the reader in text, it is not strictly prohibited though.

How to start translation to new language

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

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

Quick cheatsheet on used Markdown dialect

  • Headers on 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 empty line before first list item. Sub-lists must be indented with 4 spaces.
  • Inline piece of code is `in backticks`.
  • Multiline code block are ```in triple backtick quotes ```.
  • Brightly highlighted block of text starts with !!! info "Header", on next line 4 spaces and content. Instead of info can be warning.
  • Hide block to be opened by click: <details markdown="1"> <summary>Header</summary> hidden content</details>.
  • Colored text: <span style="color: red;">text</span>.
  • Additional anchor to be linked to: <a name="my_anchor"></a>, for headers fully in English they are created automatically like "FoO Bar" -> "foo-bar".
  • 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 |