just-the-docs 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 0ecd37ee5242601c4d73cd2d0a00bfd73963eb9b
4
- data.tar.gz: a34f83ac6ab23a3a0a186042829c1738303c06a4
3
+ metadata.gz: 24dd899d0e58e3f017eb7e4cf322761abbdce70f
4
+ data.tar.gz: bfb670c5f67603a324f55bd57792f9f56408ce2c
5
5
  SHA512:
6
- metadata.gz: 6df5119da4649595d5065930589a8dae29bc65bb0b2fcb82a80836b4d1f5250ac0c5fbf6f4bd1335ab982ea0bc87f50d91d5339c58a9b477ce17f5efb10c9954
7
- data.tar.gz: d088255c745afbaa2d52ab0ac60135cabc4b927384956fad791c8da20ea1e8f9b94b48b45be836ab514798075736cd59aca7b492c95da809922e7f5823e65ce0
6
+ metadata.gz: 4af98f3860fef1cca28f8aa12c492e18a99f97e1f1d38eb2030b732079154ca667265d089abb62c63c40f5a4462fa3b8d7fc962266a3a5e5f60dd8371e6ce425
7
+ data.tar.gz: 02b93e7aed292ef07bbfd569826893701bdcb4ee8064615b2a783443dfc5a8d0731bf0ca6c4339847ebbb7d3d069e197ae71e1535fe573e5376fe8cbb40fc1f8
data/README.md CHANGED
@@ -1,10 +1,17 @@
1
- # Just the Docs
1
+ <p align="right">
2
+ <a href="https://badge.fury.io/rb/just-the-docs"><img src="https://badge.fury.io/rb/just-the-docs.svg" alt="Gem version"></a> <a href="https://travis-ci.com/pmarsceill/just-the-docs"><img src="https://travis-ci.com/pmarsceill/just-the-docs.svg?branch=master" alt="Build status"></a>
3
+ </p>
4
+ <br><br>
5
+ <p align="center">
6
+ <h1 align="center">Just the Docs</h1>
7
+ <p align="center">A modern, high customizable, responsive Jekyll theme for documentation with built-in search.<br>Easily hosted on GitHub pages with few dependencies.</p>
8
+ <p align="center"><strong><a href="https://pmarsceill.github.io/just-the-docs">See it in action!</a></strong></p>
9
+ <br><br><br>
10
+ </p>
2
11
 
3
- A nice looking, high customizable, responsive Jekyll theme for documention with built-in search. Easily hosted on GitHub pages.
4
12
 
5
13
  ![jtd](https://user-images.githubusercontent.com/896475/47384541-89053c80-d6d5-11e8-98dc-dba16e192de9.gif)
6
14
 
7
-
8
15
  ## Installation
9
16
 
10
17
  Add this line to your Jekyll site's Gemfile:
@@ -35,6 +42,20 @@ Or install it yourself as:
35
42
 
36
43
  Bug reports and pull requests are welcome on GitHub at https://github.com/pmarsceill/just-the-docs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
37
44
 
45
+ ### Submitting code changes:
46
+
47
+ - Open a [Pull Request](https://github.com/pmarsceill/just-the-docs/pulls)
48
+ - Ensure all CI tests pass
49
+ - Await code review
50
+ - Bump the version number in `just-the-docs.gemspec` and `package.json` according to [semantic versioning](https://semver.org/).
51
+
52
+ ### Design and development principles of this theme:
53
+
54
+ 1. As few dependencies as possible
55
+ 2. No build script needed
56
+ 3. First class mobile experience
57
+ 4. Make the content shine
58
+
38
59
  ## Development
39
60
 
40
61
  To set up your environment to develop this theme, run `bundle install`.
@@ -43,16 +64,6 @@ Your theme is setup just like a normal Jekyll site! To test your theme, run `bun
43
64
 
44
65
  When the theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
45
66
 
46
-
47
- ### When your changes are ready:
48
-
49
- - Open a [Pull Request](https://github.com/pmarsceill/just-the-docs/pulls)
50
- - Await code review
51
- - Bump the version number in `just-the-docs.gemspec`
52
- - Run `script/build` to package the gem
53
- - Run `gem push just-the-docs-<version>.gem` to publish the gem to Rubygems.org
54
-
55
67
  ## License
56
68
 
57
69
  The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
58
-
@@ -4,7 +4,9 @@
4
4
 
5
5
  <title>{{ page.title }} - {{ site.title }}</title>
6
6
  <link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
7
+ {% if site.search_enabled != nil %}
7
8
  <script type="text/javascript" src="{{ "/assets/js/vendor/lunr.min.js" | absolute_url }}"></script>
9
+ {% endif %}
8
10
  <script type="text/javascript" src="{{ "/assets/js/just-the-docs.js" | absolute_url }}"></script>
9
11
 
10
12
  <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -16,7 +16,8 @@
16
16
  </div>
17
17
  <div class="main-content-wrap">
18
18
  <div class="page-header">
19
- <div class="main-content pb-0">
19
+ <div class="main-content">
20
+ {% if site.search_enabled != nil %}
20
21
  <div class="search js-search">
21
22
  <div class="search-input-wrap">
22
23
  <input type="text" class="js-search-input search-input" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
@@ -24,8 +25,9 @@
24
25
  </div>
25
26
  <div class="js-search-results search-results-wrap"></div>
26
27
  </div>
28
+ {% endif %}
27
29
  {% if site.aux_links != nil %}
28
- <ul class="list-style-none text-small mt-md-2 pb-4 pb-md-0 js-aux-nav aux-nav">
30
+ <ul class="list-style-none text-small mt-md-1 mb-md-1 pb-4 pb-md-0 js-aux-nav aux-nav">
29
31
  {% for link in site.aux_links %}
30
32
  <li class="d-inline-block my-0{% unless forloop.last %} mr-2{% endunless %}"><a href="{{ link.last }}">{{ link.first }}</a></li>
31
33
  {% endfor %}
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Base element style overrides
3
3
  //
4
- // stylelint-disable selector-no-type
4
+ // stylelint-disable selector-no-type, selector-max-type
5
5
 
6
6
  * {
7
7
  box-sizing: border-box;
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Code and syntax highlighting
3
3
  //
4
- // stylelint-disable selector-no-qualifying-type, declaration-block-semicolon-newline-after,declaration-block-single-line-max-declarations, selector-no-type
4
+ // stylelint-disable selector-no-qualifying-type, declaration-block-semicolon-newline-after,declaration-block-single-line-max-declarations, selector-no-type, selector-max-type
5
5
 
6
6
  code {
7
7
  padding: 0.2em 0.15em;
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Styles for rendered markdown in the .main-content container
3
3
  //
4
- // stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors
4
+ // stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors, selector-max-type
5
5
 
6
6
  .page-content {
7
7
  ul,
@@ -56,6 +56,23 @@
56
56
  }
57
57
  }
58
58
 
59
+ .task-list {
60
+ padding-left: 0;
61
+ }
62
+
63
+ .task-list-item {
64
+ display: flex;
65
+ align-items: center;
66
+
67
+ &::before {
68
+ content: "";
69
+ }
70
+ }
71
+
72
+ .task-list-item-checkbox {
73
+ margin-right: 0.6em;
74
+ }
75
+
59
76
  hr + * {
60
77
  margin-top: 0;
61
78
  }
@@ -12,9 +12,9 @@
12
12
  margin-right: $sp-1;
13
13
  margin-left: $sp-1;
14
14
  color: $white;
15
+ text-transform: uppercase;
15
16
  vertical-align: middle;
16
17
  background-color: $blue-100;
17
- text-transform: uppercase;
18
18
  @include fs-2;
19
19
  }
20
20
 
@@ -79,8 +79,6 @@
79
79
 
80
80
  @include mq(md) {
81
81
  background-color: $white;
82
- border-bottom: $border $border-color;
83
-
84
82
  }
85
83
 
86
84
  .main-content {
@@ -88,8 +86,11 @@
88
86
 
89
87
  @include mq(md) {
90
88
  display: flex;
91
- justify-content: space-between;
89
+ justify-content: flex-end;
90
+ height: 60px;
92
91
  padding-top: $sp-4;
92
+ padding-bottom: $sp-4;
93
+ border-bottom: $border $border-color;
93
94
  }
94
95
  }
95
96
  }
@@ -115,6 +116,7 @@
115
116
  }
116
117
  }
117
118
 
119
+ // stylelint-disable selector-no-type
118
120
  body {
119
121
  position: relative;
120
122
  padding-bottom: $sp-10;
@@ -124,6 +126,7 @@ body {
124
126
  padding-bottom: 0;
125
127
  }
126
128
  }
129
+ // stylelint-enable selector-no-type
127
130
 
128
131
  .site-footer {
129
132
  position: absolute;
@@ -11,10 +11,10 @@
11
11
  position: absolute;
12
12
  top: 0;
13
13
  right: 0;
14
+ z-index: 101;
14
15
  height: 60px;
15
16
  padding-top: $sp-4;
16
- z-index: 101;
17
- box-shadow: inset 0 -1px 0 $border-color;
17
+ border-bottom: $border $border-color;
18
18
  }
19
19
  }
20
20
 
@@ -38,6 +38,8 @@
38
38
  }
39
39
 
40
40
  .navigation-list-item {
41
+ position: relative;
42
+
41
43
  &::before {
42
44
  position: absolute;
43
45
  margin-top: 0.3em;
@@ -89,7 +91,6 @@
89
91
  }
90
92
  }
91
93
 
92
-
93
94
  .navigation-list-toggle {
94
95
  position: absolute;
95
96
  right: $sp-4;
@@ -17,7 +17,7 @@
17
17
  display: block;
18
18
  padding-top: $sp-1;
19
19
  padding-right: 0;
20
- padding-bottom: $sp-4;
20
+ padding-bottom: 0;
21
21
  padding-left: 0;
22
22
  margin-bottom: 0;
23
23
  background-color: transparent;
@@ -15,20 +15,22 @@
15
15
  @media (min-width: rem($value)) {
16
16
  @content;
17
17
  }
18
- } @else {
18
+ }
19
+
20
+ @else {
19
21
  @warn "No value could be retrieved from `#{$media-query}`. "
20
- + "Please make sure it is defined in `$media-queries` map.";
22
+ + "Please make sure it is defined in `$media-queries` map.";
21
23
  }
22
24
  }
23
25
 
24
26
  // Responsive container
25
27
 
26
28
  @mixin container {
27
- padding-left: $gutter-spacing-sm;
28
29
  padding-right: $gutter-spacing-sm;
30
+ padding-left: $gutter-spacing-sm;
29
31
 
30
32
  @include mq(md) {
31
- padding-left: $gutter-spacing;
32
33
  padding-right: $gutter-spacing;
34
+ padding-left: $gutter-spacing;
33
35
  }
34
36
  }
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Tables
3
3
  //
4
- // stylelint-disable max-nesting-depth, selector-no-type
4
+ // stylelint-disable max-nesting-depth, selector-no-type, selector-max-type
5
5
 
6
6
  table {
7
7
  display: block;
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Typography
3
3
  //
4
- // stylelint-disable primer/selector-no-utility, selector-no-type
4
+ // stylelint-disable primer/selector-no-utility, selector-no-type, selector-max-type
5
5
 
6
6
  h1,
7
7
  .text-alpha {
@@ -7,7 +7,7 @@
7
7
  // Import dependancies
8
8
  //
9
9
 
10
- @import "./normalize.scss/normalize.scss";
10
+ @import "./vendor/normalize.scss/normalize.scss";
11
11
 
12
12
  //
13
13
  // Import Just the docs scss
@@ -155,7 +155,9 @@ function initSearch() {
155
155
 
156
156
  function ready(){
157
157
  toggleNav();
158
- initSearch();
158
+ if (typeof lunr !== 'undefined') {
159
+ initSearch();
160
+ }
159
161
  }
160
162
 
161
163
  // in case the document is already rendered
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just-the-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Marsceill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-24 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -77,9 +77,6 @@ files:
77
77
  - _sass/labels.scss
78
78
  - _sass/layout.scss
79
79
  - _sass/navigation.scss
80
- - _sass/normalize.scss/README.md
81
- - _sass/normalize.scss/normalize.scss
82
- - _sass/normalize.scss/package.json
83
80
  - _sass/search.scss
84
81
  - _sass/support/_functions.scss
85
82
  - _sass/support/_variables.scss
@@ -96,6 +93,9 @@ files:
96
93
  - _sass/utilities/_spacing.scss
97
94
  - _sass/utilities/_typography.scss
98
95
  - _sass/utilities/utilities.scss
96
+ - _sass/vendor/normalize.scss/README.md
97
+ - _sass/vendor/normalize.scss/normalize.scss
98
+ - _sass/vendor/normalize.scss/package.json
99
99
  - assets/css/just-the-docs.scss
100
100
  - assets/images/just-the-docs.png
101
101
  - assets/images/search.svg