1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00
Files
tabler/pages/_layouts/docs.html
2019-04-30 13:24:59 +02:00

60 lines
1.4 KiB
HTML

---
layout: default
menu: docs
title: Documentation
page-title: Documentation
---
<div class="row">
<div class="col-lg-3 order-lg-1 mb-4">
<a href="{{ site.github_url }}" class="btn btn-block btn-primary mb-4" target="_blank">
{% include ui/icon.html icon="github" class="mr-2" %}Browse source code
</a>
{% for group in site.docs-menu %}
{{ group[1].title }}
<div class="list-group list-group-transparent mb-0">
{% for p in group[1].pages %}
{% assign doc = site.docs | where: "slug", p | first %}
<a href="{{ site.base }}/docs/{{ doc.slug }}.html" class="list-group-item list-group-item-action{% if page.url == doc.url %} active{% endif %}">
{{ doc.title }}
</a>
{% endfor %}
</div>
{% endfor %}
</div>
<div class="col-lg-9">
<div class="card">
<div class="card-body p-lg-5">
<div class="text-wrap">
<h2 class="h1 mt-0 mb-4">{{ page.title }}</h2>
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}
{% if page.in_progress %}
<div class="alert alert-primary mt-5 mb-6">
<div><strong>Work in progress!</strong> More detailed documentation is coming soon.</div>
</div>
{% endif %}
{% if page.toc %}
{{ content | toc_only }}
{% endif %}
{{ content | toc_generate }}
</div>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>