jekyll-docs-theme 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +20 -16
- data/README.md +11 -34
- data/_includes/fa-icon.html +13 -0
- data/_includes/footer/content-post.html +4 -0
- data/_includes/footer/content-pre.html +4 -0
- data/_includes/footer/content.html +137 -0
- data/_includes/footer/full.html +13 -0
- data/_includes/footer/scripts-post.html +4 -0
- data/_includes/footer/scripts-pre.html +4 -0
- data/_includes/footer/scripts.html +48 -0
- data/_includes/head/base.html +3 -0
- data/_includes/head/content-post.html +0 -0
- data/_includes/head/content-pre.html +0 -0
- data/_includes/head/content.html +8 -0
- data/_includes/head/full.html +9 -0
- data/_includes/head/stylesheets-post.html +0 -0
- data/_includes/head/stylesheets-pre.html +0 -0
- data/_includes/head/stylesheets.html +16 -0
- data/_includes/internal/variables.html +21 -0
- data/_includes/jekyll-docs-theme/anchor_headings.html +34 -0
- data/_includes/jekyll-docs-theme/toc.html +38 -0
- data/_includes/jekyll-docs-theme/vendor/anchor_headings.html +110 -0
- data/_includes/jekyll-docs-theme/vendor/toc.html +112 -0
- data/_includes/masthead.html +13 -0
- data/_includes/masthead/button.html +11 -0
- data/_includes/masthead/buttons.html +30 -0
- data/_includes/masthead/title.html +7 -0
- data/_includes/navigation.html +50 -20
- data/_includes/sidebar/content-post.html +0 -0
- data/_includes/sidebar/content-pre.html +0 -0
- data/_includes/sidebar/content.html +10 -0
- data/_layouts/default.html +10 -4
- data/_layouts/full.html +5 -3
- data/_layouts/page.html +31 -11
- data/_sass/abstracts/_highlight-dark.scss +136 -0
- data/_sass/abstracts/_highlight-light.scss +251 -0
- data/_sass/abstracts/_themer.scss +18 -0
- data/_sass/abstracts/_variables.scss +6 -0
- data/_sass/base/_anchor.scss +20 -0
- data/_sass/base/_blockquote.scss +19 -0
- data/_sass/base/_body.scss +12 -0
- data/_sass/base/_horizontal-rule.scss +9 -0
- data/_sass/base/_scope-markdown.scss +108 -0
- data/_sass/components/_alert.scss +5 -0
- data/_sass/components/_footer.scss +39 -0
- data/_sass/components/_header.scss +22 -0
- data/_sass/components/_highlight.scss +59 -0
- data/_sass/components/_masthead.scss +62 -0
- data/_sass/components/_mobile-toc.scss +30 -0
- data/_sass/components/_sidebar.scss +86 -0
- data/_sass/utilities/_colors.scss +301 -0
- data/_sass/utilities/_js.scss +3 -0
- data/assets/css/styles.scss +40 -50
- data/assets/js/docs.js +49 -0
- metadata +54 -26
- data/_includes/footer.html +0 -91
- data/_includes/head.html +0 -26
- data/_includes/jumbotron.html +0 -21
- data/assets/css/docs.css +0 -1527
- data/assets/js/docs.min.js +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6155786d6966e01616f439ee62437733b19ca5fc3ea34f3af550ce35a4ba1540
|
4
|
+
data.tar.gz: 1a1dc9ba4548deafb0ca775b0b2df913917bb370fc40d9ca7aa571e94e12127b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8fdb3fd9ed50b075bb0992700115557cc986756df750607be8afa3df0b0d10b358114175b449cbb9bd209eb71db1c02f884e1c55f7aab61976f5ed36aeff1b5
|
7
|
+
data.tar.gz: c3695c99de8ebcfeb51a042f84a4f21b7afed0e6eda2bbeb7336e7ed9e64398b9f57d2721ec29b98fe91ee8efcb4ab1aefa899763e7954202102a15e53d39b42
|
data/LICENSE.md
CHANGED
@@ -1,21 +1,25 @@
|
|
1
1
|
The MIT License (MIT)
|
2
|
+
=====================
|
2
3
|
|
3
|
-
Copyright
|
4
|
+
Copyright © 2020 Vladimir "allejo" Jimenez
|
4
5
|
|
5
|
-
Permission is hereby granted, free of charge, to any person
|
6
|
-
of this software and associated documentation
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
Permission is hereby granted, free of charge, to any person
|
7
|
+
obtaining a copy of this software and associated documentation
|
8
|
+
files (the "Software"), to deal in the Software without
|
9
|
+
restriction, including without limitation the rights to use,
|
10
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the
|
12
|
+
Software is furnished to do so, subject to the following
|
13
|
+
conditions:
|
11
14
|
|
12
|
-
The above copyright notice and this permission notice shall be
|
13
|
-
copies or substantial portions of the Software.
|
15
|
+
The above copyright notice and this permission notice shall be
|
16
|
+
included in all copies or substantial portions of the Software.
|
14
17
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
SOFTWARE
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
20
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
22
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
23
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
24
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
25
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,46 +1,23 @@
|
|
1
1
|
# Jekyll Docs Theme
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem](https://img.shields.io/gem/v/jekyll-docs-theme)](https://rubygems.org/gems/jekyll-docs-theme)
|
4
|
+
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/allejo/jekyll-docs-theme?include_prereleases)](https://github.com/allejo/jekyll-docs-theme/releases)
|
5
|
+
[![GitHub license](https://img.shields.io/github/license/allejo/jekyll-docs-theme)](https://github.com/allejo/jekyll-docs-theme/blob/master/LICENSE.md)
|
4
6
|
|
5
|
-
Jekyll
|
7
|
+
A Jekyll theme inspired by Bootstrap's official documentation theme from a few years back. This theme started off by stealing all of Bootstrap Docs' CSS and being used in [mistic100's theme](https://github.com/mistic100/jekyll-bootstrap-doc). This theme has since be rewritten from scratch and remains solely inspired by the original design.
|
6
8
|
|
7
|
-
This theme is
|
9
|
+
This theme is designed for writing documentation websites instead of having large unmaintainable README files or several markdown files inside of a folder in a repository.
|
8
10
|
|
9
|
-
|
11
|
+
## Screenshots
|
10
12
|
|
11
|
-
|
13
|
+
**Light Mode**
|
12
14
|
|
13
|
-
|
15
|
+
![Theme Screenshot](./screenshot.png)
|
14
16
|
|
15
|
-
|
17
|
+
**Dark Mode**
|
16
18
|
|
17
|
-
|
18
|
-
|
19
|
-
```ruby
|
20
|
-
gem "jekyll-docs-theme"
|
21
|
-
```
|
22
|
-
|
23
|
-
And add this line to your Jekyll site's `_config.yml`:
|
24
|
-
|
25
|
-
```yaml
|
26
|
-
theme: jekyll-docs-theme
|
27
|
-
```
|
28
|
-
|
29
|
-
And then execute:
|
30
|
-
|
31
|
-
$ bundle
|
32
|
-
|
33
|
-
Or install it yourself as:
|
34
|
-
|
35
|
-
$ gem install jekyll-docs-theme
|
36
|
-
|
37
|
-
## Development
|
38
|
-
|
39
|
-
To set up your environment to develop this theme, run `bundle install`.
|
40
|
-
|
41
|
-
To develop on this theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`.
|
19
|
+
![Theme Screenshot](./screenshot-dark.png)
|
42
20
|
|
43
21
|
## License
|
44
22
|
|
45
|
-
The theme is available as open source under the terms of the [MIT License](
|
46
|
-
|
23
|
+
The theme is available as open source under the terms of the [MIT License](./LICENSE.md).
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{% if include.icon %}
|
2
|
+
{% capture fa_prefix -%}
|
3
|
+
{%- if include.brand -%}
|
4
|
+
fab
|
5
|
+
{%- else -%}
|
6
|
+
fas
|
7
|
+
{%- endif -%}
|
8
|
+
{%- endcapture -%}
|
9
|
+
<i
|
10
|
+
class="{{ fa_prefix }} fa-{{ include.icon }} fa-fw {{ include.class }}"
|
11
|
+
aria-hidden="true"
|
12
|
+
></i>
|
13
|
+
{% endif %}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
<div class="container">
|
2
|
+
{% if site.social %}
|
3
|
+
<div class="site-footer__social-links">
|
4
|
+
<ul class="list-inline mb-2">
|
5
|
+
{% if site.social.github.user and site.social.github.repo %}
|
6
|
+
<li class="list-inline-item">
|
7
|
+
<iframe
|
8
|
+
class="github-btn"
|
9
|
+
src="https://ghbtns.com/github-btn.html?user={{ site.social.github.user }}&repo={{ site.social.github.repo }}&type=watch&count=true"
|
10
|
+
width="90"
|
11
|
+
height="20"
|
12
|
+
title="Star on GitHub"
|
13
|
+
></iframe>
|
14
|
+
</li>
|
15
|
+
<li class="list-inline-item">
|
16
|
+
<iframe
|
17
|
+
class="github-btn"
|
18
|
+
src="https://ghbtns.com/github-btn.html?user={{ site.social.github.user }}&repo={{ site.social.github.repo }}&type=fork&count=true"
|
19
|
+
width="90"
|
20
|
+
height="20"
|
21
|
+
title="Fork on GitHub"
|
22
|
+
></iframe>
|
23
|
+
</li>
|
24
|
+
{% endif %}
|
25
|
+
{% if site.social.twitter.enabled %}
|
26
|
+
<li class="list-inline-item">
|
27
|
+
<a
|
28
|
+
href="https://twitter.com/share"
|
29
|
+
class="twitter-share-button"
|
30
|
+
data-url="{{ site.github.url }}"
|
31
|
+
data-count="horizontal"
|
32
|
+
data-via="{{ site.social.twitter.via }}"
|
33
|
+
data-text="{{ site.name }}"
|
34
|
+
data-hashtags="{{ site.social.twitter.hash }}"
|
35
|
+
>
|
36
|
+
Tweet
|
37
|
+
</a>
|
38
|
+
</li>
|
39
|
+
{% endif %}
|
40
|
+
{% if site.twitter.account %}
|
41
|
+
<li class="list-inline-item">
|
42
|
+
<a
|
43
|
+
href="https://twitter.com/{{ site.social.twitter.account }}"
|
44
|
+
class="twitter-follow-button"
|
45
|
+
data-show-count="true"
|
46
|
+
>
|
47
|
+
Follow @{{ site.social.twitter.account }}
|
48
|
+
</a>
|
49
|
+
</li>
|
50
|
+
{% endif %}
|
51
|
+
{% if site.facebook.enabled %}
|
52
|
+
<li class="list-inline-item">
|
53
|
+
<div
|
54
|
+
class="fb-like"
|
55
|
+
data-href="{{ site.github.url }}"
|
56
|
+
data-layout="button_count"
|
57
|
+
data-action="like"
|
58
|
+
data-show-faces="false"
|
59
|
+
data-share="true"
|
60
|
+
></div>
|
61
|
+
</li>
|
62
|
+
{% endif %}
|
63
|
+
{% if site.facebook.profileUrl %}
|
64
|
+
<li class="list-inline-item">
|
65
|
+
<div
|
66
|
+
class="fb-follow"
|
67
|
+
data-href="{{ site.social.facebook.profileUrl }}"
|
68
|
+
data-layout="button_count"
|
69
|
+
data-show-faces="false"
|
70
|
+
></div>
|
71
|
+
</li>
|
72
|
+
{% endif %}
|
73
|
+
</ul>
|
74
|
+
</div>
|
75
|
+
{% endif %}
|
76
|
+
|
77
|
+
<div class="site-footer__body">
|
78
|
+
<div class="row align-items-center">
|
79
|
+
<div class="col-md-5">
|
80
|
+
{% if site.links.footer %}
|
81
|
+
<ul class="site-footer__links text-left list-inline mb-0">
|
82
|
+
{% for link in site.links.footer %}
|
83
|
+
<li class="list-inline-item">
|
84
|
+
<a
|
85
|
+
href="{{ link.url }}"
|
86
|
+
class="site-footer__link"
|
87
|
+
>
|
88
|
+
{% include fa-icon.html
|
89
|
+
icon=link.icon
|
90
|
+
brand=link.brand
|
91
|
+
%}
|
92
|
+
<span>{{ link.title }}</span>
|
93
|
+
</a>
|
94
|
+
</li>
|
95
|
+
{% endfor %}
|
96
|
+
</ul>
|
97
|
+
{% endif %}
|
98
|
+
</div>
|
99
|
+
|
100
|
+
<div class="col-md-7 text-left text-md-right">
|
101
|
+
{% if site.license %}
|
102
|
+
<div class="site-footer__summary">
|
103
|
+
{% assign software_and_docs = site.license.software and site.license.docs %}
|
104
|
+
{% assign one_or_the_other = site.license.software or site.license.docs %}
|
105
|
+
|
106
|
+
<p class="mb-0">
|
107
|
+
{%- if site.license.software -%}
|
108
|
+
Licensed under
|
109
|
+
|
110
|
+
{% if site.license.software_url -%}<a href="{{ site.license.software_url }}" target="_blank">{%- endif -%}
|
111
|
+
{{ site.license.software }}
|
112
|
+
{%- if site.license.software_url -%}</a>{%- endif -%}
|
113
|
+
{%- endif -%}
|
114
|
+
|
115
|
+
{%- if site.license.docs -%}
|
116
|
+
{%- if one_or_the_other -%}
|
117
|
+
, documentation under
|
118
|
+
{%- else -%}
|
119
|
+
Documentation under
|
120
|
+
{%- endif %}
|
121
|
+
|
122
|
+
{% if site.license.docs_url -%}<a href="{{ site.license.docs_url }}">{%- endif -%}
|
123
|
+
{{ site.license.docs }}
|
124
|
+
{%- if site.license.docs_url -%}</a>{%- endif -%}
|
125
|
+
{%- endif -%}
|
126
|
+
</p>
|
127
|
+
|
128
|
+
<p class="mb-0">
|
129
|
+
Documentation template by <a href="http://getbootstrap.com">Bootstrap team</a>, generated with
|
130
|
+
<a href="https://github.com/allejo/jekyll-docs-theme">Jekyll Docs Theme</a>
|
131
|
+
</p>
|
132
|
+
</div>
|
133
|
+
{% endif %}
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<footer class="site-footer border-top mt-4 py-4 text-center" role="contentinfo">
|
2
|
+
{% include footer/content-pre.html %}
|
3
|
+
{% include footer/content.html %}
|
4
|
+
{% include footer/content-post.html %}
|
5
|
+
</footer>
|
6
|
+
|
7
|
+
{% include footer/scripts-pre.html %}
|
8
|
+
{% include footer/scripts.html %}
|
9
|
+
{% include footer/scripts-post.html %}
|
10
|
+
|
11
|
+
{% if site.analytics.google %}
|
12
|
+
{% include google-analytics.html %}
|
13
|
+
{% endif %}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!-- Bootstrap Related Dependencies -->
|
2
|
+
<script
|
3
|
+
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.js"
|
4
|
+
integrity="sha256-BTlTdQO9/fascB1drekrDVkaKd9PkwBymMlHOiG+qLI=" crossorigin="anonymous"
|
5
|
+
></script>
|
6
|
+
<script
|
7
|
+
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js"
|
8
|
+
integrity="sha256-/ijcOLwFf26xEYAjW75FizKVo5tnTYiQddPZoLUHHZ8=" crossorigin="anonymous"
|
9
|
+
></script>
|
10
|
+
<script
|
11
|
+
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/js/bootstrap.min.js"
|
12
|
+
integrity="sha256-WqU1JavFxSAMcLP2WIOI+GB2zWmShMI82mTpLDcqFUg=" crossorigin="anonymous"
|
13
|
+
></script>
|
14
|
+
|
15
|
+
{% include internal/variables.html %}
|
16
|
+
{% if site_ui_header_trianglify %}
|
17
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.min.js"></script>
|
18
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.1.2/trianglify.min.js"></script>
|
19
|
+
<script>
|
20
|
+
let uiColors = [];
|
21
|
+
|
22
|
+
{% if site_ui_mode == 'auto' -%}
|
23
|
+
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
24
|
+
uiColors = [
|
25
|
+
"{{ site_ui_header_dark_color1 }}",
|
26
|
+
"{{ site_ui_header_dark_color2 }}",
|
27
|
+
];
|
28
|
+
} else {
|
29
|
+
uiColors = [
|
30
|
+
"{{ site_ui_header_light_color1 }}",
|
31
|
+
"{{ site_ui_header_light_color2 }}",
|
32
|
+
];
|
33
|
+
}
|
34
|
+
{%- elsif site_ui_mode == "dark" -%}
|
35
|
+
uiColors = [
|
36
|
+
"{{ site_ui_header_dark_color1 }}",
|
37
|
+
"{{ site_ui_header_dark_color2 }}",
|
38
|
+
];
|
39
|
+
{%- else -%}
|
40
|
+
uiColors = [
|
41
|
+
"{{ site_ui_header_light_color1 }}",
|
42
|
+
"{{ site_ui_header_light_color2 }}",
|
43
|
+
];
|
44
|
+
{%- endif %}
|
45
|
+
</script>
|
46
|
+
{% endif %}
|
47
|
+
|
48
|
+
<script src="{{ '/assets/js/docs.js' | relative_url }}"></script>
|
File without changes
|
File without changes
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{% assign pageTitle = page.title | default: site.name ~ ' ' ~ site.project.version | escape %}
|
2
|
+
{% assign pageDescription = page.description | page.excerpt | default: site.description %}
|
3
|
+
|
4
|
+
<title>{{ pageTitle | strip_html | escape }}</title>
|
5
|
+
<meta name="description" content="{{ pageDescription | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
6
|
+
|
7
|
+
<link rel="canonical" href="{{ page.url | replace: 'index.html', '' | absolute_url }}">
|
8
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ '/feed.xml' | relative_url }}">
|
@@ -0,0 +1,9 @@
|
|
1
|
+
{% include head/base.html %}
|
2
|
+
|
3
|
+
{% include head/content-pre.html %}
|
4
|
+
{% include head/content.html %}
|
5
|
+
{% include head/content-post.html %}
|
6
|
+
|
7
|
+
{% include head/stylesheets-pre.html %}
|
8
|
+
{% include head/stylesheets.html %}
|
9
|
+
{% include head/stylesheets-post.html %}
|
File without changes
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<link
|
2
|
+
rel="stylesheet"
|
3
|
+
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css"
|
4
|
+
integrity="sha256-L/W5Wfqfa0sdBNIKN9cG6QA5F2qx4qICmU2VgLruv9Y="
|
5
|
+
crossorigin="anonymous"
|
6
|
+
/>
|
7
|
+
<link
|
8
|
+
rel="stylesheet"
|
9
|
+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css"
|
10
|
+
integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk="
|
11
|
+
crossorigin="anonymous"
|
12
|
+
/>
|
13
|
+
<link
|
14
|
+
rel="stylesheet"
|
15
|
+
href="{{ '/assets/css/styles.css' | relative_url }}"
|
16
|
+
/>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{%- assign site_ui_mode = site.ui.mode | default: 'auto' -%}
|
2
|
+
|
3
|
+
{%- assign site_ui_brand_dark = site.ui.brand.dark | default: '#00ceff' -%}
|
4
|
+
{%- assign site_ui_brand_light = site.ui.brand.light | default: '#a20000' -%}
|
5
|
+
|
6
|
+
{%- assign site_ui_border_color_dark = site.ui.border_color.dark | default: '#5f5f5f' -%}
|
7
|
+
{%- assign site_ui_border_color_light = site.ui.border_color.light | default: '#dee2e6' -%}
|
8
|
+
|
9
|
+
{%- if site.ui.header.trianglify == true or site.ui.header.trianglify == false -%}
|
10
|
+
{%- assign site_ui_header_trianglify = site.ui.header.trianglify -%}
|
11
|
+
{%- else -%}
|
12
|
+
{%- assign site_ui_header_trianglify = true -%}
|
13
|
+
{%- endif -%}
|
14
|
+
|
15
|
+
{%- assign site_ui_header_dark_color1 = site.ui.header.dark.color1 | default: '#062a48' -%}
|
16
|
+
{%- assign site_ui_header_dark_color2 = site.ui.header.dark.color2 | default: '#304e67' -%}
|
17
|
+
{%- assign site_ui_header_light_color1 = site.ui.header.light.color1 | default: '#080331' -%}
|
18
|
+
{%- assign site_ui_header_light_color2 = site.ui.header.light.color2 | default: '#673051' -%}
|
19
|
+
|
20
|
+
{%- assign site_ui_masthead_color_dark = site.ui.masthead.color.dark | default: '#fff' -%}
|
21
|
+
{%- assign site_ui_masthead_color_light = site.ui.masthead.color.light | default: '#fff' -%}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{% assign fm_anchorClass = layout.anchor_headings.anchorClass | default: page.anchor_headings.anchorClass | default: "" %}
|
2
|
+
|
3
|
+
{% capture anchorClass -%}
|
4
|
+
{{- include.anchorClass -}}
|
5
|
+
{%- if fm_anchorClass -%}
|
6
|
+
.{{- fm_anchorClass -}}
|
7
|
+
{%- endif -%}
|
8
|
+
{%- endcapture %}
|
9
|
+
|
10
|
+
{% assign beforeHeading = page.anchor_headings.beforeHeading | default: layout.anchor_headings.beforeHeading | default: false %}
|
11
|
+
{% assign anchorAttrs = page.anchor_headings.anchorAttrs | default: layout.anchor_headings.anchorAttrs | default: '' %}
|
12
|
+
{% assign anchorBody = page.anchor_headings.anchorBody | default: layout.anchor_headings.anchorBody | default: "#" %}
|
13
|
+
{% assign anchorTitle = page.anchor_headings.anchorTitle | default: layout.anchor_headings.anchorTitle | default: '' %}
|
14
|
+
{% assign h_min = page.anchor_headings.h_min | default: layout.anchor_headings.h_min | default: 1 %}
|
15
|
+
{% assign h_max = page.anchor_headings.h_max | default: layout.anchor_headings.h_max | default: 6 %}
|
16
|
+
{% assign bodyPrefix = page.anchor_headings.bodyPrefix | default: layout.anchor_headings.bodyPrefix | default: '' %}
|
17
|
+
{% assign bodySuffix = page.anchor_headings.bodySuffix | default: layout.anchor_headings.bodySuffix | default: '' %}
|
18
|
+
|
19
|
+
{% unless page.disable_anchors %}
|
20
|
+
{% include jekyll-docs-theme/vendor/anchor_headings.html
|
21
|
+
html=content
|
22
|
+
beforeHeading=beforeHeading
|
23
|
+
anchorAttrs=anchorAttrs
|
24
|
+
anchorBody=anchorBody
|
25
|
+
anchorClass=anchorClass
|
26
|
+
anchorTitle=anchorTitle
|
27
|
+
h_min=h_min
|
28
|
+
h_max=h_max
|
29
|
+
bodyPrefix=bodyPrefix
|
30
|
+
bodySuffix=bodySuffix
|
31
|
+
%}
|
32
|
+
{% else %}
|
33
|
+
{{ content }}
|
34
|
+
{% endunless %}
|