Changed font to Yandex Sans.

Russian comment in scrip is traslated.
This commit is contained in:
BayoNet 2018-02-16 13:33:30 +03:00
parent 28d52bb90b
commit a0de4acd38
5 changed files with 36 additions and 24 deletions

View File

@ -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]):

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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