jekyll-theme-docgen 1.2.1 → 1.2.2
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/README.md +5 -0
- data/_includes/break +1 -1
- data/_includes/page-break-docgen +1 -1
- data/_layouts/index-docgen.html +13 -6
- data/_sass/docgen/docgen/_api.scss +25 -9
- data/_sass/docgen/docgen/_base.scss +0 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d37cd93135a68feb5f4db0f649039ff3eaffe5311d6dd7689b565ecaaa15798
|
4
|
+
data.tar.gz: ab88dad2b4e7f67cec4af28402c619b8811aad7fbcf40baf2ff45ee2f97346d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cf9c3b24d8d9ec0e1d284f95c98bd545de601981091729ecae11c1be789dc09ef86ec45c9dd56e5c92739610519225fe731aa7713e883eabe59b02b16daa3d0
|
7
|
+
data.tar.gz: fe5c4ccc0250822c989a9cc1f1959094f8a57539e9952d8eedc50f8987a7b27cbcd7377b33d6c515228dba10de5c91d3889f6c15e522661d996d0ff6c5f3173c
|
data/README.md
CHANGED
@@ -4,6 +4,9 @@ LaTeX for the uninitiated. It is NOT for blogging.
|
|
4
4
|
|
5
5
|
Uses MathJax for custom styles.
|
6
6
|
|
7
|
+
### Examples
|
8
|
+
See the `examples` folder for examples of how to use this theme.
|
9
|
+
|
7
10
|
### Includes API
|
8
11
|
- `{% include page-break-docgen %}` - Inserts a page break when printing, useful
|
9
12
|
when printing to PDF
|
@@ -13,6 +16,8 @@ Uses MathJax for custom styles.
|
|
13
16
|
### CSS API
|
14
17
|
Some of the available styles are easier to use without an `include`.
|
15
18
|
|
19
|
+
- `pre.utf-box-drawing`, `code.utf-box-drawing` - Sets the font to "Source Code Pro",
|
20
|
+
which is compatible with the utf box drawing characters.
|
16
21
|
- `div.page-break` - A page break.
|
17
22
|
- `div.display` - A `div` that follows flexbox wrapping rules.
|
18
23
|
- `ol.heirarchical` - A list that supports the numbered-lettered-numeraled structure.
|
data/_includes/break
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{% include page-break-docgen %}
|
1
|
+
{% include page-break-docgen %}
|
data/_includes/page-break-docgen
CHANGED
@@ -1 +1 @@
|
|
1
|
-
<div class="page-break"></div>
|
1
|
+
<div class="page-break"></div>
|
data/_layouts/index-docgen.html
CHANGED
@@ -20,13 +20,20 @@
|
|
20
20
|
<br class="clearfix" />
|
21
21
|
|
22
22
|
{% assign sorted-static-files = site.static_files | sort: "path" %}
|
23
|
-
{%
|
23
|
+
{% assign static-files = '' | split: '' %}
|
24
|
+
{% for file in sorted-static-files %}
|
25
|
+
{% assign file-name = file.path | split: '/' %}
|
26
|
+
{% assign file-path = file.path | append: ':' | split: ':' %}
|
27
|
+
|
28
|
+
{% unless file-name[1] == 'assets' and file-name[2] == 'docgen' %}
|
29
|
+
{% assign static-files = static-files | concat: file-path %}
|
30
|
+
{% endunless %}
|
31
|
+
{% endfor %}
|
32
|
+
|
33
|
+
{% if static-files.size > 0 %}
|
24
34
|
<h1>Static Files</h1>
|
25
|
-
{% for file in
|
26
|
-
{
|
27
|
-
{% unless file-name contains 'scss' %}
|
28
|
-
<a href="{{ file.path | relative_url }}">{{ file.path }}</a><br/>
|
29
|
-
{% endunless %}
|
35
|
+
{% for file-path in static-files %}
|
36
|
+
<a href="{{ file-path | relative_url }}">{{ file-path }}</a><br/>
|
30
37
|
{% endfor %}
|
31
38
|
{% endif %}
|
32
39
|
|
@@ -1,9 +1,28 @@
|
|
1
|
-
|
1
|
+
// @media print {
|
2
|
+
// hr, div.horizontal-line {
|
3
|
+
// // -webkit-print-color-adjust: exact;
|
4
|
+
// }
|
5
|
+
// }
|
6
|
+
|
7
|
+
%horizontal-line {
|
2
8
|
margin-top: $spacing-unit;
|
3
9
|
margin-bottom: $spacing-unit;
|
10
|
+
border-top: 1px solid black;
|
11
|
+
}
|
12
|
+
|
13
|
+
hr, div.horizontal-line, div.page-break {
|
14
|
+
@extend %horizontal-line;
|
15
|
+
}
|
16
|
+
|
17
|
+
div.page-break {
|
4
18
|
break-after: page;
|
5
|
-
|
6
|
-
|
19
|
+
}
|
20
|
+
|
21
|
+
@media print {
|
22
|
+
div.page-break {
|
23
|
+
height: 0px;
|
24
|
+
background-color: none;
|
25
|
+
}
|
7
26
|
}
|
8
27
|
|
9
28
|
div.display {
|
@@ -51,10 +70,7 @@ ol.heirarchical > li {
|
|
51
70
|
// }
|
52
71
|
// }
|
53
72
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
background-color: none;
|
58
|
-
}
|
73
|
+
pre.utf-box-drawing,
|
74
|
+
code.utf-box-drawing {
|
75
|
+
font-family: "Source Code Pro";
|
59
76
|
}
|
60
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-docgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Liu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|