mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Changed font to Yandex Sans.
Russian comment in scrip is traslated.
This commit is contained in:
parent
28d52bb90b
commit
a0de4acd38
@ -1,17 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# - [-] Одностраничный документ.
|
||||
# - Требования к исходникам:
|
||||
# - [!] Не должно быть ссылко без якорей. Т.е. нельзя просто сослаться на файл, необходимо в начала файла поставить якорь и на него уже ссылаться.
|
||||
# - [!] Якоря должны быть уникальными сквозь весь документ.
|
||||
# - Реализация:
|
||||
# - [+] Перечень файлов получаю из секции `pages` из `mkdocs.yml`.
|
||||
# - [+] Файлы конкатенирутся встык c incrementing level of headers in all files except the first file
|
||||
# - [+] Ссылки преобразуются во внутристраничные.
|
||||
# - Ссылки, начинающиеся с http пропускаются
|
||||
# - Не http-cсылки с якорем урезаются до якоря.
|
||||
# - Не http-ссылки без якоря выводят ошибки в stdout и удаляются из документа.
|
||||
# - Single-page document.
|
||||
# - Requirements to the md-souces:
|
||||
# - Don't use links without anchors. It means, that you can not just link file. You should specify an anchor at the top of the file and then link to this anchor
|
||||
# - Anchors should be unique through whole document.
|
||||
# - Implementation:
|
||||
# - Script gets list of the file from the `pages` section of `mkdocs.yml`. It gets commented files too, and it right.
|
||||
# - Files are concatenated by order with incrementing level of headers in all files except the first one
|
||||
# - Script converts links to other files into inside page links.
|
||||
# - Skipping links started with 'http'
|
||||
# - Not http-links with anchor are cutted to the anchor sign (#).
|
||||
# - For not http-links without anchor script logs an error and cuts them from the resulting single-page document.
|
||||
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ import os
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print "Usage: concatenate.py language_dir"
|
||||
print "Example: conatenate.py ru"
|
||||
print "Example: concatenate.py ru"
|
||||
sys.exit(1)
|
||||
|
||||
if not os.path.exists(sys.argv[1]):
|
||||
|
@ -8,6 +8,9 @@ repo_name: 'yandex/ClickHouse'
|
||||
repo_url: 'https://github.com/yandex/ClickHouse/'
|
||||
edit_uri: 'edit/master/docs/en'
|
||||
|
||||
extra_css:
|
||||
- assets/stylesheets/yandex_fonts.css
|
||||
|
||||
theme:
|
||||
name: null
|
||||
custom_dir: 'mkdocs-material-theme'
|
||||
@ -17,9 +20,9 @@ theme:
|
||||
palette:
|
||||
primary: 'white'
|
||||
accent: 'white'
|
||||
font:
|
||||
text: Roboto
|
||||
code: Roboto Mono
|
||||
font: false
|
||||
# text: Roboto
|
||||
# code: Roboto Mono
|
||||
logo: 'images/logo.svg'
|
||||
favicon: 'assets/images/favicon.ico'
|
||||
include_search_page: false
|
||||
|
@ -7,6 +7,9 @@ use_directory_urls: false
|
||||
repo_name: 'yandex/ClickHouse'
|
||||
repo_url: 'https://github.com/yandex/ClickHouse/'
|
||||
|
||||
extra_css:
|
||||
- assets/stylesheets/yandex_fonts.css
|
||||
|
||||
theme:
|
||||
name: null
|
||||
custom_dir: 'mkdocs-material-theme'
|
||||
@ -16,9 +19,9 @@ theme:
|
||||
palette:
|
||||
primary: 'white'
|
||||
accent: 'white'
|
||||
font:
|
||||
text: Roboto
|
||||
code: Roboto Mono
|
||||
font: false
|
||||
# text: Roboto
|
||||
# code: Roboto Mono
|
||||
logo: 'images/logo.svg'
|
||||
favicon: 'assets/images/favicon.ico'
|
||||
include_search_page: false
|
||||
|
@ -8,6 +8,9 @@ repo_name: 'yandex/ClickHouse'
|
||||
repo_url: 'https://github.com/yandex/ClickHouse/'
|
||||
edit_uri: 'edit/master/docs/ru'
|
||||
|
||||
extra_css:
|
||||
- assets/stylesheets/yandex_fonts.css
|
||||
|
||||
theme:
|
||||
name: null
|
||||
custom_dir: 'mkdocs-material-theme'
|
||||
@ -17,9 +20,9 @@ theme:
|
||||
palette:
|
||||
primary: 'white'
|
||||
accent: 'white'
|
||||
font:
|
||||
text: Roboto
|
||||
code: Roboto Mono
|
||||
font: false
|
||||
# text: Roboto
|
||||
# code: Roboto Mono
|
||||
logo: 'images/logo.svg'
|
||||
favicon: 'assets/images/favicon.ico'
|
||||
include_search_page: false
|
||||
|
@ -7,6 +7,9 @@ use_directory_urls: false
|
||||
repo_name: 'yandex/ClickHouse'
|
||||
repo_url: 'https://github.com/yandex/ClickHouse/'
|
||||
|
||||
extra_css:
|
||||
- assets/stylesheets/yandex_fonts.css
|
||||
|
||||
theme:
|
||||
name: null
|
||||
custom_dir: 'mkdocs-material-theme'
|
||||
@ -16,9 +19,9 @@ theme:
|
||||
palette:
|
||||
primary: 'white'
|
||||
accent: 'white'
|
||||
font:
|
||||
text: Roboto
|
||||
code: Roboto Mono
|
||||
font: false
|
||||
# text: Roboto
|
||||
# code: Roboto Mono
|
||||
logo: 'images/logo.svg'
|
||||
favicon: 'assets/images/favicon.ico'
|
||||
include_search_page: false
|
||||
|
Loading…
Reference in New Issue
Block a user