jekyll-docs-theme 1.0.0.pre.beta.2 → 1.0.0.pre.beta.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29d77e21bd07c17cc7121c8cbe221f773f93d89047adf95193f0f4e1d9a279c6
4
- data.tar.gz: aae4b27e89dbcf194b7afbf774c8c8bd025828b049732c59839db14630c9e7d8
3
+ metadata.gz: 139d521fa6b19976dcaca60d33e370fd6da0dd530837ed347fca256fcf0b78b8
4
+ data.tar.gz: bf2c0410e56d0a65fb26b4a5ed52d37843b0dc4f2adb9eb4c1cd58b01f484123
5
5
  SHA512:
6
- metadata.gz: 6662d176d68b765dc0e1512bfa2d84571ebe51d5d7816b80aa31363d0930be6a8896ef87ee1554b37b5343818d21da702fb74aced2dcf39a415e9eae6c357d5c
7
- data.tar.gz: f64f25c1865136a862ddfc2b0beedaf33ab8c79432c50a98824bb2431c7af2fcd6f9acb8aa6d59f2837fe8afa5f3a149da54d32ecf2fe8a33ac85d69ab82cf21
6
+ metadata.gz: 1e6f5862d29145ca552015f624e0a59e961fcea8b37f3756904f821097f1d93af93ecc5eeadebfa5c3d539a6fb487e6c5340260d6bb327cf8f29be443ccb097f
7
+ data.tar.gz: ca833360cbe4e61fbab0731db6c2735a0b44fd65788bfd426d1de255eee476523f6a353d783a9ccce50f876dfffc7dd03a156cddc0ff35ac7858cfe65c960ca2
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Jekyll Docs Theme
2
2
 
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)
6
+
3
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.
4
8
 
5
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.
@@ -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 %}
@@ -0,0 +1,38 @@
1
+ {% assign fm_class = layout.table_of_contents.class | default: page.table_of_contents.class | default: "" %}
2
+ {% assign fm_anchor_class = layout.table_of_contents.anchor_class | default: page.table_of_contents.anchor_class | default: "" %}
3
+
4
+ {% capture class -%}
5
+ {{- include.class -}}
6
+ {%- if fm_class -%}
7
+ .{{- fm_class -}}
8
+ {%- endif -%}
9
+ {%- endcapture %}
10
+
11
+ {% capture anchor_class %}
12
+ {{- include.anchor_class -}}
13
+ {%- if fm_anchor_class -%}
14
+ .{{- fm_anchor_class -}}
15
+ {%- endif -%}
16
+ {% endcapture %}
17
+
18
+ {% assign sanitize = page.table_of_contents.sanitize | default: layout.table_of_contents.sanitize | default: false %}
19
+ {% assign h_min = page.table_of_contents.h_min | default: layout.table_of_contents.h_min | default: 1 %}
20
+ {% assign h_max = page.table_of_contents.h_max | default: layout.table_of_contents.h_max | default: 3 %}
21
+ {% assign ordered = page.table_of_contents.ordered | default: layout.table_of_contents.ordered | default: false %}
22
+ {% assign item_class = page.table_of_contents.item_class | default: layout.table_of_contents.item_class | default: '' %}
23
+ {% assign baseurl = page.table_of_contents.baseurl | default: layout.table_of_contents.baseurl | default: '' %}
24
+ {% assign skipNoIDs = page.table_of_contents.skipNoIDs | default: layout.table_of_contents.skipNoIDs | default: false %}
25
+
26
+ {% include jekyll-docs-theme/vendor/toc.html
27
+ html=content
28
+ id=include.id
29
+ class=class
30
+ sanitize=sanitize
31
+ h_min=h_min
32
+ h_max=h_max
33
+ ordered=ordered
34
+ item_class=item_class
35
+ baseurl=baseurl
36
+ anchor_class=anchor_class
37
+ skipNoIDs=skipNoIDs
38
+ %}
@@ -1,6 +1,6 @@
1
1
  {% capture headingsWorkspace %}
2
2
  {% comment %}
3
- Version 1.0.5
3
+ Version 1.0.6
4
4
  https://github.com/allejo/jekyll-anchor-headings
5
5
 
6
6
  "Be the pull request you wish to see in the world." ~Ben Balter
@@ -13,7 +13,8 @@
13
13
 
14
14
  Optional Parameters:
15
15
  * beforeHeading (bool) : false - Set to true if the anchor should be placed _before_ the heading's content
16
- * anchorAttrs (string) : '' - Any custom HTML attributes that will be added to the `<a>` tag; you may NOT use `href`, `class` or `title`
16
+ * anchorAttrs (string) : '' - Any custom HTML attributes that will be added to the `<a>` tag; you may NOT use `href`, `class` or `title`;
17
+ the `%heading%` placeholder is available
17
18
  * anchorBody (string) : '' - The content that will be placed inside the anchor; the `%heading%` placeholder is available
18
19
  * anchorClass (string) : '' - The class(es) that will be used for each anchor. Separate multiple classes with a space
19
20
  * anchorTitle (string) : '' - The `title` attribute that will be used for anchors
@@ -80,7 +81,7 @@
80
81
  {% endif %}
81
82
 
82
83
  {% if include.anchorAttrs %}
83
- {% capture anchor %}{{ anchor }} {{ include.anchorAttrs }}{% endcapture %}
84
+ {% capture anchor %}{{ anchor }} {{ include.anchorAttrs | replace: '%heading%', header }}{% endcapture %}
84
85
  {% endif %}
85
86
 
86
87
  {% capture anchor %}<a {{ anchor }}>{{ include.anchorBody | replace: '%heading%', header | default: '' }}</a>{% endcapture %}
@@ -106,4 +107,4 @@
106
107
  {% endcapture %}
107
108
  {% capture edited_headings %}{{ edited_headings }}{{ new_heading }}{% endcapture %}
108
109
  {% endfor %}
109
- {% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }}
110
+ {% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }}
File without changes
File without changes
@@ -0,0 +1,10 @@
1
+ <nav id="page-toc" class="page-sidebar">
2
+ {% include jekyll-docs-theme/toc.html
3
+ class="list-unstyled.pl-0"
4
+ anchor_class="nav-link.px-3.py-1"
5
+ %}
6
+
7
+ <a class="px-3 text-muted" href="#top">
8
+ <small>Back to top</small>
9
+ </a>
10
+ </nav>
@@ -4,7 +4,13 @@
4
4
  {% include head/full.html %}
5
5
  </head>
6
6
 
7
- <body class="layout-{{ page.layout }}" data-spy="scroll" data-target="#page-toc" data-offset="0">
7
+ {% assign scrollSpyOffset = page.scrollSpyOffset | default: layout.scrollSpyOffset | default: 0 %}
8
+ <body
9
+ class="layout-{{ page.layout }}"
10
+ data-spy="scroll"
11
+ data-target="#page-toc"
12
+ data-offset="{{ scrollSpyOffset }}"
13
+ >
8
14
  {% include navigation.html %}
9
15
  {% include masthead.html %}
10
16
 
@@ -4,15 +4,7 @@ layout: default
4
4
 
5
5
  <div class="container">
6
6
  <main class="layout-full__main scope-markdown">
7
- {% unless page.disable_anchors %}
8
- {% include jekyll-docs-theme/vendor/anchor_headings.html
9
- html=content
10
- anchorBody="#"
11
- anchorClass="heading-anchor"
12
- %}
13
- {% else %}
14
- {{ content }}
15
- {% endunless %}
7
+ {% include jekyll-docs-theme/anchor_headings.html %}
16
8
  </main>
17
9
 
18
10
  {% include disqus.html %}
@@ -19,40 +19,21 @@ layout: default
19
19
  </button>
20
20
  </div>
21
21
 
22
- {% include jekyll-docs-theme/vendor/toc.html
23
- html=content
22
+ {% include jekyll-docs-theme/toc.html
24
23
  class="js-toc.mb-0.mt-2"
25
24
  id="mobileTOC"
26
- h_max=3
27
25
  %}
28
26
  </section>
29
27
 
30
28
  <section class="scope-markdown">
31
- {% unless page.disable_anchors %}
32
- {% include jekyll-docs-theme/vendor/anchor_headings.html
33
- html=content
34
- anchorBody="#"
35
- anchorClass="heading-anchor"
36
- %}
37
- {% else %}
38
- {{ content }}
39
- {% endunless %}
29
+ {% include jekyll-docs-theme/anchor_headings.html %}
40
30
  </section>
41
31
  </main>
42
32
 
43
33
  <aside class="col-md-3 layout-page__sidebar d-none d-md-block hidden-print">
44
- <nav id="page-toc" class="page-sidebar">
45
- {% include jekyll-docs-theme/vendor/toc.html
46
- html=content
47
- class="list-unstyled.pl-0"
48
- anchor_class="nav-link.px-3.py-1"
49
- h_max=3
50
- %}
51
-
52
- <a class="px-3 text-muted" href="#top">
53
- <small>Back to top</small>
54
- </a>
55
- </nav>
34
+ {% include sidebar/content-pre.html %}
35
+ {% include sidebar/content.html %}
36
+ {% include sidebar/content-pre.html %}
56
37
  </aside>
57
38
  </div>
58
39
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-docs-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.2
4
+ version: 1.0.0.pre.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir 'allejo' Jimenez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-05 00:00:00.000000000 Z
11
+ date: 2020-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -67,6 +67,8 @@ files:
67
67
  - _includes/head/stylesheets-pre.html
68
68
  - _includes/head/stylesheets.html
69
69
  - _includes/internal/variables.html
70
+ - _includes/jekyll-docs-theme/anchor_headings.html
71
+ - _includes/jekyll-docs-theme/toc.html
70
72
  - _includes/jekyll-docs-theme/vendor/anchor_headings.html
71
73
  - _includes/jekyll-docs-theme/vendor/toc.html
72
74
  - _includes/masthead.html
@@ -74,6 +76,9 @@ files:
74
76
  - _includes/masthead/buttons.html
75
77
  - _includes/masthead/title.html
76
78
  - _includes/navigation.html
79
+ - _includes/sidebar/content-post.html
80
+ - _includes/sidebar/content-pre.html
81
+ - _includes/sidebar/content.html
77
82
  - _includes/twitter.html
78
83
  - _layouts/default.html
79
84
  - _layouts/full.html