truesight-rtd-theme 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +100 -0
- data/_includes/README.md +9 -0
- data/_includes/common/assets/data.liquid +3 -0
- data/_includes/common/assets/robots.liquid +4 -0
- data/_includes/common/assets/sitemap.liquid +12 -0
- data/_includes/common/assets/sw.caches.js +39 -0
- data/_includes/common/core/_list.liquid +15 -0
- data/_includes/common/core/list.liquid +10 -0
- data/_includes/common/google_adsense.liquid +3 -0
- data/_includes/common/google_gtag.liquid +11 -0
- data/_includes/common/links.liquid +26 -0
- data/_includes/common/mathjax.liquid +6 -0
- data/_includes/common/mermaid.liquid +10 -0
- data/_includes/common/metadata.liquid +12 -0
- data/_includes/common/opengraph.liquid +8 -0
- data/_includes/common/rest/content.liquid +6 -0
- data/_includes/common/rest/defaults.liquid +7 -0
- data/_includes/common/rest/description.liquid +6 -0
- data/_includes/common/rest/i18n.liquid +1 -0
- data/_includes/common/rest/nav.liquid +20 -0
- data/_includes/common/rest/site_pages.liquid +8 -0
- data/_includes/common/rest/tabs.liquid +2 -0
- data/_includes/common/rest/title.liquid +18 -0
- data/_includes/common/rest/variables.liquid +41 -0
- data/_includes/common/rest/workdir.liquid +19 -0
- data/_includes/common/schema.liquid +27 -0
- data/_includes/common/script.liquid +11 -0
- data/_includes/common/title.liquid +1 -0
- data/_includes/common/twitter_cards.liquid +6 -0
- data/_includes/extra/body.html +0 -0
- data/_includes/extra/head.html +0 -0
- data/_includes/extra/script.js +0 -0
- data/_includes/extra/styles.scss +0 -0
- data/_includes/list.liquid +1 -0
- data/_includes/rest/defaults.liquid +2 -0
- data/_includes/rest/script.liquid +7 -0
- data/_includes/rest/styles.liquid +5 -0
- data/_includes/shortcodes/danger.liquid +9 -0
- data/_includes/shortcodes/mermaid.liquid +3 -0
- data/_includes/shortcodes/note.liquid +9 -0
- data/_includes/shortcodes/tip.liquid +9 -0
- data/_includes/shortcodes/warning.liquid +9 -0
- data/_includes/templates/_toctree.liquid +41 -0
- data/_includes/templates/addons.liquid +43 -0
- data/_includes/templates/breadcrumbs.liquid +33 -0
- data/_includes/templates/content.liquid +20 -0
- data/_includes/templates/footer.liquid +54 -0
- data/_includes/templates/sidebar.liquid +18 -0
- data/_includes/templates/toctree.liquid +23 -0
- data/_layouts/default.liquid +32 -0
- data/_layouts/tasks/compress.liquid +21 -0
- data/_layouts/tasks/shortcodes.liquid +33 -0
- data/_sass/_direction.scss +107 -0
- data/_sass/_font-face.scss +66 -0
- data/_sass/_layout.scss +76 -0
- data/_sass/_rest.scss +26 -0
- data/_sass/_root.scss +9 -0
- data/_sass/_variables.scss +34 -0
- data/_sass/core/addons.scss +39 -0
- data/_sass/core/container.scss +11 -0
- data/_sass/core/content.scss +4 -0
- data/_sass/core/header.scss +10 -0
- data/_sass/core/markdown.scss +113 -0
- data/_sass/core/sidebar.scss +100 -0
- data/_sass/core/title.scss +12 -0
- data/_sass/core/toasts.scss +53 -0
- data/_sass/lib/@primer/css/base/README.md +24 -0
- data/_sass/lib/@primer/css/base/base.scss +90 -0
- data/_sass/lib/@primer/css/base/index.scss +6 -0
- data/_sass/lib/@primer/css/base/kbd.scss +21 -0
- data/_sass/lib/@primer/css/base/normalize.scss +424 -0
- data/_sass/lib/@primer/css/base/typography-base.scss +100 -0
- data/_sass/lib/@primer/css/breadcrumb/README.md +24 -0
- data/_sass/lib/@primer/css/breadcrumb/breadcrumb.scss +28 -0
- data/_sass/lib/@primer/css/breadcrumb/index.scss +3 -0
- data/_sass/lib/@primer/css/buttons/README.md +24 -0
- data/_sass/lib/@primer/css/buttons/button-group.scss +91 -0
- data/_sass/lib/@primer/css/buttons/button.scss +296 -0
- data/_sass/lib/@primer/css/buttons/index.scss +4 -0
- data/_sass/lib/@primer/css/buttons/misc.scss +205 -0
- data/_sass/lib/@primer/css/forms/README.md +24 -0
- data/_sass/lib/@primer/css/forms/form-control.scss +281 -0
- data/_sass/lib/@primer/css/forms/form-group.scss +279 -0
- data/_sass/lib/@primer/css/forms/form-select.scss +38 -0
- data/_sass/lib/@primer/css/forms/form-validation.scss +369 -0
- data/_sass/lib/@primer/css/forms/index.scss +7 -0
- data/_sass/lib/@primer/css/forms/input-group.scss +53 -0
- data/_sass/lib/@primer/css/forms/radio-group.scss +43 -0
- data/_sass/lib/@primer/css/loaders/README.md +24 -0
- data/_sass/lib/@primer/css/loaders/index.scss +2 -0
- data/_sass/lib/@primer/css/loaders/loaders.scss +21 -0
- data/_sass/lib/@primer/css/markdown/README.md +24 -0
- data/_sass/lib/@primer/css/markdown/blob-csv.scss +31 -0
- data/_sass/lib/@primer/css/markdown/code.scss +73 -0
- data/_sass/lib/@primer/css/markdown/headings.scss +72 -0
- data/_sass/lib/@primer/css/markdown/images.scss +131 -0
- data/_sass/lib/@primer/css/markdown/index.scss +8 -0
- data/_sass/lib/@primer/css/markdown/lists.scss +77 -0
- data/_sass/lib/@primer/css/markdown/markdown-body.scss +99 -0
- data/_sass/lib/@primer/css/markdown/tables.scss +38 -0
- data/_sass/lib/@primer/css/support/README.md +24 -0
- data/_sass/lib/@primer/css/support/index.scss +11 -0
- data/_sass/lib/@primer/css/support/mixins/buttons.scss +184 -0
- data/_sass/lib/@primer/css/support/mixins/layout.scss +55 -0
- data/_sass/lib/@primer/css/support/mixins/misc.scss +32 -0
- data/_sass/lib/@primer/css/support/mixins/typography.scss +88 -0
- data/_sass/lib/@primer/css/support/variables/color-system.scss +243 -0
- data/_sass/lib/@primer/css/support/variables/colors.scss +55 -0
- data/_sass/lib/@primer/css/support/variables/layout.scss +149 -0
- data/_sass/lib/@primer/css/support/variables/misc.scss +43 -0
- data/_sass/lib/@primer/css/support/variables/typography.scss +43 -0
- data/_sass/lib/@primer/css/utilities/README.md +24 -0
- data/_sass/lib/@primer/css/utilities/animations.scss +187 -0
- data/_sass/lib/@primer/css/utilities/borders.scss +187 -0
- data/_sass/lib/@primer/css/utilities/box-shadow.scss +25 -0
- data/_sass/lib/@primer/css/utilities/colors.scss +185 -0
- data/_sass/lib/@primer/css/utilities/details.scss +34 -0
- data/_sass/lib/@primer/css/utilities/flexbox.scss +124 -0
- data/_sass/lib/@primer/css/utilities/index.scss +14 -0
- data/_sass/lib/@primer/css/utilities/layout.scss +151 -0
- data/_sass/lib/@primer/css/utilities/margin.scss +68 -0
- data/_sass/lib/@primer/css/utilities/padding.scss +59 -0
- data/_sass/lib/@primer/css/utilities/typography.scss +325 -0
- data/_sass/lib/@primer/css/utilities/visibility-display.scss +82 -0
- data/_sass/lib/font-awesome/_icons.scss +2139 -0
- data/_sass/lib/font-awesome/_variables.scss +799 -0
- data/_sass/lib/material-design-lite/_color-definitions.scss +378 -0
- data/_sass/lib/material-design-lite/_functions.scss +19 -0
- data/_sass/lib/material-design-lite/_mixins.scss +301 -0
- data/_sass/lib/material-design-lite/_variables.scss +612 -0
- data/_sass/lib/rouge/github.scss +214 -0
- data/_sass/theme.scss +37 -0
- data/assets/404.liquid +9 -0
- data/assets/css/fonts/Roboto-Slab-Bold.woff +0 -0
- data/assets/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
- data/assets/css/fonts/Roboto-Slab-Regular.woff +0 -0
- data/assets/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
- data/assets/css/fonts/fontawesome-webfont.eot +0 -0
- data/assets/css/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/css/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/css/fonts/fontawesome-webfont.woff +0 -0
- data/assets/css/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/css/fonts/lato-bold-italic.woff +0 -0
- data/assets/css/fonts/lato-bold-italic.woff2 +0 -0
- data/assets/css/fonts/lato-bold.woff +0 -0
- data/assets/css/fonts/lato-bold.woff2 +0 -0
- data/assets/css/fonts/lato-normal-italic.woff +0 -0
- data/assets/css/fonts/lato-normal-italic.woff2 +0 -0
- data/assets/css/fonts/lato-normal.woff +0 -0
- data/assets/css/fonts/lato-normal.woff2 +0 -0
- data/assets/css/theme.min.css +1 -0
- data/assets/css/theme.scss +4 -0
- data/assets/data.liquid +6 -0
- data/assets/images/apple-touch-icon-300x300.jpg +0 -0
- data/assets/images/favicon-16x16.png +0 -0
- data/assets/images/favicon-32x32.png +0 -0
- data/assets/images/favicon-96x96.png +0 -0
- data/assets/images/favicon.liquid +13 -0
- data/assets/js/jquery.min.js +2 -0
- data/assets/js/mermaid.min.js +31 -0
- data/assets/js/theme.js +287 -0
- data/assets/js/theme.min.js +1 -0
- data/assets/robots.liquid +6 -0
- data/assets/search.liquid +12 -0
- data/assets/sitemap.liquid +6 -0
- data/assets/sw.caches.liquid +8 -0
- metadata +224 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
<div class="addons-wrap d-flex flex-column overflow-y-auto">
|
2
|
+
<div class="status d-flex flex-justify-between p-2">
|
3
|
+
<div class="title p-1">
|
4
|
+
<i class="fa fa-book"></i> {{ site.title }}
|
5
|
+
</div>
|
6
|
+
<div class="branch p-1">
|
7
|
+
<span class="name">
|
8
|
+
{{ docs.source.branch }}
|
9
|
+
</span>
|
10
|
+
<i class="fa fa-caret-down"></i>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
<div class="addons d-flex flex-column height-full p-2 d-none">
|
14
|
+
<dl>
|
15
|
+
<dt>{{ __.github | default: "GitHub" }}</dt>
|
16
|
+
<dd>
|
17
|
+
<a href="{{ docs.repository_url }}" title="{{ __.stars | default: 'Stars' }}: {{ rest.stargazers_count }}">
|
18
|
+
<i class="fa fa-github"></i>
|
19
|
+
{{ __.homepage | default: "Homepage" }}
|
20
|
+
</a>
|
21
|
+
</dd>
|
22
|
+
<dd>
|
23
|
+
<a href="{{ docs.issues_url }}" title="{{ __.open_issues | default: 'Open issues' }}: {{ rest.open_issues }}">
|
24
|
+
<i class="fa fa-question-circle-o"></i>
|
25
|
+
{{ __.issues | default: "Issues" }}
|
26
|
+
</a>
|
27
|
+
</dd>
|
28
|
+
<dd>
|
29
|
+
<a href="{{ docs.zip_url }}" title="{{ __.size | default: 'Size' }}: {{ rest.size }} Kb">
|
30
|
+
<i class="fa fa-download"></i>
|
31
|
+
{{ __.download | default: "Download" }}
|
32
|
+
</a>
|
33
|
+
</dd>
|
34
|
+
</dl>
|
35
|
+
<hr>
|
36
|
+
<div class="license f6 pb-2">
|
37
|
+
This
|
38
|
+
<a href="{{ site.baseurl }}/" title="{{ site.title }}">Software</a>
|
39
|
+
is under the terms of
|
40
|
+
<a href="{{ docs.repository_url }}">{{ docs.license.name | default: "The Unlicense" }}</a>.
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<div class="navigation-top d-flex flex-justify-between">
|
2
|
+
<ul class="breadcrumb" role="navigation" aria-label="breadcrumbs navigation">
|
3
|
+
<li class="breadcrumb-item">
|
4
|
+
<a class="no-underline" href="{{ site.baseurl }}/" title="{{ docs.source.path }}">
|
5
|
+
<i class="fa fa-home"></i>
|
6
|
+
</a>
|
7
|
+
</li>
|
8
|
+
{%- case page.url -%}
|
9
|
+
{%- when "/search.html" -%}
|
10
|
+
<li class="breadcrumb-item" aria-current="page">
|
11
|
+
{{ __.search | default: "Search" }}
|
12
|
+
</li>
|
13
|
+
{%- when "/404.html" -%}
|
14
|
+
<li class="breadcrumb-item" aria-current="page">
|
15
|
+
404
|
16
|
+
</li>
|
17
|
+
{%- else -%}
|
18
|
+
{%- assign blocks = page.path | split: "/" -%}
|
19
|
+
{%- for block in blocks -%}
|
20
|
+
<li class="breadcrumb-item" {% if forloop.last %}aria-current="page"{% endif %}>
|
21
|
+
{%- if forloop.last -%}
|
22
|
+
{{ page.name }}
|
23
|
+
{%- else -%}
|
24
|
+
<a href="{{ site.baseurl }}/{% for block in blocks limit: forloop.index %}{{ block }}/{% endfor %}">{{ block }}</a>
|
25
|
+
{%- endif -%}
|
26
|
+
</li>
|
27
|
+
{%- endfor -%}
|
28
|
+
{%- endcase -%}
|
29
|
+
</ul>
|
30
|
+
<a class="edit" href="{% github_edit_link %}" title="{{ __.edit | default: 'Edit on GitHub'}}" rel="noreferrer" target="_blank">
|
31
|
+
<i class="fa fa-edit"></i>
|
32
|
+
</a>
|
33
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div class="content-wrap">
|
2
|
+
<div class="header d-flex flex-justify-between p-2 hide-lg hide-xl" aria-label="top navigation">
|
3
|
+
<button id="toggle" aria-label="Toggle menu" class="btn-octicon p-2 m-0 text-white" type="button">
|
4
|
+
<i class="fa fa-bars"></i>
|
5
|
+
</button>
|
6
|
+
<div class="title flex-1 d-flex flex-justify-center">
|
7
|
+
<a class="h4 no-underline py-1 px-2 rounded-1" href="{{ site.baseurl }}/">{{ site.title }}</a>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<div class="content p-3 p-sm-5">
|
11
|
+
{% include templates/breadcrumbs.liquid %}
|
12
|
+
<hr>
|
13
|
+
<div role="main" itemscope="itemscope" itemtype="https://schema.org/Article">
|
14
|
+
<div class="markdown-body" itemprop="articleBody">
|
15
|
+
{{ content }}
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
{% include templates/footer.liquid %}
|
19
|
+
</div>
|
20
|
+
</div>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
{% comment %} prev and next {% endcomment %}
|
2
|
+
{%- if page.url != "/search.html" and page.url != "/404.html" -%}
|
3
|
+
{%- if next or prev -%}
|
4
|
+
<div class="navigation-bottom d-flex flex-justify-between py-3" role="navigation" aria-label="footer navigation">
|
5
|
+
<div class="prev">
|
6
|
+
{%- if prev -%}
|
7
|
+
<a href="{{ prev.url | relative_url }}" class="btn" title="{{ prev.title }}" accesskey="p" rel="prev">
|
8
|
+
<i class="fa fa-arrow-circle-left"></i> {{ __.previous | default: "Previous" }}
|
9
|
+
</a>
|
10
|
+
{%- endif -%}
|
11
|
+
</div>
|
12
|
+
<div class="next">
|
13
|
+
{%- if next -%}
|
14
|
+
<a href="{{ next.url | relative_url }}" class="btn" title="{{ next.title }}" accesskey="n" rel="next">
|
15
|
+
{{ __.next | default: "Next" }} <i class="fa fa-arrow-circle-right"></i>
|
16
|
+
</a>
|
17
|
+
{%- endif -%}
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
{%- endif -%}
|
21
|
+
{%- endif -%}
|
22
|
+
|
23
|
+
<hr>
|
24
|
+
|
25
|
+
<div class="copyright text-center text-gray" role="contentinfo">
|
26
|
+
<i class="fa fa-copyright"></i>
|
27
|
+
<span class="time">
|
28
|
+
{%- assign created_time = rest_created_at | date: "%Y" -%}
|
29
|
+
{%- assign updated_time = rest_updated_at | date: "%Y" -%}
|
30
|
+
{%- if created_time == updated_time -%}
|
31
|
+
{{- created_time -}},
|
32
|
+
{%- else -%}
|
33
|
+
{{- created_time }}-{{ updated_time -}},
|
34
|
+
{%- endif -%}
|
35
|
+
</span>
|
36
|
+
<a class="text-gray" href="{{ docs.owner_url }}" rel="noreferrer" target="_blank">
|
37
|
+
{{- author -}}
|
38
|
+
</a>
|
39
|
+
{{ __.revision | default: "Revision" }}
|
40
|
+
<a class="text-gray" href="{{ docs.repository_url }}/commit/{{ docs.build_revision }}" title="{{ docs.build_revision }}" rel="noreferrer" target="_blank">
|
41
|
+
{{- docs.build_revision | slice: 0, 7 -}}
|
42
|
+
</a>
|
43
|
+
{% unless site.url contains "rundocs.io" %}
|
44
|
+
<br>
|
45
|
+
<div class="generator">
|
46
|
+
Built with
|
47
|
+
<a href="https://pages.github.com" rel="noreferrer" target="_blank" title="github-pages v{{ docs.versions.github-pages }}">GitHub Pages</a>
|
48
|
+
using a
|
49
|
+
<a href="https://github.com/{{ theme_alias | split: '@' | first }}" rel="noreferrer" target="_blank" title="{{ generator }} v{{ version }}">theme</a>
|
50
|
+
provided by
|
51
|
+
<a href="https://rundocs.io" rel="noreferrer" target="_blank">RunDocs</a>.
|
52
|
+
</div>
|
53
|
+
{% endunless %}
|
54
|
+
</div>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<div class="sidebar-wrap overflow-hidden">
|
2
|
+
<div class="sidebar height-full overflow-y-scroll overflow-x-hidden">
|
3
|
+
<div class="header d-flex flex-column p-3 text-center">
|
4
|
+
<div class="title pb-1">
|
5
|
+
<a class="h4 no-underline py-1 px-2 rounded-1" href="{{ site.baseurl }}/" title="{{ site.description }}">
|
6
|
+
<i class="fa fa-home"></i> {{ site.title }}
|
7
|
+
</a>
|
8
|
+
</div>
|
9
|
+
<span class="version">{{ docs.latest_release.name }}</span>
|
10
|
+
<form class="search pt-2" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
|
11
|
+
<input class="form-control input-block input-sm" type="text" name="q" placeholder="{{ __.search_docs | default: 'Search docs...' }}">
|
12
|
+
</form>
|
13
|
+
</div>
|
14
|
+
<div class="toctree py-2" data-spy="affix" role="navigation" aria-label="main navigation">
|
15
|
+
{% include templates/toctree.liquid %}
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{%- include common/rest/workdir.liquid %}
|
2
|
+
|
3
|
+
{% comment %} list the root files {% endcomment %}
|
4
|
+
<ul>
|
5
|
+
{%- for item in workdir_files -%}
|
6
|
+
{%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
|
7
|
+
{%- capture current -%}
|
8
|
+
{%- if page.url == item.url %}current{% endif -%}
|
9
|
+
{%- endcapture %}
|
10
|
+
<li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
|
11
|
+
<a class="d-flex flex-items-baseline {{ current }}" href="{{ item.url | relative_url }}">
|
12
|
+
{%- if item.sort -%}
|
13
|
+
{{ item.sort }}. {{ item.title | default: item.name }}
|
14
|
+
{%- else -%}
|
15
|
+
{{ item.title | default: item.name }}
|
16
|
+
{%- endif -%}
|
17
|
+
</a>
|
18
|
+
</li>
|
19
|
+
{%- endfor %}
|
20
|
+
</ul>
|
21
|
+
|
22
|
+
{% comment %} list the root dirs {% endcomment %}
|
23
|
+
{%- for workdir in workdir_dirs %}{% include templates/_toctree.liquid %}{% endfor -%}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
layout: tasks/compress
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- include rest/defaults.liquid -%}
|
6
|
+
{%- include common/rest/defaults.liquid -%}
|
7
|
+
|
8
|
+
<!DOCTYPE html>
|
9
|
+
<html lang="{{ lang }}" dir="{{ direction }}">
|
10
|
+
<head>
|
11
|
+
{%- include common/metadata.liquid -%}
|
12
|
+
{%- include common/title.liquid -%}
|
13
|
+
{%- include common/twitter_cards.liquid -%}
|
14
|
+
{%- include common/opengraph.liquid -%}
|
15
|
+
{%- include common/schema.liquid -%}
|
16
|
+
{%- include common/links.liquid -%}
|
17
|
+
{%- include rest/styles.liquid -%}
|
18
|
+
{%- include common/script.liquid -%}
|
19
|
+
{%- include extra/head.html -%}
|
20
|
+
</head>
|
21
|
+
<body class="container">
|
22
|
+
{%- include templates/sidebar.liquid -%}
|
23
|
+
{%- include templates/content.liquid -%}
|
24
|
+
{%- include templates/addons.liquid -%}
|
25
|
+
{%- include extra/body.html -%}
|
26
|
+
{%- include rest/script.liquid -%}
|
27
|
+
{%- include common/mermaid.liquid-%}
|
28
|
+
{%- include common/mathjax.liquid-%}
|
29
|
+
{%- include common/google_gtag.liquid-%}
|
30
|
+
{%- include common/google_adsense.liquid-%}
|
31
|
+
</body>
|
32
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
layout: tasks/shortcodes
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- if site.debug.compress == false -%}
|
6
|
+
{{ content }}
|
7
|
+
{%- else -%}
|
8
|
+
{%- if content contains "<pre" -%}
|
9
|
+
{%- assign content_blocks = content | split: "<pre" -%}
|
10
|
+
{%- for content_block in content_blocks -%}
|
11
|
+
{%- if content_block contains "</pre>" -%}
|
12
|
+
{%- assign pre_blocks = content_block | split: "</pre>" -%}
|
13
|
+
<pre{{ pre_blocks.first }}</pre> {{ pre_blocks.last | split: " " | join: " " -}}
|
14
|
+
{%- else -%}
|
15
|
+
{{- content_block | split: " " | join: " " -}}
|
16
|
+
{%- endif -%}
|
17
|
+
{%- endfor -%}
|
18
|
+
{%- else -%}
|
19
|
+
{{- content | split: " " | join: " " -}}
|
20
|
+
{%- endif -%}
|
21
|
+
{%- endif -%}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{%- include common/rest/i18n.liquid -%}
|
2
|
+
|
3
|
+
{%- assign shortcodes = "mermaid, warning, note, tip, danger" | split: ", " -%}
|
4
|
+
|
5
|
+
{%- if site.debug.shortcodes == false -%}
|
6
|
+
{{ content }}
|
7
|
+
{%- else -%}
|
8
|
+
{%- if content contains "<pre" -%}
|
9
|
+
{%- assign content_blocks = content | split: "<pre" -%}
|
10
|
+
{%- for content_block in content_blocks -%}
|
11
|
+
{%- if content_block contains "</pre>" -%}
|
12
|
+
{%- assign pre_blocks = content_block | split: "</pre>" -%}
|
13
|
+
{%- if content_block contains '><code class="language-' -%}
|
14
|
+
{%- comment %} shortcodes: <pre><code class="language-**"> {% endcomment -%}
|
15
|
+
{%- assign custom = content_block | replace_first: '><code class="language-', "" | replace_first: '">', "<temp/>" | split: "<temp/>" -%}
|
16
|
+
{%- assign lang = custom.first -%}
|
17
|
+
{%- assign codes = custom.last | split: "</code>" | first -%}
|
18
|
+
{%- if shortcodes contains lang -%}
|
19
|
+
{%- include shortcodes/{{ lang }}.liquid -%} {{- pre_blocks.last -}}
|
20
|
+
{%- else -%}
|
21
|
+
<pre{{ pre_blocks.first }}</pre> {{ pre_blocks.last }}
|
22
|
+
{%- endif -%}
|
23
|
+
{%- else -%}
|
24
|
+
<pre{{ pre_blocks.first }}</pre> {{ pre_blocks.last -}}
|
25
|
+
{%- endif -%}
|
26
|
+
{%- else -%}
|
27
|
+
{{- content_block -}}
|
28
|
+
{%- endif -%}
|
29
|
+
{%- endfor -%}
|
30
|
+
{%- else -%}
|
31
|
+
{{- content -}}
|
32
|
+
{%- endif -%}
|
33
|
+
{%- endif -%}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
html[dir="rtl"] {
|
2
|
+
// @primer/css/base/typography-base
|
3
|
+
ul,
|
4
|
+
ol {
|
5
|
+
padding-right: 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
dd {
|
9
|
+
margin-right: 0;
|
10
|
+
}
|
11
|
+
|
12
|
+
// layout
|
13
|
+
.menu-sm {
|
14
|
+
left: unset;
|
15
|
+
right: -$theme-menu-width-sm;
|
16
|
+
|
17
|
+
&.shift {
|
18
|
+
left: unset;
|
19
|
+
right: 0;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
.content-wrap {
|
23
|
+
&.shift {
|
24
|
+
left: unset;
|
25
|
+
right: $theme-menu-width-sm;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@include breakpoint(md) {
|
30
|
+
.menu-md {
|
31
|
+
left: unset;
|
32
|
+
right: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
.content-wrap {
|
36
|
+
margin-left: unset;
|
37
|
+
margin-right: $theme-menu-width;
|
38
|
+
|
39
|
+
&.shift {
|
40
|
+
left: unset;
|
41
|
+
right: 0;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
// toctree
|
47
|
+
.toctree {
|
48
|
+
.fa {
|
49
|
+
margin-right: unset;
|
50
|
+
margin-left: 2px;
|
51
|
+
}
|
52
|
+
> ul {
|
53
|
+
// the first level links
|
54
|
+
> .toc > a {
|
55
|
+
padding-left: unset;
|
56
|
+
padding-right: $spacer-4 / 2;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
// toc layout
|
62
|
+
.toc {
|
63
|
+
@for $level from 1 through 11 {
|
64
|
+
&.level-#{$level}.current {
|
65
|
+
> a {
|
66
|
+
padding-left: unset;
|
67
|
+
padding-right: $spacer-4 * ($level - 1 + 0.5);
|
68
|
+
}
|
69
|
+
|
70
|
+
.level-#{$level + 1} > a {
|
71
|
+
padding-left: unset;
|
72
|
+
padding-right: $spacer-4 * ($level + 0.5);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
// markdown-body
|
78
|
+
.markdown-body {
|
79
|
+
.highlight {
|
80
|
+
direction: ltr;
|
81
|
+
}
|
82
|
+
blockquote {
|
83
|
+
border-left: none;
|
84
|
+
border-right: 0.25em $border-style lighten($gray-300, 5%);
|
85
|
+
}
|
86
|
+
|
87
|
+
ul,
|
88
|
+
ol {
|
89
|
+
padding-left: 0;
|
90
|
+
padding-right: 2em;
|
91
|
+
}
|
92
|
+
|
93
|
+
// improved checkbox
|
94
|
+
.task-list-item-checkbox {
|
95
|
+
margin-right: unset;
|
96
|
+
margin-left: 3px;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
// font
|
101
|
+
.#{$fa-css-prefix}-arrow-circle-left:before {
|
102
|
+
content: $fa-var-arrow-circle-right;
|
103
|
+
}
|
104
|
+
.#{$fa-css-prefix}-arrow-circle-right:before {
|
105
|
+
content: $fa-var-arrow-circle-left;
|
106
|
+
}
|
107
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: "Lato";
|
3
|
+
font-weight: $font-weight-normal;
|
4
|
+
font-style: normal;
|
5
|
+
font-display: block;
|
6
|
+
src: url("fonts/lato-normal.woff2") format("woff2"),
|
7
|
+
url("fonts/lato-normal.woff") format("woff");
|
8
|
+
}
|
9
|
+
|
10
|
+
@font-face {
|
11
|
+
font-family: "Lato";
|
12
|
+
font-weight: $font-weight-normal;
|
13
|
+
font-style: italic;
|
14
|
+
font-display: block;
|
15
|
+
src: url("fonts/lato-normal-italic.woff2") format("woff2"),
|
16
|
+
url("fonts/lato-normal-italic.woff") format("woff");
|
17
|
+
}
|
18
|
+
|
19
|
+
@font-face {
|
20
|
+
font-family: "Lato";
|
21
|
+
font-weight: $font-weight-bold;
|
22
|
+
font-style: normal;
|
23
|
+
font-display: block;
|
24
|
+
src: url("fonts/lato-bold.woff2") format("woff2"),
|
25
|
+
url("fonts/lato-bold.woff") format("woff");
|
26
|
+
}
|
27
|
+
|
28
|
+
@font-face {
|
29
|
+
font-family: "Lato";
|
30
|
+
font-weight: $font-weight-bold;
|
31
|
+
font-style: italic;
|
32
|
+
font-display: block;
|
33
|
+
src: url("fonts/lato-bold-italic.woff2") format("woff2"),
|
34
|
+
url("fonts/lato-bold-italic.woff") format("woff");
|
35
|
+
}
|
36
|
+
|
37
|
+
@font-face {
|
38
|
+
font-family: "Roboto-Slab";
|
39
|
+
font-weight: $font-weight-normal;
|
40
|
+
font-style: normal;
|
41
|
+
font-display: block;
|
42
|
+
src: url("fonts/Roboto-Slab-Regular.woff2") format("woff2"),
|
43
|
+
url("fonts/Roboto-Slab-Regular.woff") format("woff");
|
44
|
+
}
|
45
|
+
|
46
|
+
@font-face {
|
47
|
+
font-family: "Roboto-Slab";
|
48
|
+
font-weight: $font-weight-bold;
|
49
|
+
font-style: normal;
|
50
|
+
font-display: block;
|
51
|
+
src: url("fonts/Roboto-Slab-Bold.woff2") format("woff2"),
|
52
|
+
url("fonts/Roboto-Slab-Bold.woff") format("woff");
|
53
|
+
}
|
54
|
+
|
55
|
+
@font-face {
|
56
|
+
font-family: "FontAwesome";
|
57
|
+
font-weight: normal;
|
58
|
+
font-style: normal;
|
59
|
+
font-display: block;
|
60
|
+
src: url("fonts/fontawesome-webfont.eot");
|
61
|
+
src: url("fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"),
|
62
|
+
url("fonts/fontawesome-webfont.woff2") format("woff2"),
|
63
|
+
url("fonts/fontawesome-webfont.woff") format("woff"),
|
64
|
+
url("fonts/fontawesome-webfont.ttf") format("truetype"),
|
65
|
+
url("fonts/fontawesome-webfont.svg#fontawesomeregular") format("svg");
|
66
|
+
}
|
data/_sass/_layout.scss
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
.menu-sm {
|
2
|
+
position: fixed;
|
3
|
+
bottom: 0;
|
4
|
+
left: -$theme-menu-width-sm;
|
5
|
+
width: $theme-menu-width-sm;
|
6
|
+
max-height: 100%;
|
7
|
+
|
8
|
+
&.shift {
|
9
|
+
left: 0;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
.sidebar-wrap {
|
14
|
+
top: 0;
|
15
|
+
|
16
|
+
@extend .menu-sm;
|
17
|
+
|
18
|
+
.sidebar > :last-child {
|
19
|
+
margin-bottom: 5em;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.addons-wrap {
|
24
|
+
@extend .menu-sm;
|
25
|
+
}
|
26
|
+
|
27
|
+
.content-wrap {
|
28
|
+
&.shift {
|
29
|
+
position: fixed;
|
30
|
+
top: 0;
|
31
|
+
bottom: 0;
|
32
|
+
left: $theme-menu-width-sm;
|
33
|
+
min-width: 100%;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
@include breakpoint(md) {
|
38
|
+
.menu-md {
|
39
|
+
left: 0;
|
40
|
+
width: $theme-menu-width;
|
41
|
+
}
|
42
|
+
|
43
|
+
.sidebar-wrap {
|
44
|
+
@extend .menu-md;
|
45
|
+
|
46
|
+
.sidebar {
|
47
|
+
// 20px for scroll
|
48
|
+
width: $theme-menu-width + 20px;
|
49
|
+
|
50
|
+
.header,
|
51
|
+
.toctree {
|
52
|
+
width: $theme-menu-width;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
.addons-wrap {
|
58
|
+
@extend .menu-md;
|
59
|
+
}
|
60
|
+
|
61
|
+
.content-wrap {
|
62
|
+
margin-left: $theme-menu-width;
|
63
|
+
|
64
|
+
&.shift {
|
65
|
+
position: relative;
|
66
|
+
left: 0;
|
67
|
+
min-width: 0;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
@include breakpoint(xl) {
|
73
|
+
.content-wrap {
|
74
|
+
max-width: $width-xl - $theme-menu-width;
|
75
|
+
}
|
76
|
+
}
|
data/_sass/_rest.scss
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
// font
|
2
|
+
.font-body {
|
3
|
+
font-family: $body-font;
|
4
|
+
font-weight: $font-weight-normal;
|
5
|
+
}
|
6
|
+
.font-head {
|
7
|
+
font-family: $head-font;
|
8
|
+
font-weight: $font-weight-bold;
|
9
|
+
}
|
10
|
+
.font-mono {
|
11
|
+
font-family: $mono-font;
|
12
|
+
}
|
13
|
+
|
14
|
+
.fa {
|
15
|
+
display: inline-block;
|
16
|
+
font: normal normal normal 14px/1 "FontAwesome";
|
17
|
+
}
|
18
|
+
|
19
|
+
.breadcrumb-item {
|
20
|
+
margin: 0;
|
21
|
+
|
22
|
+
&::after {
|
23
|
+
padding-right: 3px;
|
24
|
+
padding-left: 3px;
|
25
|
+
}
|
26
|
+
}
|
data/_sass/_root.scss
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
// fonts
|
2
|
+
$body-font: "Lato", BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
|
3
|
+
$head-font: "Roboto-Slab", sans-serif;
|
4
|
+
$mono-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
5
|
+
|
6
|
+
// theme color
|
7
|
+
$theme-blue: #2980b9;
|
8
|
+
$theme-red: #e74c3c;
|
9
|
+
$theme-green: #1abc9c;
|
10
|
+
$theme-orange: #e67e22;
|
11
|
+
|
12
|
+
$theme-white: lighten($black, 99%);
|
13
|
+
$theme-black: lighten($black, 15%);
|
14
|
+
|
15
|
+
// theme link
|
16
|
+
$theme-link: $blue;
|
17
|
+
$theme-link-hover: lighten($blue, 10%);
|
18
|
+
$theme-link-visited: lighten($purple, 10%);
|
19
|
+
|
20
|
+
// theme code
|
21
|
+
$theme-code: $theme-black;
|
22
|
+
$theme-code-background: $bg-gray;
|
23
|
+
$theme-code-inline: $theme-red;
|
24
|
+
$theme-code-inline-background: darken($theme-white, 2%);
|
25
|
+
|
26
|
+
// theme mask
|
27
|
+
$theme-mask-white: transparentize($theme-white, 0.9);
|
28
|
+
$theme-mask-black: transparentize($theme-black, 0.9);
|
29
|
+
|
30
|
+
// theme menu
|
31
|
+
$theme-menu-width-sm: 85%;
|
32
|
+
$theme-menu-width: 300px;
|
33
|
+
$theme-menu-background: darken($theme-black, 10%);
|
34
|
+
$theme-menu-active-background: darken($theme-blue, 15%);
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.addons-wrap {
|
2
|
+
background-color: darken($theme-menu-background, 8%);
|
3
|
+
|
4
|
+
.status {
|
5
|
+
cursor: pointer;
|
6
|
+
background-color: darken($theme-menu-background, 5%);
|
7
|
+
|
8
|
+
.branch {
|
9
|
+
.fa {
|
10
|
+
color: $theme-white;
|
11
|
+
}
|
12
|
+
|
13
|
+
.name {
|
14
|
+
color: $green;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
&:active {
|
18
|
+
background: $theme-menu-active-background;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.addons {
|
23
|
+
color: grey;
|
24
|
+
|
25
|
+
dl {
|
26
|
+
margin: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
dd {
|
30
|
+
display: inline-block;
|
31
|
+
|
32
|
+
a {
|
33
|
+
display: inline-block;
|
34
|
+
padding: 6px;
|
35
|
+
color: $theme-white;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|