just-the-docs 0.2.2 → 0.2.3
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/_includes/head.html +11 -1
- data/_layouts/default.html +2 -2
- data/_sass/content.scss +4 -4
- data/assets/js/just-the-docs.js +2 -2
- data/lib/tasks/search.rake +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6835b1a77128106c7917015f28ec0ae377c8584
|
|
4
|
+
data.tar.gz: 7c97ffc01ffc461f55fbed3ea879a69dcf9b09a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 347993e791a6cb93e7eeff5484e01c0320002e0d70e3a70e0b30c11e79d607474c91a5c79388db412891f19b552137f7e01d36be38933997427cae881965ccae
|
|
7
|
+
data.tar.gz: 3fd3d9b82374a54b97fda56f3002dcfff781079805d922d93a621a7272c89e34b4bb58bf3ae57a3f53c0976a839fd8d35a45ca864c4cc07d30b6555cfee26e79
|
data/_includes/head.html
CHANGED
|
@@ -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
|
-
|
|
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
|
|
data/_layouts/default.html
CHANGED
|
@@ -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
|
|
39
|
+
<div class="main-content">
|
|
40
40
|
{% unless page.url == "/" %}
|
|
41
41
|
{% if page.parent %}
|
|
42
42
|
<nav class="breadcrumb-nav">
|
data/_sass/content.scss
CHANGED
|
@@ -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.
|
|
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.
|
|
60
|
+
margin-left: -1.4em;
|
|
61
61
|
color: $grey-dk-000;
|
|
62
62
|
content: "•";
|
|
63
63
|
}
|
data/assets/js/just-the-docs.js
CHANGED
|
@@ -54,7 +54,7 @@ function initSearch() {
|
|
|
54
54
|
|
|
55
55
|
jsPath = source.replace('just-the-docs.js', '');
|
|
56
56
|
|
|
57
|
-
jsonPath = jsPath + '
|
|
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 >
|
|
111
|
+
if (results.length > 0) {
|
|
112
112
|
searchResults.classList.add('active');
|
|
113
113
|
var resultsList = document.createElement('ul');
|
|
114
114
|
searchResults.appendChild(resultsList);
|
data/lib/tasks/search.rake
CHANGED
|
@@ -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: '&
|
|
17
|
+
"title": "{{ page.title | replace: \'&\', \'&\' }}",
|
|
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.
|
|
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-
|
|
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
|
|
134
|
-
|
|
133
|
+
summary: A modern, high customizable, responsive Jekyll theme for documention with
|
|
134
|
+
built-in search.
|
|
135
135
|
test_files: []
|