millidocs 0.2.4 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45b932a8d1c27d88fe1f9bae6b2cd1a22a52beb1
4
- data.tar.gz: a48c047990ff5b3735590c5da5f2b192c123d1ff
3
+ metadata.gz: b4bebd0fd39928cf10e08decf226cf1c87c77541
4
+ data.tar.gz: 229cf067d4a34144a7108d1e43ad864bf1468b69
5
5
  SHA512:
6
- metadata.gz: c34525ee9ebaff1a79f637399a0fd306f94abc670360a1dec6d62ebd672f8ebd0fe6a8848ff1f5458ccf7bfcdfe9e7c9fd3432a8443937e8bdfd330194c6f4c5
7
- data.tar.gz: 6397c222c849cfa6e2b25970ecd48e67099755b866354a28a3d267bf57436c9fa0ba891a2d70062bd7b2b98f9e5cc1c87c1eb26f38f37d94e05002d59de5b6fb
6
+ metadata.gz: 53234cd44ec2857d724d19028e1aa3cd8e06ef1fd2d9076ac6250bdf90e84dea2ff9b0dbb362c6379fa885c5419e1a256ac81a31efabfda0757f0e76dda9b915
7
+ data.tar.gz: 8b01619f6b14d211611f0e7e3e46d8134b5ccbffb268c1f0a9c6bcffa03608d6e346269f32ca19866130fd37b674bcaa784db5b5cf4a1ac60e858e41197fac03
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <meta charset="utf-8">
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
5
 
6
6
  <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
7
  <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
@@ -1,5 +1,6 @@
1
1
  <script src="{{ "/assets/js/zepto.min.js" | relative_url }}"></script>
2
2
  <script src="{{ "/assets/js/lunar.min.js" | relative_url }}"></script>
3
3
  <script src="{{ "/assets/js/prism.min.js" | relative_url }}"></script>
4
- <script src="{{ "/assets/js/search.js" | relative_url }}" async></script>
5
- <script src="{{ "/assets/js/mobile-navigation.js" | relative_url }}" async></script>
4
+ <script src="{{ "/assets/js/database.js" | relative_url }}"></script>
5
+ <script src="{{ "/assets/js/search.js" | relative_url }}"></script>
6
+ <script src="{{ "/assets/js/mobile-navigation.js" | relative_url }}"></script>
@@ -1,18 +1,3 @@
1
1
  <div class="search">
2
2
  <input type="text" class="search-input" id="search-input" placeholder="Type to search" />
3
3
  </div>
4
-
5
- <script>
6
- window.database = {
7
- {% for page in site.pages %}
8
- "{{ page.url | slugify }}": {
9
- "title": "{{ page.title | xml_escape }}",
10
- "category": "{{ page.category | xml_escape }}",
11
- "content": {{ page.content | strip_html | strip_newlines | jsonify }},
12
- "url": "{{ page.url | xml_escape }}",
13
- "href": "{{ site.baseurl }}{{ page.url | xml_escape }}"
14
- }
15
- {% unless forloop.last %},{% endunless %}
16
- {% endfor %}
17
- };
18
- </script>
@@ -5,9 +5,8 @@
5
5
  $base-height: 1em;
6
6
  $content-width: 800px;
7
7
  $sidebar-width: 300px;
8
- $mobile-width: 320px;
9
- $mobile-viewport: 800px;
10
- $min-width: 320px;
8
+ $mobile-width: 745px;
9
+ $min-width: 360px;
11
10
  $header-height: 50px;
12
11
 
13
12
  $link-color: #008cff;
@@ -2,7 +2,7 @@
2
2
  ---
3
3
 
4
4
  @import 'variables';
5
- @import 'normalize.css';
5
+
6
6
  @import 'milligram';
7
7
  @import 'prism';
8
8
 
@@ -12,15 +12,14 @@ html, body {
12
12
  max-height: 100%;
13
13
  overflow: hidden;
14
14
  min-width: $min-width;
15
- box-sizing: border-box;
16
15
  }
17
16
 
18
- *, *:before, *:after {
19
- box-sizing: inherit;
17
+ * {
18
+ box-sizing: border-box;
20
19
  }
21
20
 
22
21
  pre {
23
- margin-bottom: ($base-height * 2) !important;
22
+ margin-bottom: ($base-height * 2) !important;
24
23
  }
25
24
 
26
25
  a {
@@ -33,11 +32,6 @@ a {
33
32
  }
34
33
  }
35
34
 
36
- h1, h2, h3, h4, p {
37
- margin-left: 0;
38
- margin-right: 0;
39
- }
40
-
41
35
  .wrapper {
42
36
  height: 100%;
43
37
  width: 100%;
@@ -127,6 +121,7 @@ h1, h2, h3, h4, p {
127
121
  overflow-y: auto;
128
122
  color: $content-color;
129
123
  line-height: 1.7;
124
+ word-wrap: break-word;
130
125
  }
131
126
 
132
127
  .inner {
@@ -142,9 +137,9 @@ h1, h2, h3, h4, p {
142
137
  /**
143
138
  * Mobile
144
139
  */
145
- @media (max-width: $mobile-viewport) {
140
+ @media (max-width: $mobile-width) {
146
141
  .wrapper {
147
- flex-direction: column;
142
+ flex-direction: column;
148
143
  }
149
144
 
150
145
  .sidebar {
@@ -173,14 +168,13 @@ h1, h2, h3, h4, p {
173
168
  }
174
169
 
175
170
  .content {
171
+ width: 100%;
176
172
  margin-top: 0;
177
173
  height: calc(100% - #{$header-height});
178
- min-height: calc(100% - #{$header-height});
179
- max-width: 100%;
180
- }
174
+ min-height: calc(100% - #{$header-height});
175
+ }
181
176
 
182
177
  .inner {
183
- max-width: 100%;
184
- padding: $base-height $base-height * 2;
178
+ padding: $base-height;
185
179
  }
186
180
  }
@@ -0,0 +1,18 @@
1
+ ---
2
+ ---
3
+
4
+ window.database = {
5
+ {% for page in site.pages %}
6
+ {% if page.layout != 'page' %}
7
+ {% continue %}
8
+ {% endif %}
9
+ "{{ page.url | slugify }}": {
10
+ "title": "{{ page.title | xml_escape }}",
11
+ "category": "{{ page.category | xml_escape }}",
12
+ "content": {{ page.content | strip_html | strip_newlines | jsonify }},
13
+ "url": "{{ page.url | xml_escape }}",
14
+ "href": "{{ site.baseurl }}{{ page.url | xml_escape }}"
15
+ }
16
+ {% unless forloop.last %},{% endunless %}
17
+ {% endfor %}
18
+ };
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: millidocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Heimbuch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-16 00:00:00.000000000 Z
11
+ date: 2018-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -74,9 +74,9 @@ files:
74
74
  - _sass/prism.scss
75
75
  - _sass/variables.scss
76
76
  - assets/css/docs.scss
77
- - assets/css/normalize.css
78
77
  - assets/images/close.svg
79
78
  - assets/images/menu.svg
79
+ - assets/js/database.js
80
80
  - assets/js/lunar.min.js
81
81
  - assets/js/mobile-navigation.js
82
82
  - assets/js/prism.min.js
@@ -1 +0,0 @@
1
- /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*# sourceMappingURL=normalize.min.css.map */