just-the-docs 0.2.2 → 0.2.3

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: f254277683542a0d58881179882a0d4a05731bd9
4
- data.tar.gz: da30e14a1a7e897e484370553ec552a6ec262483
3
+ metadata.gz: f6835b1a77128106c7917015f28ec0ae377c8584
4
+ data.tar.gz: 7c97ffc01ffc461f55fbed3ea879a69dcf9b09a9
5
5
  SHA512:
6
- metadata.gz: 723da18da5b80e42c66a4af42019cc98fab7f409d95900795e9dd7c55edbbe6f2a4aebbeb96490b4b702250662bfda137f0c11b9aa26f1ed40774f8174bf84ad
7
- data.tar.gz: 4af5eb24129d0aeb5cd039a4301d920f3abb49908fca5832b96e53b5434759155c28efff25299ba50cbe388c36c7b53a2d1ee4271f86e5d393214eea74f33372
6
+ metadata.gz: 347993e791a6cb93e7eeff5484e01c0320002e0d70e3a70e0b30c11e79d607474c91a5c79388db412891f19b552137f7e01d36be38933997427cae881965ccae
7
+ data.tar.gz: 3fd3d9b82374a54b97fda56f3002dcfff781079805d922d93a621a7272c89e34b4bb58bf3ae57a3f53c0976a839fd8d35a45ca864c4cc07d30b6555cfee26e79
@@ -7,8 +7,18 @@
7
7
 
8
8
  <title>{{ page.title }} - {{ site.title }}</title>
9
9
  <link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
10
+
11
+ {% if site.ga_tracking != nil %}
12
+ <script>
13
+ window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
14
+ ga('create', '{{ site.ga_tracking }}', '{{ site.url }}');
15
+ ga('send', 'pageview');
16
+ </script>
17
+ <script async src="https://www.google-analytics.com/analytics.js"></script>
18
+ {% endif %}
19
+
10
20
  {% if site.search_enabled != nil %}
11
- <script type="text/javascript" src="{{ "/assets/js/vendor/lunr.min.js" | absolute_url }}"></script>
21
+ <script type="text/javascript" src="{{ "/assets/js/vendor/lunr.min.js" | absolute_url }}"></script>
12
22
  {% endif %}
13
23
  <script type="text/javascript" src="{{ "/assets/js/just-the-docs.js" | absolute_url }}"></script>
14
24
 
@@ -15,7 +15,7 @@
15
15
  <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>
16
16
  </footer>
17
17
  </div>
18
- <div class="main-content-wrap">
18
+ <div class="main-content-wrap js-main-content" tabindex="0">
19
19
  <div class="page-header">
20
20
  <div class="main-content">
21
21
  {% if site.search_enabled != nil %}
@@ -36,7 +36,7 @@
36
36
  {% endif %}
37
37
  </div>
38
38
  </div>
39
- <div class="main-content js-main-content" tabindex="0">
39
+ <div class="main-content">
40
40
  {% unless page.url == "/" %}
41
41
  {% if page.parent %}
42
42
  <nav class="breadcrumb-nav">
@@ -21,13 +21,13 @@
21
21
  list-style-type: none;
22
22
  counter-reset: step-counter;
23
23
 
24
- li {
24
+ > li {
25
25
  position: relative;
26
26
 
27
27
  &::before {
28
28
  position: absolute;
29
29
  top: 0.2em;
30
- left: -1.5em;
30
+ left: -1.6em;
31
31
  color: $grey-dk-000;
32
32
  content: counter(step-counter);
33
33
  counter-increment: step-counter;
@@ -54,10 +54,10 @@
54
54
  ul {
55
55
  list-style: none;
56
56
 
57
- li {
57
+ > li {
58
58
  &::before {
59
59
  position: absolute;
60
- margin-left: -1.5em;
60
+ margin-left: -1.4em;
61
61
  color: $grey-dk-000;
62
62
  content: "•";
63
63
  }
@@ -54,7 +54,7 @@ function initSearch() {
54
54
 
55
55
  jsPath = source.replace('just-the-docs.js', '');
56
56
 
57
- jsonPath = jsPath + '/search-data.json';
57
+ jsonPath = jsPath + 'search-data.json';
58
58
 
59
59
  var request = new XMLHttpRequest();
60
60
  request.open('GET', jsonPath, true);
@@ -108,7 +108,7 @@ function initSearch() {
108
108
  } else {
109
109
  var results = index.search(query);
110
110
 
111
- if (results.length > 1) {
111
+ if (results.length > 0) {
112
112
  searchResults.classList.add('active');
113
113
  var resultsList = document.createElement('ul');
114
114
  searchResults.appendChild(resultsList);
@@ -14,7 +14,7 @@ namespace :search do
14
14
  {
15
15
  {% for page in site.html_pages %}{% if page.search_exclude != true %}"{{ forloop.index0 }}": {
16
16
  "id": "{{ forloop.index0 }}",
17
- "title": "{{ page.title | replace: '&amp;', '&' }}",
17
+ "title": "{{ page.title | replace: \'&amp;\', \'&\' }}",
18
18
  "content": "'+content+'",
19
19
  "url": "{{ page.url | absolute_url }}",
20
20
  "relUrl": "{{ page.url }}"
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Marsceill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-23 00:00:00.000000000 Z
11
+ date: 2019-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -130,6 +130,6 @@ rubyforge_project:
130
130
  rubygems_version: 2.5.1
131
131
  signing_key:
132
132
  specification_version: 4
133
- summary: A nice looking, highly customizable, responsive Jekyll theme for documentation
134
- with built-in search.
133
+ summary: A modern, high customizable, responsive Jekyll theme for documention with
134
+ built-in search.
135
135
  test_files: []