jekyll-readthedocs 0.1.0 → 0.2.0
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/README.md +19 -2
- data/_includes/sidebar.html +5 -4
- data/_layouts/home.html +2 -1
- data/_sass/minima/_layout.scss +14 -3
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9f90ee37365aab92331d4e7493d974ab636c71b1
         | 
| 4 | 
            +
              data.tar.gz: 646592101a0fec1c4f5e912535a46d4f8fa2dfd8
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 1bfab6e78cfe8291d1e9b4bcd9797c87fb27d4cd2ad94567769a0e73526f9b56e5e03f9e5c1f97f8391ed94dbcf16b7c4956335d7735f787846507aa6d127a5b
         | 
| 7 | 
            +
              data.tar.gz: 3ffe1935869b6cf13092af98b2d0dee7bbffc672f67f6aa0db03ae2cdfe7f83a5484eee1565bf778c718296b95a0cce2fbc4a08b190bf7b36eb53a0a5af6d7b8
         | 
    
        data/README.md
    CHANGED
    
    | @@ -2,9 +2,9 @@ | |
| 2 2 |  | 
| 3 3 | 
             
            *Jekyll-ReadTheDocs is a fork of Jekyll's Minima base theme. Documentation below may refer to minima instead of this fork.*
         | 
| 4 4 |  | 
| 5 | 
            -
            [Theme preview]( | 
| 5 | 
            +
            [Theme preview](http://pawamoy.github.io/) (my own blog using this theme).
         | 
| 6 6 |  | 
| 7 | 
            -
            
         | 
| 7 | 
            +
            
         | 
| 8 8 |  | 
| 9 9 | 
             
            ## Installation
         | 
| 10 10 |  | 
| @@ -25,6 +25,21 @@ And then execute: | |
| 25 25 | 
             
                $ bundle
         | 
| 26 26 |  | 
| 27 27 |  | 
| 28 | 
            +
            ### With GitHub Pages
         | 
| 29 | 
            +
            To use this theme with GitHub Pages, you might need to declare the theme as remote in your `_config.yml` file:
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            ```yaml
         | 
| 32 | 
            +
            #theme: jekyll-readthedocs
         | 
| 33 | 
            +
            remote_theme: pawamoy/jekyll-readthedocs
         | 
| 34 | 
            +
            ```
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            And your `Gemfile` should be:
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            ```ruby
         | 
| 39 | 
            +
            source "https://rubygems.org"
         | 
| 40 | 
            +
            gem 'github-pages', group: :jekyll_plugins
         | 
| 41 | 
            +
            ```
         | 
| 42 | 
            +
             | 
| 28 43 | 
             
            ### Layouts
         | 
| 29 44 |  | 
| 30 45 | 
             
            Refers to files within the `_layouts` directory, that define the markup for your theme.
         | 
| @@ -84,6 +99,8 @@ It will be automatically included only when your site contains one or more valid | |
| 84 99 |  | 
| 85 100 | 
             
            The title for this section is `Posts` by default and rendered with an `<h2>` tag. You can customize this heading by defining a `list_title` variable in the document's front matter.
         | 
| 86 101 |  | 
| 102 | 
            +
            To add post excerpts in the post listing, set `use_excerpt: true` in `_config.yml`. 
         | 
| 103 | 
            +
             | 
| 87 104 | 
             
            --
         | 
| 88 105 |  | 
| 89 106 | 
             
            ### Customization
         | 
    
        data/_includes/sidebar.html
    CHANGED
    
    | @@ -1,8 +1,9 @@ | |
| 1 1 | 
             
            <div class="site-sidebar">
         | 
| 2 2 | 
             
              <a class="sidebar-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
         | 
| 3 3 |  | 
| 4 | 
            -
              < | 
| 5 | 
            -
             | 
| 4 | 
            +
              <form method="get" action="{{ site.baseurl }}/search.html">
         | 
| 5 | 
            +
                <input type="text" name="q" placeholder="Search blog">
         | 
| 6 | 
            +
              </form>
         | 
| 6 7 |  | 
| 7 8 | 
             
              {% assign default_paths = site.pages | map: "path" %}
         | 
| 8 9 | 
             
              {% assign page_paths = site.header_pages | default: default_paths %}
         | 
| @@ -23,7 +24,7 @@ | |
| 23 24 | 
             
                    {% for path in page_paths %}
         | 
| 24 25 | 
             
                      {% assign my_page = site.pages | where: "path", path | first %}
         | 
| 25 26 | 
             
                      {% if my_page.title %}
         | 
| 26 | 
            -
                        <li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
         | 
| 27 | 
            +
                        <li {% if page.title == my_page.title %}class="active"{% endif %}><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
         | 
| 27 28 | 
             
                      {% endif %}
         | 
| 28 29 | 
             
                    {% endfor %}
         | 
| 29 30 | 
             
                  </ul>
         | 
| @@ -33,7 +34,7 @@ | |
| 33 34 | 
             
              {% if site.posts.size > 0 %}
         | 
| 34 35 | 
             
                <ul>
         | 
| 35 36 | 
             
                  {% for post in site.posts %}
         | 
| 36 | 
            -
                    <li>
         | 
| 37 | 
            +
                    <li {% if page.title == post.title %}class="active"{% endif %}>
         | 
| 37 38 | 
             
                      {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
         | 
| 38 39 | 
             
                      <span>{{ post.date | date: date_format }}</span><br>
         | 
| 39 40 | 
             
                      <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
         | 
    
        data/_layouts/home.html
    CHANGED
    
    | @@ -10,7 +10,7 @@ layout: default | |
| 10 10 | 
             
              {{ content }}
         | 
| 11 11 |  | 
| 12 12 | 
             
              {% if site.posts.size > 0 %}
         | 
| 13 | 
            -
             | 
| 13 | 
            +
                <h2 class="post-list-heading">{{ page.list_title | default: "" }}</h2>
         | 
| 14 14 | 
             
                <ul class="post-list">
         | 
| 15 15 | 
             
                  {% for post in site.posts %}
         | 
| 16 16 | 
             
                    <li>
         | 
| @@ -20,6 +20,7 @@ layout: default | |
| 20 20 | 
             
                      <h3>
         | 
| 21 21 | 
             
                        <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
         | 
| 22 22 | 
             
                      </h3>
         | 
| 23 | 
            +
                      {% if site.use_excerpt %}{{ post.excerpt }}{% endif %}
         | 
| 23 24 | 
             
                    </li>
         | 
| 24 25 | 
             
                  {% endfor %}
         | 
| 25 26 | 
             
                </ul>
         | 
    
        data/_sass/minima/_layout.scss
    CHANGED
    
    | @@ -311,7 +311,6 @@ | |
| 311 311 | 
             
              }
         | 
| 312 312 |  | 
| 313 313 | 
             
              ul li {
         | 
| 314 | 
            -
                list-style: none;
         | 
| 315 314 | 
             
                line-height: 16px;
         | 
| 316 315 | 
             
                padding: 5px 15px;
         | 
| 317 316 | 
             
              }
         | 
| @@ -324,7 +323,6 @@ | |
| 324 323 | 
             
                font-size: 70%;
         | 
| 325 324 | 
             
                font-style: italic;
         | 
| 326 325 | 
             
                color: #b3b3b3;
         | 
| 327 | 
            -
                list-style: none;
         | 
| 328 326 | 
             
                text-decoration: none;
         | 
| 329 327 | 
             
              }
         | 
| 330 328 |  | 
| @@ -333,8 +331,21 @@ | |
| 333 331 | 
             
                position: relative;
         | 
| 334 332 | 
             
                font-size: 90%;
         | 
| 335 333 | 
             
                color: #b3b3b3;
         | 
| 336 | 
            -
                list-style: none;
         | 
| 337 334 | 
             
                text-decoration: none;
         | 
| 338 335 | 
             
                cursor: pointer;
         | 
| 339 336 | 
             
              }
         | 
| 337 | 
            +
             | 
| 338 | 
            +
              ul li.active {
         | 
| 339 | 
            +
                background-color: $background-color;
         | 
| 340 | 
            +
                font-weight: bold;
         | 
| 341 | 
            +
             | 
| 342 | 
            +
                span, a {
         | 
| 343 | 
            +
                  color: $text-color;
         | 
| 344 | 
            +
                }
         | 
| 345 | 
            +
             | 
| 346 | 
            +
                // a {
         | 
| 347 | 
            +
                //   pointer-events: none;
         | 
| 348 | 
            +
                //   cursor: default;
         | 
| 349 | 
            +
                // }
         | 
| 350 | 
            +
              }
         | 
| 340 351 | 
             
            }
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: jekyll-readthedocs
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.2.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Timothée Mazzucotelli
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2018- | 
| 11 | 
            +
            date: 2018-02-02 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: jekyll
         |