---
layout: default
menu: docs
title: Documentation
page-header: Documentation
---

{% assign current-url = page.url | replace_regex: "^/", "" %}

<div class="row justify-content-center">
	<div class="d-none d-lg-block col-lg-3 order-lg-1 mb-4">

		{% assign toc = content | toc_only %}


		<div class="sticky-top">
			{% include ui/button.html href=site.github_url text="Browse source code" icon="brand/github" color="white" external=true block=true class="mb-6" %}

			{% if toc != '' %}
				<h5 class="subheader">On this page</h5>
				{{ toc }}
			{% endif %}

		</div>



		{% comment %}
		<div class="list-group list-group-transparent mb-0">
			{% for doc in site.data.menu.docs.children %}
			{% assign key = doc[0] %}
			<a href="{{ site.base }}{{ doc[1].url | relative_url }}" class="list-group-item list-group-item-action{% if current-url == doc[1].url %} active{% endif %}">

				{% if jekyll.environment == 'development' %}
					{% assign doc-page = site.docs | where: "slug", key | first %}
					{% if doc-page.done %}{% include ui/icon.html icon="check" color="green" class="mr-2" %}{% endif %}
				{% endif %}

				{{ doc[1].title }}
			</a>
			{% endfor %}
		</div>
		{% endcomment %}
	</div>
	<div class="col-lg-9">
		<div class="card card-lg">
			<div class="card-body">

				<div class="markdown">
					<div class="d-flex">
						<h2 class="h1 mt-0 mb-3">{{ page.title }}</h2>

						{% if page.bootstrap-link %}
						<p class="ml-auto">
							<a href="https://getbootstrap.com/docs/4.4/{{ page.bootstrap-link }}" target="_blank">
								{% include ui/icon.html icon="external-link" color="blue" class="pr-1" %}
								Bootstrap documentation
							</a>
						</p>
						{% endif %}
					</div>

					{% if page.plugin %}
					<div class="alert alert-info">This module is available in <code>tabler-{{ page.plugin }}</code>
						plugin.
					</div>
					{% endif %}

					{% if page.description %}
					<p>{{ page.description }}</p>
					{% endif %}

					{{ content | toc_generate }}
				</div>
			</div>
		</div>
	</div>
</div>
