Skip to content

Commit 388bcff

Browse files
authored
Rearrange includes at docs+changelog and move description templates (ClickHouse#10472)
* temp commit * rearrange includes
1 parent a2cb67c commit 388bcff

File tree

25 files changed

+29
-3331
lines changed

25 files changed

+29
-3331
lines changed

CHANGELOG.md

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
---
2-
toc_folder_title: Changelog
3-
toc_priority: 74
4-
toc_title: '2020'
5-
---
6-
71
## ClickHouse release v20.3
82

93
### ClickHouse release v20.3.7.46, 2020-04-17

docs/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ When writing docs, you can use prepared templates. Copy the code of a template a
193193
194194
Templates:
195195
196-
- [Function](dscr-templates/template-function.md)
197-
- [Setting](dscr-templates/template-setting.md)
198-
- [Table engine](dscr-templates/template-table-engine.md)
199-
- [System table](dscr-templates/template-system-table.md)
196+
- [Function](_description_templates/template-function.md)
197+
- [Setting](_description_templates/template-setting.md)
198+
- [Table engine](_description_templates/template-table-engine.md)
199+
- [System table](_description_templates/template-system-table.md)
200200
201201
202202
<a name="how-to-build-docs"/>

docs/_includes/content/changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../CHANGELOG.md

docs/en/operations/optimizing_performance/sampling_query_profiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ LIMIT 10
5858
```
5959

6060
``` text
61-
{% include "operations/performance/sampling_query_profiler_example_result.txt" %}
61+
{% include "examples/sampling_query_profiler_result.txt" %}
6262
```

docs/en/whats_new/changelog/index.md

-1
This file was deleted.

docs/en/whats_new/changelog/index.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
toc_folder_title: Changelog
3+
toc_priority: 74
4+
toc_title: '2020'
5+
---
6+
7+
{% include 'content/changelog.md' %}

docs/es/operations/optimizing_performance/sampling_query_profiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ LIMIT 10
6060
```
6161

6262
``` text
63-
{% include "operations/performance/sampling_query_profiler_example_result.txt" %}
63+
{% include "examples/sampling_query_profiler_result.txt" %}
6464
```

docs/es/operations/performance/sampling_query_profiler_example_result.txt

-556
This file was deleted.

docs/fa/operations/optimizing_performance/sampling_query_profiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ LIMIT 10
6161
```
6262

6363
``` text
64-
{% include "operations/performance/sampling_query_profiler_example_result.txt" %}
64+
{% include "examples/sampling_query_profiler_result.txt" %}
6565
```

docs/fa/operations/performance/sampling_query_profiler_example_result.txt

-556
This file was deleted.

docs/fr/operations/optimizing_performance/sampling_query_profiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ LIMIT 10
6060
```
6161

6262
``` text
63-
{% include "operations/performance/sampling_query_profiler_example_result.txt" %}
63+
{% include "examples/sampling_query_profiler_result.txt" %}
6464
```

docs/fr/operations/performance/sampling_query_profiler_example_result.txt

-542
This file was deleted.

docs/ja/operations/optimizing_performance/sampling_query_profiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ LIMIT 10
6060
```
6161

6262
``` text
63-
{% include "operations/performance/sampling_query_profiler_example_result.txt" %}
63+
{% include "examples/sampling_query_profiler_result.txt" %}
6464
```

docs/ja/operations/performance/sampling_query_profiler_example_result.txt

-542
This file was deleted.

docs/ru/operations/performance/sampling_query_profiler_example_result.txt

-556
This file was deleted.

docs/tools/build.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,12 @@ def build_for_lang(lang, args):
148148
'stable_releases': args.stable_releases,
149149
'version_prefix': args.version_prefix,
150150
'single_page': False,
151-
'rev': args.rev,
151+
'rev': args.rev,
152152
'rev_short': args.rev_short,
153-
'rev_url': args.rev_url,
154-
'events': args.events,
155-
'languages': languages
153+
'rev_url': args.rev_url,
154+
'events': args.events,
155+
'languages': languages,
156+
'includes_dir': os.path.join(os.path.dirname(__file__), '..', '_includes')
156157
}
157158
)
158159

docs/tools/mdx_clickhouse.py

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import os
66

7+
import jinja2
78
import markdown.inlinepatterns
89
import markdown.extensions
910
import markdown.util
@@ -85,6 +86,10 @@ def on_config(self, config):
8586
super(PatchedMacrosPlugin, self).on_config(config)
8687
self.env.comment_start_string = '{##'
8788
self.env.comment_end_string = '##}'
89+
self.env.loader = jinja2.FileSystemLoader([
90+
os.path.join(config.data['site_dir']),
91+
os.path.join(config.data['extra']['includes_dir'])
92+
])
8893

8994
def on_env(self, env, config, files):
9095
env.add_extension('jinja2.ext.i18n')

docs/tr/operations/optimizing_performance/sampling_query_profiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ LIMIT 10
6060
```
6161

6262
``` text
63-
{% include "operations/performance/sampling_query_profiler_example_result.txt" %}
63+
{% include "examples/sampling_query_profiler_result.txt" %}
6464
```

docs/tr/operations/performance/sampling_query_profiler_example_result.txt

-1
This file was deleted.

docs/zh/operations/optimizing_performance/sampling_query_profiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ LIMIT 10
6060
```
6161

6262
``` text
63-
{% include "operations/performance/sampling_query_profiler_example_result.txt" %}
63+
{% include "examples/sampling_query_profiler_result.txt" %}
6464
```

docs/zh/operations/performance/sampling_query_profiler_example_result.txt

-556
This file was deleted.

0 commit comments

Comments
 (0)