fni-docs-theme 0.6.0 → 0.6.2
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 +4 -4
 - data/_sass/navigation.scss +8 -8
 - data/_sass/search.scss +5 -5
 - data/_sass/support/_functions.scss +1 -1
 - data/lib/generators/nav-generator.rb +23 -4
 - metadata +13 -13
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ef0f1a17950b15ec68df995ce34554e7735129cd973fda8eff12d304ab334510
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: f8b98febd81c481ae84590dc1891f9540d15d4182f0c8a58805acc5571522fdc
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 615ed2a27fbe9bdf3ed940d3f5e01e60b394ed8714062808a24d6529ac6ba5a48ae553368262066056bc0e17c652a2673556f0913089cadf5340f4e71b168b7e
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 0cebb94ecbfc2fe9ebbb4f330082a40fb11c046d378d52ac75034c30d551c82e67f28fa23bdccb94b71318c8f400343a239082a9b5618ad7a69fcaaf903ceb05
         
     | 
    
        data/_sass/navigation.scss
    CHANGED
    
    | 
         @@ -67,19 +67,19 @@ 
     | 
|
| 
       67 
67 
     | 
    
         
             
                  }
         
     | 
| 
       68 
68 
     | 
    
         
             
                  width: $nav-list-item-height-sm;
         
     | 
| 
       69 
69 
     | 
    
         
             
                  height: $nav-list-item-height-sm;
         
     | 
| 
       70 
     | 
    
         
            -
                  padding-top:  
     | 
| 
       71 
     | 
    
         
            -
                  padding-right:  
     | 
| 
       72 
     | 
    
         
            -
                  padding-bottom:  
     | 
| 
       73 
     | 
    
         
            -
                  padding-left:  
     | 
| 
      
 70 
     | 
    
         
            +
                  padding-top: calc($nav-list-item-height-sm / 4);
         
     | 
| 
      
 71 
     | 
    
         
            +
                  padding-right: calc($nav-list-item-height-sm / 4);
         
     | 
| 
      
 72 
     | 
    
         
            +
                  padding-bottom: calc($nav-list-item-height-sm / 4);
         
     | 
| 
      
 73 
     | 
    
         
            +
                  padding-left: calc($nav-list-item-height-sm / 4);
         
     | 
| 
       74 
74 
     | 
    
         
             
                  color: $link-color;
         
     | 
| 
       75 
75 
     | 
    
         | 
| 
       76 
76 
     | 
    
         
             
                  @include mq(md) {
         
     | 
| 
       77 
77 
     | 
    
         
             
                    width: $nav-list-item-height;
         
     | 
| 
       78 
78 
     | 
    
         
             
                    height: $nav-list-item-height;
         
     | 
| 
       79 
     | 
    
         
            -
                    padding-top:  
     | 
| 
       80 
     | 
    
         
            -
                    padding-right:  
     | 
| 
       81 
     | 
    
         
            -
                    padding-bottom:  
     | 
| 
       82 
     | 
    
         
            -
                    padding-left:  
     | 
| 
      
 79 
     | 
    
         
            +
                    padding-top: calc($nav-list-item-height / 4);
         
     | 
| 
      
 80 
     | 
    
         
            +
                    padding-right: calc($nav-list-item-height / 4);
         
     | 
| 
      
 81 
     | 
    
         
            +
                    padding-bottom: calc($nav-list-item-height / 4);
         
     | 
| 
      
 82 
     | 
    
         
            +
                    padding-left: calc($nav-list-item-height / 4);
         
     | 
| 
       83 
83 
     | 
    
         
             
                  }
         
     | 
| 
       84 
84 
     | 
    
         | 
| 
       85 
85 
     | 
    
         
             
                  &:hover {
         
     | 
    
        data/_sass/search.scss
    CHANGED
    
    | 
         @@ -8,7 +8,7 @@ 
     | 
|
| 
       8 
8 
     | 
    
         
             
              flex-grow: 1;
         
     | 
| 
       9 
9 
     | 
    
         
             
              height: $sp-10;
         
     | 
| 
       10 
10 
     | 
    
         
             
              padding: $sp-2;
         
     | 
| 
       11 
     | 
    
         
            -
              transition: padding linear  
     | 
| 
      
 11 
     | 
    
         
            +
              transition: padding linear calc($transition-duration / 2);
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
13 
     | 
    
         
             
              @include mq(md) {
         
     | 
| 
       14 
14 
     | 
    
         
             
                position: relative !important;
         
     | 
| 
         @@ -26,7 +26,7 @@ 
     | 
|
| 
       26 
26 
     | 
    
         
             
              overflow: hidden;
         
     | 
| 
       27 
27 
     | 
    
         
             
              border-radius: $border-radius;
         
     | 
| 
       28 
28 
     | 
    
         
             
              box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
         
     | 
| 
       29 
     | 
    
         
            -
              transition: height linear  
     | 
| 
      
 29 
     | 
    
         
            +
              transition: height linear calc($transition-duration / 2);
         
     | 
| 
       30 
30 
     | 
    
         | 
| 
       31 
31 
     | 
    
         
             
              @include mq(md) {
         
     | 
| 
       32 
32 
     | 
    
         
             
                position: absolute;
         
     | 
| 
         @@ -62,7 +62,7 @@ 
     | 
|
| 
       62 
62 
     | 
    
         
             
                padding-left: #{$gutter-spacing + $sp-5};
         
     | 
| 
       63 
63 
     | 
    
         
             
                font-size: 14px;
         
     | 
| 
       64 
64 
     | 
    
         
             
                background-color: $body-background-color;
         
     | 
| 
       65 
     | 
    
         
            -
                transition: padding-left linear  
     | 
| 
      
 65 
     | 
    
         
            +
                transition: padding-left linear calc($transition-duration / 2);
         
     | 
| 
       66 
66 
     | 
    
         
             
              }
         
     | 
| 
       67 
67 
     | 
    
         | 
| 
       68 
68 
     | 
    
         
             
              &:focus {
         
     | 
| 
         @@ -82,7 +82,7 @@ 
     | 
|
| 
       82 
82 
     | 
    
         | 
| 
       83 
83 
     | 
    
         
             
              @include mq(md) {
         
     | 
| 
       84 
84 
     | 
    
         
             
                padding-left: $gutter-spacing;
         
     | 
| 
       85 
     | 
    
         
            -
                transition: padding-left linear  
     | 
| 
      
 85 
     | 
    
         
            +
                transition: padding-left linear calc($transition-duration / 2);
         
     | 
| 
       86 
86 
     | 
    
         
             
              }
         
     | 
| 
       87 
87 
     | 
    
         | 
| 
       88 
88 
     | 
    
         
             
              .search-icon {
         
     | 
| 
         @@ -241,7 +241,7 @@ 
     | 
|
| 
       241 
241 
     | 
    
         
             
              height: $sp-9;
         
     | 
| 
       242 
242 
     | 
    
         
             
              background-color: $search-background-color;
         
     | 
| 
       243 
243 
     | 
    
         
             
              border: 1px solid rgba($link-color, 0.3);
         
     | 
| 
       244 
     | 
    
         
            -
              border-radius:  
     | 
| 
      
 244 
     | 
    
         
            +
              border-radius: calc($sp-9 / 2);
         
     | 
| 
       245 
245 
     | 
    
         
             
              box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
         
     | 
| 
       246 
246 
     | 
    
         
             
              align-items: center;
         
     | 
| 
       247 
247 
     | 
    
         
             
              justify-content: center;
         
     | 
| 
         @@ -5,6 +5,9 @@ module NavGenerator 
     | 
|
| 
       5 
5 
     | 
    
         
             
                def generate(site)
         
     | 
| 
       6 
6 
     | 
    
         
             
                  nav = nav_for_parent(site.pages, nil, nil)
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
      
 8 
     | 
    
         
            +
                  # Breadcrumbs
         
     | 
| 
      
 9 
     | 
    
         
            +
                  breadcrumb = breadcrumb_for_parent(site.pages, nil, nil)
         
     | 
| 
      
 10 
     | 
    
         
            +
                  
         
     | 
| 
       8 
11 
     | 
    
         
             
                  # Attach nav data to the default layout
         
     | 
| 
       9 
12 
     | 
    
         
             
                  site.layouts['default'].data['nav'] = nav
         
     | 
| 
       10 
13 
     | 
    
         
             
                end
         
     | 
| 
         @@ -21,10 +24,6 @@ module NavGenerator 
     | 
|
| 
       21 
24 
     | 
    
         
             
                    # Attach the child data to the page itself, used to render the footer Table of Contents
         
     | 
| 
       22 
25 
     | 
    
         
             
                    page.data['children'] = children
         
     | 
| 
       23 
26 
     | 
    
         | 
| 
       24 
     | 
    
         
            -
                    # Attach parent/grandparent URLs for rendering breadcrumb
         
     | 
| 
       25 
     | 
    
         
            -
                    page.data['parent_url'] = parentPage&.url
         
     | 
| 
       26 
     | 
    
         
            -
                    page.data['grand_parent_url'] = grandParentPage&.url
         
     | 
| 
       27 
     | 
    
         
            -
                    
         
     | 
| 
       28 
27 
     | 
    
         
             
                    {
         
     | 
| 
       29 
28 
     | 
    
         
             
                      'title' => page.data['title'],
         
     | 
| 
       30 
29 
     | 
    
         
             
                      'url' => page.url,
         
     | 
| 
         @@ -32,5 +31,25 @@ module NavGenerator 
     | 
|
| 
       32 
31 
     | 
    
         
             
                    }
         
     | 
| 
       33 
32 
     | 
    
         
             
                  }
         
     | 
| 
       34 
33 
     | 
    
         
             
                end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                def breadcrumb_for_parent(page_list, parentPage, grandParentPage)
         
     | 
| 
      
 36 
     | 
    
         
            +
                  parentPageTitle = parentPage && parentPage.data['title']
         
     | 
| 
      
 37 
     | 
    
         
            +
                  pages = page_list
         
     | 
| 
      
 38 
     | 
    
         
            +
                    .filter { |page| page.data['parent'] == parentPageTitle && page.data['title'] != nil }
         
     | 
| 
      
 39 
     | 
    
         
            +
                    .sort_by { |page| [page.data['nav_order'] || 999, page.data['title']] }  
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
                  nav = pages.map { |page|
         
     | 
| 
      
 42 
     | 
    
         
            +
                    children = breadcrumb_for_parent(page_list, page, parentPage)
         
     | 
| 
      
 43 
     | 
    
         
            +
                    
         
     | 
| 
      
 44 
     | 
    
         
            +
                    # Attach parent/grandparent URLs for rendering breadcrumb
         
     | 
| 
      
 45 
     | 
    
         
            +
                    page.data['parent_url'] = parentPage&.url
         
     | 
| 
      
 46 
     | 
    
         
            +
                    page.data['grand_parent_url'] = grandParentPage&.url
         
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
                    {
         
     | 
| 
      
 49 
     | 
    
         
            +
                      'parent_url' => parentPage&.url,
         
     | 
| 
      
 50 
     | 
    
         
            +
                      'grand_parent_url' => grandParentPage&.url
         
     | 
| 
      
 51 
     | 
    
         
            +
                    }
         
     | 
| 
      
 52 
     | 
    
         
            +
                  }
         
     | 
| 
      
 53 
     | 
    
         
            +
                end
         
     | 
| 
       35 
54 
     | 
    
         
             
              end
         
     | 
| 
       36 
55 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: fni-docs-theme
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.6. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.6.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Patrick Marsceill
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date:  
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2023-02-15 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: bundler
         
     | 
| 
         @@ -17,42 +17,42 @@ dependencies: 
     | 
|
| 
       17 
17 
     | 
    
         
             
                requirements:
         
     | 
| 
       18 
18 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       19 
19 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       20 
     | 
    
         
            -
                    version: 2. 
     | 
| 
      
 20 
     | 
    
         
            +
                    version: '2.4'
         
     | 
| 
       21 
21 
     | 
    
         
             
              type: :development
         
     | 
| 
       22 
22 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       23 
23 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       24 
24 
     | 
    
         
             
                requirements:
         
     | 
| 
       25 
25 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       26 
26 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       27 
     | 
    
         
            -
                    version: 2. 
     | 
| 
      
 27 
     | 
    
         
            +
                    version: '2.4'
         
     | 
| 
       28 
28 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       29 
29 
     | 
    
         
             
              name: jekyll
         
     | 
| 
       30 
30 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       31 
31 
     | 
    
         
             
                requirements:
         
     | 
| 
       32 
32 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       33 
33 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       34 
     | 
    
         
            -
                    version: 4. 
     | 
| 
      
 34 
     | 
    
         
            +
                    version: '4.3'
         
     | 
| 
       35 
35 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       36 
36 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       37 
37 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       38 
38 
     | 
    
         
             
                requirements:
         
     | 
| 
       39 
39 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       40 
40 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       41 
     | 
    
         
            -
                    version: 4. 
     | 
| 
      
 41 
     | 
    
         
            +
                    version: '4.3'
         
     | 
| 
       42 
42 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       43 
43 
     | 
    
         
             
              name: jekyll-include-cache
         
     | 
| 
       44 
44 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       45 
45 
     | 
    
         
             
                requirements:
         
     | 
| 
       46 
46 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       47 
47 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       48 
     | 
    
         
            -
                    version: 0.2 
     | 
| 
      
 48 
     | 
    
         
            +
                    version: '0.2'
         
     | 
| 
       49 
49 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       50 
50 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       51 
51 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       52 
52 
     | 
    
         
             
                requirements:
         
     | 
| 
       53 
53 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       54 
54 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       55 
     | 
    
         
            -
                    version: 0.2 
     | 
| 
      
 55 
     | 
    
         
            +
                    version: '0.2'
         
     | 
| 
       56 
56 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       57 
57 
     | 
    
         
             
              name: rake
         
     | 
| 
       58 
58 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -79,28 +79,28 @@ dependencies: 
     | 
|
| 
       79 
79 
     | 
    
         
             
                requirements:
         
     | 
| 
       80 
80 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       81 
81 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       82 
     | 
    
         
            -
                    version: '1. 
     | 
| 
      
 82 
     | 
    
         
            +
                    version: '1.8'
         
     | 
| 
       83 
83 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       84 
84 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       85 
85 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       86 
86 
     | 
    
         
             
                requirements:
         
     | 
| 
       87 
87 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       88 
88 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       89 
     | 
    
         
            -
                    version: '1. 
     | 
| 
      
 89 
     | 
    
         
            +
                    version: '1.8'
         
     | 
| 
       90 
90 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       91 
91 
     | 
    
         
             
              name: digest
         
     | 
| 
       92 
92 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       93 
93 
     | 
    
         
             
                requirements:
         
     | 
| 
       94 
94 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       95 
95 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       96 
     | 
    
         
            -
                    version: '3. 
     | 
| 
      
 96 
     | 
    
         
            +
                    version: '3.1'
         
     | 
| 
       97 
97 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       98 
98 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       99 
99 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       100 
100 
     | 
    
         
             
                requirements:
         
     | 
| 
       101 
101 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       102 
102 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       103 
     | 
    
         
            -
                    version: '3. 
     | 
| 
      
 103 
     | 
    
         
            +
                    version: '3.1'
         
     | 
| 
       104 
104 
     | 
    
         
             
            description: 
         
     | 
| 
       105 
105 
     | 
    
         
             
            email:
         
     | 
| 
       106 
106 
     | 
    
         
             
            - patrick.marsceill@gmail.com
         
     | 
| 
         @@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       198 
198 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       199 
199 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       200 
200 
     | 
    
         
             
            requirements: []
         
     | 
| 
       201 
     | 
    
         
            -
            rubygems_version: 3.3. 
     | 
| 
      
 201 
     | 
    
         
            +
            rubygems_version: 3.3.26
         
     | 
| 
       202 
202 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       203 
203 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       204 
204 
     | 
    
         
             
            summary: Fork of just-the-docs
         
     |