jekyll-theme-coo 6.3.12 → 6.4

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: c0183d205d3e5666e20e9d40dcb48b409c03c89fd5eac39a8f6492988bb17f71
4
- data.tar.gz: d7a3eedcdaf3d84de6cffcc671bbd94931101c33ddcf5157111bd315b328e4cb
3
+ metadata.gz: bdfdcb06d7833191dd65ff5091798915b74665684bc51d3850edf731f035e8d1
4
+ data.tar.gz: 243d8a4492f78e18050dc829a2465386c11a1aa6bf73ae98ea94f1c13124e7ac
5
5
  SHA512:
6
- metadata.gz: 48044932431a370dabf8b3a38eb63033ffb7e4039d6e9c6ffe79cc393ff7be57fa7d7a9293959371107255ba381a4fce7688c6668ca5b66b0ce203f29455fbea
7
- data.tar.gz: 2e14c4ec219c7aa0ee95891d3103be500a700584d99bee9f2a29a204b3b26fcce9172f7b1ed6caffacdd8ce5093e35c0cc73a08619d3cade5a96d71d52ad8ea3
6
+ metadata.gz: '0372964bd567bcaf7ca961b05ca03b08af3c2d94f0061fd6d468aaa38b7a7fe0f6109e44190f8df20f973f22222b0065c72f2c86867b62e2a52f955d949ee74d'
7
+ data.tar.gz: b5dff01885a468597bd80d62988a8349cb202f3f0ca63077f6a14e8d0f944d1690a067b41c99491928a03bba47732ae25e11263ac2785df5ddcce6c82c337a9d
data/README.md CHANGED
@@ -1,13 +1,14 @@
1
1
  # Coo
2
2
 
3
- A Jekyll theme for online documentation based on the [Chirpy][chirpy] Jekyll
4
- theme.
3
+ A Jekyll theme for online documentation based on [Chirpy][chirpy].
5
4
 
6
5
  [**Live demo**][demo]
7
6
 
8
7
  Coo is a fork of the Jekyll theme Chirpy with some modifications to make it easy
9
8
  for creating online documentation.
10
9
 
10
+ <!--=========================================================================-->
11
+
11
12
  ## License
12
13
 
13
14
  This work is covered by the [MIT license][license]. It is based on the Chirpy
@@ -19,6 +20,8 @@ Modification by:
19
20
 
20
21
  Copyright (c) 2023 Duck McSouls https://github.com/quacksouls
21
22
 
23
+ <!--=========================================================================-->
24
+
22
25
  [chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy
23
26
  [demo]: https://tekyllcoo.github.io
24
27
  [license]: https://github.com/quacksouls/jekyll-theme-coo/blob/master/LICENSE
data/_includes/head.html CHANGED
@@ -60,13 +60,13 @@
60
60
  {% endif %}
61
61
 
62
62
  <!-- GA -->
63
- {% if jekyll.environment == 'production' and site.google_analytics.id != empty and site.google_analytics.id %}
63
+ <!-- {% if jekyll.environment == 'production' and site.google_analytics.id != empty and site.google_analytics.id %}
64
64
  <link rel="preconnect" href="https://www.google-analytics.com" crossorigin="use-credentials">
65
65
  <link rel="dns-prefetch" href="https://www.google-analytics.com">
66
66
 
67
67
  <link rel="preconnect" href="https://www.googletagmanager.com" crossorigin="anonymous">
68
68
  <link rel="dns-prefetch" href="https://www.googletagmanager.com">
69
- {% endif %}
69
+ {% endif %} -->
70
70
 
71
71
  <!-- Bootstrap -->
72
72
  <link rel="stylesheet" href="{{ site.data.origin[type].bootstrap.css | relative_url}}">
@@ -83,7 +83,9 @@
83
83
  displayMath: [
84
84
  ['$$', '$$'],
85
85
  ['\\[', '\\]']
86
- ]
86
+ ],
87
+ /* Automatic equation numbering */
88
+ tags: "ams"
87
89
  }
88
90
  };
89
91
  </script>
@@ -76,18 +76,34 @@
76
76
  <!-- Table of contents -->
77
77
  <nav class="flex-column flex-grow-1 w-100 ps-0">
78
78
  <ul class="nav">
79
- {% for item in site.data.summary.toc %}
80
- <li class="nav-item{% if item.url == page.url %}{{ " active" }}{% endif %}">
81
- <a href="{{ site.data.summary.prefix | append: item.url }}" class="nav-link">
82
- <span>{{ item.title }}</span>
79
+ {% for chapter in site.data.summary.toc %}
80
+ <li class="nav-item chapter{% if chapter.url == page.url %}{{ " active" }}{% endif %}">
81
+ <a href="{{ site.data.summary.prefix | append: chapter.url }}" class="nav-link">
82
+ <span>{{ chapter.title }}</span>
83
83
  </a>
84
84
 
85
- {% if item.subfolder %}
85
+ {% assign showSection = "hide" %}
86
+ <!-- If the chapter is active, then show all its sections. -->
87
+ {% if chapter.url == page.url %}
88
+ {% assign showSection = "show" %}
89
+ {% else %}
90
+ <!-- If the chapter has an active section, then show all sections -->
91
+ <!-- in the chapter. -->
92
+ {% if chapter.subfolder %}
93
+ {% for section in chapter.subfolder %}
94
+ {% if section.url == page.url %}
95
+ {% assign showSection = "show" %}
96
+ {% endif %}
97
+ {% endfor %}
98
+ {% endif %}
99
+ {% endif %}
100
+
101
+ {% if chapter.subfolder %}
86
102
  <ul class="nav">
87
- {% for sec in item.subfolder %}
88
- <li class="nav-item{% if sec.url == page.url %}{{ " active" }}{% endif %}">
89
- <a href="{{ site.data.summary.prefix | append: sec.url }}" class="nav-link">
90
- <span>{{ sec.title }}</span>
103
+ {% for section in chapter.subfolder %}
104
+ <li class="nav-item {{ showSection }}{% if section.url == page.url %}{{ " active" }}{% endif %}">
105
+ <a href="{{ site.data.summary.prefix | append: section.url }}" class="nav-link">
106
+ <span>{{ section.title }}</span>
91
107
  </a>
92
108
  </li>
93
109
  {% endfor %}
@@ -5,46 +5,6 @@
5
5
  id="topbar"
6
6
  class="d-flex align-items-center justify-content-between px-lg-3 h-100"
7
7
  >
8
- <nav id="breadcrumb" aria-label="Breadcrumb">
9
- <!-- {% assign paths = page.url | split: '/' %}
10
- <span>
11
- <a href="{{ '/' | relative_url }}">
12
- {{ site.title }}
13
- </a>
14
- </span> -->
15
-
16
- <!-- {% if paths.size == 0 or page.layout == 'home' %} -->
17
- <!-- index page -->
18
- <!-- <span>{{ site.data.locales[include.lang].tabs.home | capitalize }}</span>
19
-
20
- {% else %}
21
- {% for item in paths %}
22
- {% if forloop.first %}
23
- <span>
24
- <a href="{{ '/' | relative_url }}">
25
- {{ site.data.locales[include.lang].tabs.home | capitalize }}
26
- </a>
27
- </span>
28
-
29
- {% elsif forloop.last %}
30
- {% if page.collection == 'tabs' %}
31
- <span>{{ site.data.locales[include.lang].tabs[item] | default: page.title }}</span>
32
- {% else %}
33
- <span>{{ page.title }}</span>
34
- {% endif %}
35
-
36
- {% elsif page.layout == 'category' or page.layout == 'tag' %}
37
- <span>
38
- <a href="{{ item | relative_url }}">
39
- {{ site.data.locales[include.lang].tabs[item] | default: page.title }}
40
- </a>
41
- </span>
42
- {% endif %}
43
- {% endfor %}
44
- {% endif %} -->
45
- </nav>
46
- <!-- endof #breadcrumb -->
47
-
48
8
  <button type="button" id="sidebar-trigger" class="btn btn-link">
49
9
  <i class="fas fa-bars fa-fw"></i>
50
10
  </button>
@@ -59,24 +19,5 @@
59
19
  {{- site.data.locales[include.lang].layout[page.layout] | default: page.layout | capitalize -}}
60
20
  {% endif %}
61
21
  </div>
62
-
63
- <button type="button" id="search-trigger" class="btn btn-link">
64
- <i class="fas fa-search fa-fw"></i>
65
- </button>
66
-
67
- <search class="align-items-center ms-3 ms-lg-0">
68
- <i class="fas fa-search fa-fw"></i>
69
- <input
70
- class="form-control"
71
- id="search-input"
72
- type="search"
73
- aria-label="search"
74
- autocomplete="off"
75
- placeholder="{{ site.data.locales[include.lang].search.hint | capitalize }}..."
76
- >
77
- </search>
78
- <button type="button" class="btn btn-link text-decoration-none" id="search-cancel">
79
- {{- site.data.locales[include.lang].search.cancel -}}
80
- </button>
81
22
  </div>
82
23
  </header>
@@ -21,8 +21,6 @@ layout: compress
21
21
 
22
22
  <div id="main-wrapper" class="d-flex justify-content-center">
23
23
  <div class="container d-flex flex-column px-xxl-5">
24
- {% include topbar.html lang=lang %}
25
-
26
24
  <div class="row flex-grow-1">
27
25
  <main aria-label="Main Content" class="col-12 col-lg-11 col-xl-9 px-md-4">
28
26
  {% if layout.refactor or layout.layout == 'default' %}
@@ -34,11 +32,6 @@ layout: compress
34
32
 
35
33
  <!-- panel -->
36
34
  <aside aria-label="Panel" id="panel-wrapper" class="col-xl-3 ps-2 mb-5 text-muted">
37
- <div class="access">
38
- {% include_cached update-list.html lang=lang %}
39
- {% include_cached trending-tags.html lang=lang %}
40
- </div>
41
-
42
35
  {% for _include in layout.panel_includes %}
43
36
  {% assign _include_path = _include | append: '.html' %}
44
37
  {% include {{ _include_path }} lang=lang %}
@@ -57,8 +50,6 @@ layout: compress
57
50
  {% include_cached footer.html lang=lang %}
58
51
  </div>
59
52
  </div>
60
-
61
- {% include_cached search-results.html lang=lang %}
62
53
  </div>
63
54
 
64
55
  <aside aria-label="Scroll to Top">
@@ -70,10 +61,6 @@ layout: compress
70
61
 
71
62
  <div id="mask"></div>
72
63
 
73
- {% if site.pwa.enabled %}
74
- {% include_cached notification.html lang=lang %}
75
- {% endif %}
76
-
77
64
  <!-- JavaScripts -->
78
65
 
79
66
  {% include js-selector.html %}
@@ -81,7 +68,5 @@ layout: compress
81
68
  {% if page.mermaid %}
82
69
  {% include mermaid.html %}
83
70
  {% endif %}
84
-
85
- {% include_cached search-loader.html %}
86
71
  </body>
87
72
  </html>
@@ -770,6 +770,7 @@ $btn-mb: 0.5rem;
770
770
  margin-bottom: 0rem;
771
771
 
772
772
  li.nav-item {
773
+ display: none;
773
774
  opacity: 0.9;
774
775
  width: 100%;
775
776
  padding-left: 1rem;
@@ -799,6 +800,18 @@ $btn-mb: 0.5rem;
799
800
  }
800
801
  }
801
802
 
803
+ &.chapter {
804
+ display: block;
805
+ }
806
+
807
+ &.show {
808
+ display: block;
809
+ }
810
+
811
+ &.hide {
812
+ display: none;
813
+ }
814
+
802
815
  &.active {
803
816
  .nav-link {
804
817
  color: var(--sidebar-active-color);
@@ -1523,7 +1536,7 @@ search {
1523
1536
  padding-left: 3.5rem;
1524
1537
  }
1525
1538
 
1526
- /* Presentation when window is maximimzed */
1539
+ /* Presentation when window is maximized */
1527
1540
  ul {
1528
1541
  li.nav-item {
1529
1542
  @include pl-pr(1.5rem);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-coo
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.12
4
+ version: '6.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cotes Chung
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-11-28 00:00:00.000000000 Z
12
+ date: 2023-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll