jekyll-theme-gitbook 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0246e434f0a26049173d1b595ba1a0755b9cdcdf13fea1f399959c09c70aa24d
4
- data.tar.gz: b236e07a84f4af0c16ab9a38c3764913d0afa01f42774464d8f0f4bcf9af2ca9
3
+ metadata.gz: 7dc044c4d49f4c5561b795a811d44329c9e69079d386dd642c120558cc630842
4
+ data.tar.gz: 4c26d454d6418a1115e964e143678cdec9374679caa9f5cc0d67ef032de8bc99
5
5
  SHA512:
6
- metadata.gz: b74e123c0c5edcc54c8d36ec2222ab45adf9ecd7e83ccb220587b41591de4e938e3b629063689fd20a1877e012b0fd683176996214aa8a499b289bcc4a183f4f
7
- data.tar.gz: 888013d432576776ee3587739ad3977249f1a46b8a282128f8ee6695a52bbcdc8b288e92bf9c0c66824c5ca1817740c779fb92aa495cf766240a450cdde74fee
6
+ metadata.gz: 8803a669b0e3deaa8f179a467ed52d8fa615c7646d837cb9025726d2799407bdf4bcf3d9685049f98ccf04a3e7c882d3a8d4db96b68f4eaeb6036259678d05ab
7
+ data.tar.gz: 146bcf575a0648a53ad49edcaefa351215214ce34dd3a8557c7b7bb68ea2b24a453a0e4fbe8e97bacda2755df7ebb875f6c5414335cbc69605e5b67eb7956364
data/README.md CHANGED
@@ -34,7 +34,7 @@ This theme is designed to be highly configurable, whilst providing sensible defa
34
34
  If you are hosting your site on GitHub Pages then add the following line to your site's `_config.yml` file (as per [the documentation](https://docs.github.com/en/github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll)):
35
35
 
36
36
  ```yaml
37
- remote_theme: "adamrehn/jekyll-theme-gitbook@v0.0.4"
37
+ remote_theme: "adamrehn/jekyll-theme-gitbook@v0.0.6"
38
38
  ```
39
39
 
40
40
  ### Other hosts (e.g. GitLab Pages)
@@ -14,7 +14,7 @@
14
14
  {% include hooks/head-posthook.html %}
15
15
  </head>
16
16
 
17
- <body>
17
+ <body{% if page.pageclass %} class="{{ page.pageclass | escape }}"{% endif %}>
18
18
 
19
19
  <header>
20
20
 
@@ -16,7 +16,7 @@
16
16
 
17
17
  {% for index in indices %}
18
18
 
19
- {% if site.theme-settings.navigation.collapsible == true %}<details{% unless site.theme-settings.navigation.collapsed == true %} open="true"{% endunless %}>{% endif %}
19
+ {% if site.theme-settings.navigation.collapsible == true %}<details{% if site.theme-settings.navigation.collapsed != true or page.chapter == index.chapter %} open="true"{% endif %}>{% endif %}
20
20
 
21
21
  <{{ chapter_element }} class="chapter">{% if index.icon %}{% assign components = index.url | split: "/" %}<span class="icon icon-{{ components[-2] | escape }} {{ index.icon | escape }}"></span> {% endif %}{{ index.chapter | escape }}</{{ chapter_element }}>
22
22
 
data/_sass/_content.scss CHANGED
@@ -100,7 +100,7 @@ nav .chapter, nav ul li {
100
100
  max-width: 100%;
101
101
  }
102
102
 
103
- nav ul + .chapter {
103
+ nav ul + .chapter, nav details + details {
104
104
  margin-top: 2rem;
105
105
  }
106
106
 
@@ -128,7 +128,7 @@ footer a, footer a:hover,
128
128
  text-decoration: none;
129
129
  }
130
130
 
131
- nav ul:last-child {
131
+ nav .inner > ul:last-child, nav .inner > details:last-child {
132
132
  padding-bottom: $header-height / 2;
133
133
  }
134
134
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-gitbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Rehn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll