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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfeb277d1b42bfc73e5b1f3be9fc4469bc6ac7c3d60d3673921e0ec8163a8da6
4
- data.tar.gz: '080991ec568bd2ccadb8ef468b2d19236741d5039949cc9dea3cf21b39657268'
3
+ metadata.gz: 5d37cd93135a68feb5f4db0f649039ff3eaffe5311d6dd7689b565ecaaa15798
4
+ data.tar.gz: ab88dad2b4e7f67cec4af28402c619b8811aad7fbcf40baf2ff45ee2f97346d7
5
5
  SHA512:
6
- metadata.gz: 8e7e81787e729c96038809d0930779958dda39969025b7eca55857c334cd7ad76c873630208bd9cf8f3e90d4949305be23162d5ece9c6d93b67482391d20a909
7
- data.tar.gz: 3bcc970a8674750ed62d3207cf77d470a745a7116cf662cd5af9a7a1e9ec605806ad1de0d8f111d4c5e69ae14fe4ddcee062bedbe3808d6e7a90feadc845aba0
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 %}
@@ -1 +1 @@
1
- <div class="page-break"></div>
1
+ <div class="page-break"></div>
@@ -20,13 +20,20 @@
20
20
  <br class="clearfix" />
21
21
 
22
22
  {% assign sorted-static-files = site.static_files | sort: "path" %}
23
- {% if sorted-static-files.size > 0 %}
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 sorted-static-files %}
26
- {% assign file-name = file.path | split: '/' | last %}
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
- div.page-break {
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
- background-color: black;
6
- height: 1px;
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
- @media print {
55
- .page-break {
56
- height: 0px;
57
- background-color: none;
58
- }
73
+ pre.utf-box-drawing,
74
+ code.utf-box-drawing {
75
+ font-family: "Source Code Pro";
59
76
  }
60
-
@@ -110,11 +110,6 @@ code {
110
110
  color: $code-text-color;
111
111
  }
112
112
 
113
- pre.utf-box-drawing,
114
- code.utf-box-drawing {
115
- font-family: "Source Code Pro";
116
- }
117
-
118
113
  pre {
119
114
  border: 1px solid $code-block-border-color;
120
115
  line-height: 1.3;
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.1
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-27 00:00:00.000000000 Z
11
+ date: 2019-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll