1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00

docs cleanup

This commit is contained in:
codecalm
2023-02-27 01:30:53 +01:00
parent d162b06c4c
commit 2a75f6dd93
6 changed files with 4 additions and 131 deletions

View File

@@ -303,7 +303,7 @@ help:
children:
docs:
title: Documentation
url: https://github.com/tabler/tabler
url: https://tabler.io/docs
changelog:
url: changelog.html
title: Changelog

View File

@@ -1,19 +0,0 @@
{% assign chart-id = include.chart %}
{% assign data = site.data.charts[chart-id] %}
{% if data or include.heatmap %}
<div class="card">
{% if include.title %}
<div class="card-header">
<h3 class="card-title">{{ include.title }}</h3>
</div>
{% endif %}
<div class="card-body">
{% if include.heatmap %}
{% include ui/chart-heatmap.html chart-id=chart-id show-scripts=true size="lg" %}
{% else %}
{% include ui/chart.html chart-id=chart-id show-scripts=true size="lg" %}
{% endif %}
</div>
</div>
{% endif %}

View File

@@ -1,51 +0,0 @@
{% assign current-menu = page.menu | split: '.' %}
<ul class="nav nav-pills nav-vertical">
{% for doc in site.data.docs %}
<li class="nav-item">
{% assign key = doc[0] %}
{% assign item = doc[1] %}
{% assign current-item = false %}
{% if current-menu[1] == key %}
{% assign current-item = true %}
{% endif %}
<a href="{% if item.children %}#menu-{{ key }}{% else %}{{ site.base }}{{ item.url | relative_url }}{% endif %}" class="nav-link{% unless item.children %}{% if current-item %} active{% endif %}{% endunless %}"{% if item.children %} data-bs-toggle="collapse" aria-expanded="{% if current-item %}true{% else %}false{% endif %}"{% endif %}>
{% if item.icon %}
<span class="nav-link-icon">{% include ui/icon.html icon=item.icon %}</span>
{% endif %}
{{ item.title }}
{% if item.show-version %}
<span class="badge bg-primary-lt ms-auto">{{ site.data.package.version }}</span>
{% endif %}
{% if item.children %}
<span class="nav-link-toggle"></span>
{% endif %}
</a>
{% if item.children %}
<ul class="nav nav-pills collapse{% if current-item %} show{% endif %}" id="menu-{{ key }}">
{% for subdoc in item.children %}
{% assign subkey = subdoc[0] %}
{% assign subitem = subdoc[1] %}
{% assign current-subitem = false %}
{% if current-menu[2] == subkey %}
{% assign current-subitem = true %}
{% endif %}
<li class="nav-item">
<a href="{{ site.base }}{{ subitem.url | relative_url }}" class="nav-link{% if current-subitem %} active{% endif %}">
{{ subitem.title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>

View File

@@ -1,9 +0,0 @@
<div class="alert alert-info mb-5">
<h3>Installation</h3>
<p>This part of Tabler is distributed as plugin. To enable it you should include <code>tabler-{{ include.plugin }}.css</code> or <code>tabler-{{ include.plugin }}.min.css</code> file to your page.</p>
<p>You can also include plugin via CDN:</p>
{% highlight html %}<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/{{ site.npm-package }}@{{ site.data.package.version }}/dist/css/tabler-{{ include.plugin }}.min.css">{% endhighlight %}
</div>

View File

@@ -1,50 +0,0 @@
---
layout: default
menu: help.docs
title: Documentation
page-header: Documentation
---
{% assign current-url = page.url | replace_regex: "^/", "" %}
<div class="row gx-lg-5">
<div class="d-none d-lg-block col-lg-3">
{% include docs/menu.html %}
</div>
<div class="col-lg-9">
{% if page.banner == 'icons' %}
{% include cards/icons-banner.html class="mb-3" %}
{% endif %}
<div class="card card-lg">
<div class="card-body">
<div class="markdown">
<div>
<div class="d-flex mb-3">
<h1 class="m-0">{{ page.title }}</h1>
{% if page.bootstrap-link %}
<p class="ms-auto">
<a href="https://getbootstrap.com/docs/5.0/{{ page.bootstrap-link }}" target="_blank" class="d-flex align-items-center">
{% include ui/icon.html icon="external-link" color="primary" class="pe-1" %}
Bootstrap documentation
</a>
</p>
{% endif %}
</div>
{% if page.description %}
<p class="h3 fw-normal mb-4 text-muted">{{ page.description }}</p>
{% endif %}
{% if page.plugin %}
{% include docs/plugin.html plugin=page.plugin %}
{% endif %}
</div>
{{ content }}
</div>
</div>
</div>
</div>
</div>

View File

@@ -1,9 +1,11 @@
---
title: Changelog
menu: changelog
layout: docs
layout: markdown
---
<h1>Changelog</h1>
{% for version in site.data.changelog reversed %}
<div class="mb-4">
<h2 class="mb-2">