mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 12:44:42 +00:00
42 lines
1.7 KiB
HTML
42 lines
1.7 KiB
HTML
{# This file is an entrypoint for mkdocs theme, not an actual website page #}
|
|
|
|
{% set language = config.theme.language %}
|
|
{% set direction = config.theme.direction %}
|
|
{% set single_page = config.extra.single_page %}
|
|
{% set no_footer = True %}
|
|
|
|
{% if page and page.meta and page.meta.title %}
|
|
{% set title = page.meta.title %}
|
|
{% elif page and page.title and not page.is_homepage and page.title != 'hidden' %}
|
|
{% set title = page.title + ' - ' + config.site_name %}
|
|
{% elif page and page.title and not page.is_homepage and page.title == 'hidden' and page.ancestors %}
|
|
{% set title = (page.ancestors | first).title + ' - ' + config.site_name %}
|
|
{% else %}
|
|
{% set title = config.site_name %}
|
|
{% endif %}
|
|
{% if page and page.content and not single_page %}
|
|
{% set description = page.content|striptags %}
|
|
{% set description = description.replace('¶','')[0:120] %}
|
|
{% endif %}
|
|
|
|
{% set data_version = config.extra.version_prefix or 'master' %}
|
|
{% set data_single_page = 'true' if config.extra.single_page else 'false' %}
|
|
{% set extra_html_attrs = 'data-version="' + data_version + '" data-single-page="' + data_single_page + '"' %}
|
|
{% set extra_body_attrs = 'data-spy="scroll" data-target="#toc" data-offset="80"' %}
|
|
|
|
{% extends "templates/base.html" %}
|
|
|
|
{% block content %}
|
|
{% include "templates/docs/nav.html" %}
|
|
<div class="container-fluid{% if direction == 'rtl' %} text-right{% endif %}">
|
|
<div class="row justify-content-end{% if not single_page %} justify-content-xl-center{% endif %}">
|
|
{% include "templates/docs/sidebar.html" %}
|
|
{% include "templates/docs/content.html" %}
|
|
{% if not config.extra.single_page %}
|
|
{% include "templates/docs/toc.html" %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|