jekyll-theme-coo 6.3.11 → 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: a6787b89c58d6e508d671bb29d5495a2bb188276e6752a74b127e4b3eb086dab
4
- data.tar.gz: 90258f71fecbca27d6ba45f7283ff8b3aecb56ce8eac951b9ee8abdbcb0abdf6
3
+ metadata.gz: bdfdcb06d7833191dd65ff5091798915b74665684bc51d3850edf731f035e8d1
4
+ data.tar.gz: 243d8a4492f78e18050dc829a2465386c11a1aa6bf73ae98ea94f1c13124e7ac
5
5
  SHA512:
6
- metadata.gz: '0578f1da9fb41adaf736f815ebaa7411a763b3b70fda88b9b3c1ae6b62f774232a9082de1dc94a322e9dba32476079b14c69b4662dba5c735e4d5e5a42d6619b'
7
- data.tar.gz: d919be782f2b3ee6f48182cf9df417ad1683c2e805cb665ac6c8d33fb6ae496c90f06d8fb958002ee838a9ff1e4b22a641aa4857999a602f8f9bd84432adcc74
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>
@@ -765,10 +765,12 @@ $btn-mb: 0.5rem;
765
765
  user-select: none;
766
766
  }
767
767
 
768
+ /* Presentation in normal window, not maximized */
768
769
  ul {
769
770
  margin-bottom: 0rem;
770
771
 
771
772
  li.nav-item {
773
+ display: none;
772
774
  opacity: 0.9;
773
775
  width: 100%;
774
776
  padding-left: 1rem;
@@ -779,7 +781,7 @@ $btn-mb: 0.5rem;
779
781
 
780
782
  display: flex;
781
783
  align-items: left;
782
- border-radius: 0.75rem;
784
+ border-radius: 0.5rem;
783
785
  font-weight: 600;
784
786
 
785
787
  &:hover {
@@ -798,6 +800,18 @@ $btn-mb: 0.5rem;
798
800
  }
799
801
  }
800
802
 
803
+ &.chapter {
804
+ display: block;
805
+ }
806
+
807
+ &.show {
808
+ display: block;
809
+ }
810
+
811
+ &.hide {
812
+ display: none;
813
+ }
814
+
801
815
  &.active {
802
816
  .nav-link {
803
817
  color: var(--sidebar-active-color);
@@ -1522,9 +1536,53 @@ search {
1522
1536
  padding-left: 3.5rem;
1523
1537
  }
1524
1538
 
1539
+ /* Presentation when window is maximized */
1525
1540
  ul {
1526
1541
  li.nav-item {
1527
- @include pl-pr(2.75rem);
1542
+ @include pl-pr(1.5rem);
1543
+ opacity: 0.9;
1544
+ width: 100%;
1545
+ padding-left: 1rem;
1546
+ padding-right: 0rem;
1547
+
1548
+ a.nav-link {
1549
+ @include pt-pb(0.6rem);
1550
+
1551
+ display: flex;
1552
+ align-items: left;
1553
+ border-radius: 0.5rem;
1554
+ font-weight: 600;
1555
+
1556
+ &:hover {
1557
+ background-color: var(--sidebar-hover-bg);
1558
+ }
1559
+
1560
+ i {
1561
+ font-size: 95%;
1562
+ opacity: 0.8;
1563
+ margin-right: 1.5rem;
1564
+ }
1565
+
1566
+ span {
1567
+ font-size: 90%;
1568
+ letter-spacing: 0.2px;
1569
+ }
1570
+ }
1571
+
1572
+ &.active {
1573
+ .nav-link {
1574
+ color: var(--sidebar-active-color);
1575
+ background-color: var(--sidebar-hover-bg);
1576
+
1577
+ span {
1578
+ opacity: 1;
1579
+ }
1580
+ }
1581
+ }
1582
+
1583
+ &:not(:first-child) {
1584
+ margin-top: 0rem;
1585
+ }
1528
1586
  }
1529
1587
  }
1530
1588
 
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.11
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-25 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