just-the-docs 0.1.0 → 0.1.1

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: 7fc20c9068d28991177f8ccd3ec04747fdd54c74
4
- data.tar.gz: 5be60769fac00a2d25de8eea1c770af1571efa89
3
+ metadata.gz: 34c636bb5dad48e01e8b114762877acac6ab188f
4
+ data.tar.gz: 8d294505dc73afb5b4eb13f5c4e3f82e89c0cb36
5
5
  SHA512:
6
- metadata.gz: e5d92dd04257dc95977d62e4c104a7c62594e8c71422a159f76108582e21886baebf40f1f1beb8b804e2eb7ee7d6b9b852a77e81421ecbfd898b5d9e1689c82e
7
- data.tar.gz: d62198fada4fd7988680e754c0ff1546e3be82d9dbd448aec9538255305fe7e0a1bf713950350ccacd85240a969957b8c4085f6fabe881a242dc1b2555e4efcd
6
+ metadata.gz: eb73494f49b1bda8c851921560adf353b8173c21af5b858e03f8a9e5f4d20bb85f241a3dc8aff5159df590372109aef97cf2467fb8a3d77a39b8646ddffe8b0c
7
+ data.tar.gz: d358b60858410d90a86515f3d734fe7897f7268ff24dc64c85e3c2800fd21abff86f545282068c1e1ca2e5a6a322aa5b38d3c363d5986c1e97d99e7847135b66
data/README.md CHANGED
@@ -28,7 +28,7 @@ Or install it yourself as:
28
28
 
29
29
  ## Usage
30
30
 
31
- View the documentation for more information.
31
+ [View the documentation](https://pmarsceill.github.io/just-the-docs/) for usage information.
32
32
 
33
33
  ## Contributing
34
34
 
@@ -40,7 +40,16 @@ To set up your environment to develop this theme, run `bundle install`.
40
40
 
41
41
  Your theme is setup just like a normal Jekyll site! To test your 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 your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
42
42
 
43
- When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
43
+ When the theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
44
+
45
+
46
+ ### When your changes are ready:
47
+
48
+ - Open a [Pull Request](https://github.com/pmarsceill/just-the-docs/pulls)
49
+ - Await code review
50
+ - Bump the version number in `just-the-docs.gemspec`
51
+ - Run `script/build` to package the gem
52
+ - Run `gem push just-the-docs-<version>.gem` to publish the gem to Rubygems.org
44
53
 
45
54
  ## License
46
55
 
data/_includes/head.html CHANGED
@@ -3,9 +3,9 @@
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
4
4
 
5
5
  <title>{{ page.title }} - {{ site.title }}</title>
6
- <link rel="stylesheet" href="/assets/css/just-the-docs.css">
7
- <script type="text/javascript" src="/assets/js/vendor/lunr.min.js"></script>
8
- <script type="text/javascript" src="/assets/js/just-the-docs.js"></script>
6
+ <link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
7
+ <script type="text/javascript" src="{{ "/assets/js/vendor/lunr.min.js" | absolute_url }}"></script>
8
+ <script type="text/javascript" src="{{ "/assets/js/just-the-docs.js" | absolute_url }}"></script>
9
9
 
10
10
  <meta name="viewport" content="width=device-width, initial-scale=1">
11
11
  </head>
@@ -9,15 +9,15 @@
9
9
  <span class="fs-3"><button class="js-main-nav-trigger navigation-list-toggle btn btn-outline" type="button" data-text-toggle="Hide">Menu</button></span>
10
10
  <div class="navigation main-nav js-main-nav">
11
11
  {% include nav.html %}
12
- <footer role="contentinfo" class="site-footer">
13
- <p class="text-small text-grey-dk-000 mb-0">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
14
- </footer>
15
12
  </div>
13
+ <footer role="contentinfo" class="site-footer">
14
+ <p class="text-small text-grey-dk-000 mb-0">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
15
+ </footer>
16
16
  </div>
17
17
  <div class="main-content-wrap">
18
18
  <div class="page-header">
19
19
  <div class="main-content pb-0">
20
- <div class="search">
20
+ <div class="search js-search">
21
21
  <div class="search-input-wrap">
22
22
  <input type="text" class="js-search-input search-input fs-2" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
23
23
  <svg width="14" height="14" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" class="search-icon"><title>Search</title><g fill-rule="nonzero"><path d="M17.332 20.735c-5.537 0-10-4.6-10-10.247 0-5.646 4.463-10.247 10-10.247 5.536 0 10 4.601 10 10.247s-4.464 10.247-10 10.247zm0-4c3.3 0 6-2.783 6-6.247 0-3.463-2.7-6.247-6-6.247s-6 2.784-6 6.247c0 3.464 2.7 6.247 6 6.247z"/><path d="M11.672 13.791L.192 25.271 3.02 28.1 14.5 16.62z"/></g></svg>
data/_sass/content.scss CHANGED
@@ -57,8 +57,11 @@
57
57
  }
58
58
  }
59
59
 
60
- hr + *,
61
- h1:first-of-type {
60
+ hr + * {
62
61
  margin-top: 0;
63
62
  }
63
+
64
+ h1:first-of-type {
65
+ margin-top: 0.5em;
66
+ }
64
67
  }
data/_sass/labels.scss CHANGED
@@ -14,6 +14,7 @@
14
14
  color: $white;
15
15
  vertical-align: middle;
16
16
  background-color: $blue-100;
17
+ text-transform: uppercase;
17
18
  @include fs-2;
18
19
  }
19
20
 
data/_sass/layout.scss CHANGED
@@ -93,7 +93,8 @@
93
93
  }
94
94
 
95
95
  .navigation,
96
- .site-title {
96
+ .site-title,
97
+ .site-footer {
97
98
 
98
99
  @include container;
99
100
 
@@ -114,8 +115,21 @@
114
115
  }
115
116
  }
116
117
 
118
+ body {
119
+ position: relative;
120
+ padding-bottom: $sp-10;
121
+
122
+ @include mq(md) {
123
+ position: static;
124
+ padding-bottom: 0;
125
+ }
126
+ }
127
+
117
128
  .site-footer {
129
+ position: absolute;
130
+ bottom: $sp-3;
131
+
118
132
  @include mq(md) {
119
- margin-top: $sp-10;
133
+ right: 0;
120
134
  }
121
135
  }
@@ -20,6 +20,7 @@
20
20
  .navigation-list {
21
21
  padding: 0;
22
22
  margin-top: $sp-4;
23
+ margin-bottom: 0;
23
24
  list-style: none;
24
25
 
25
26
  @include mq(md) {
@@ -53,8 +54,12 @@
53
54
  }
54
55
 
55
56
  .navigation-list-item {
56
- @include fs-3;
57
+ @include fs-4;
57
58
  margin: 0;
59
+
60
+ @include mq(md) {
61
+ @include fs-3;
62
+ }
58
63
  }
59
64
 
60
65
  .navigation-list-link {
data/_sass/search.scss CHANGED
@@ -3,15 +3,27 @@
3
3
  //
4
4
 
5
5
  .search {
6
+ position: relative;
7
+ z-index: 99;
6
8
  display: none;
9
+ flex-grow: 1;
10
+ padding-bottom: $gutter-spacing / 2;
11
+ background-color: $white;
12
+ padding: $sp-2;
13
+ margin-bottom: $sp-3;
7
14
 
8
15
  @include mq(md) {
9
- position: relative;
10
- z-index: 99;
11
16
  display: block;
12
- flex-grow: 1;
13
17
  padding-top: $sp-1;
14
- padding-bottom: $gutter-spacing / 2;
18
+ padding-right: 0;
19
+ padding-bottom: $sp-4;
20
+ padding-left: 0;
21
+ margin-bottom: 0;
22
+ background-color: transparent;
23
+ }
24
+
25
+ &.nav-open {
26
+ display: block;
15
27
  }
16
28
  }
17
29
 
@@ -50,5 +50,9 @@ li {
50
50
  }
51
51
 
52
52
  .text-mono {
53
- font-family: $mono-font-family;
53
+ font-family: $mono-font-family !important;
54
+ }
55
+
56
+ .text-center {
57
+ text-align: center !important;
54
58
  }
@@ -13,6 +13,7 @@ function toggleNav(){
13
13
  const nav = document.querySelector('.js-main-nav');
14
14
  const auxNav = document.querySelector('.js-aux-nav');
15
15
  const navTrigger = document.querySelector('.js-main-nav-trigger');
16
+ const search = document.querySelector('.js-search');
16
17
 
17
18
  addEvent(navTrigger, 'click', function(){
18
19
  var text = navTrigger.innerText;
@@ -21,6 +22,7 @@ function toggleNav(){
21
22
  nav.classList.toggle('nav-open');
22
23
  auxNav.classList.toggle('nav-open');
23
24
  navTrigger.classList.toggle('nav-open');
25
+ search.classList.toggle('nav-open');
24
26
  navTrigger.innerText = textToggle;
25
27
  navTrigger.setAttribute('data-text-toggle', text);
26
28
  textToggle = text;
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.0
4
+ version: 0.1.1
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-22 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll