juicelang-theme 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -7
  3. data/_includes/toc.html +8 -6
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 611c546d0004cfb41f3627c1fa188ab79cf2ff4f864be6e67ab934bb5ae4ae5c
4
- data.tar.gz: 7bb3f001686c7a4fb858a40951cc11f1428ac05b4f2d4cb35f300a8602abd2c3
3
+ metadata.gz: 740c3e556c963c534d68fb31863c36c6a75e6259a087a1d2f7c47ea8a6c1421d
4
+ data.tar.gz: 53d35a1db962f5270352d12aa8aa030f524f715a9b7fd33f75f84efcd1b5f7d6
5
5
  SHA512:
6
- metadata.gz: '08837dd2c714ff87d9b6758448bf7f0275fb968cba6d764cd7c956feafcc9c1de28881a4d445d2970fcb8781875f3d760c8ac5db9f9f613d4adb90d1bbb4440d'
7
- data.tar.gz: 3a2ca51818a9a649a440bfd07552bb4ad25398eac1cf27b743386e0ad63d59d7f9da753a5747c17aefcc255694694ea45226c5bd2ea04d44c712a03bc9bef9cd
6
+ metadata.gz: 3bcd39b926964dfa310bdf7dcf6c6f89d01fbd2aaf3dff8e9a78a83dc09620c314f358bcfa000e0d2eb5432955991078d44dce676376a04a070082c8a32c4dc2
7
+ data.tar.gz: c512e7499709b099e8b8f29a271ed4e72d0c0ae990b38a2b46ce72698f5f78b3204b8e711a7e73a2956cfc266894e074a616f18d5c274654af179f3b2999cfd1
data/README.md CHANGED
@@ -8,28 +8,34 @@ This is the theme of the website of the *juice* programming language ([juicelang
8
8
  Add this line to your Jekyll site's `Gemfile`:
9
9
 
10
10
  ```ruby
11
- gem "juicelang-theme"
11
+ gem "juicelang-theme", "~> 0.4", group: :jekyll_plugins
12
12
  ```
13
13
 
14
- And add this line to your Jekyll site's `_config.yml`:
14
+ And add the following lines to your Jekyll site's `_config.yml`:
15
15
 
16
16
  ```yaml
17
17
  theme: juicelang-theme
18
+ plugins:
19
+ - juicelang-theme
18
20
  ```
19
21
 
20
- And then execute:
22
+ Then execute:
21
23
 
22
- $ bundle
24
+ ```bash
25
+ $ bundle install
26
+ ```
23
27
 
24
- Or install it yourself as:
28
+ Or install the gem yourself using:
25
29
 
26
- $ gem install juicelang-theme
30
+ ```bash
31
+ $ gem install juicelang-theme
32
+ ```
27
33
 
28
34
  ## Development
29
35
 
30
36
  To set up your environment to develop this theme, run `bundle install`.
31
37
 
32
- To test this theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test this theme's contents. As you make modifications to this theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
38
+ To test this theme, run `bundle exec jekyll serve --watch` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test this theme's contents. As you make modifications to this theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
33
39
 
34
40
  ## License
35
41
 
data/_includes/toc.html CHANGED
@@ -1,7 +1,9 @@
1
- <div class="sidebar-right uk-visible@l">
2
- <div uk-sticky="offset: 175">
3
- <ul class="uk-nav uk-nav-default" uk-scrollspy-nav="closest: li; scroll: true; offset: 175">
4
- {% toc %}
5
- </ul>
1
+ {% unless page.no_toc %}
2
+ <div class="sidebar-right uk-visible@l">
3
+ <div uk-sticky="offset: 175">
4
+ <ul class="uk-nav uk-nav-default" uk-scrollspy-nav="closest: li; scroll: true; offset: 175">
5
+ {% toc %}
6
+ </ul>
7
+ </div>
6
8
  </div>
7
- </div>
9
+ {% endunless %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juicelang-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Zoller