jekyll-theme-docgen 1.1.1 → 1.1.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: c396814b871b6a6aee599ee67be3736b611f8c7bd968a768bd78e077b916dc88
4
- data.tar.gz: add74d9c04bdd0aeb77e192b5eb392482b30c2ac862462ed26f2d9d1e254b3f3
3
+ metadata.gz: e29b75829d43dba846b8a9f3ff56e0eb0dd814578e895383d4d61fb326122223
4
+ data.tar.gz: 9439fd9810a3bdbd73c96e9395cb6cb1d83f0b15408aed3d39e8055b7c34df9e
5
5
  SHA512:
6
- metadata.gz: 79a2d4625fe44d8f667a634d5025bffd4d7347100bfe1c97bc242eb28efb0ea322d6cbac8d3011d6eb42c9f193800d76cfbf30633d75807bf66b02c61ef271fb
7
- data.tar.gz: 43c78c95f631cf3fe5da153abb6aec3a8c416dcd863c6462999eac90c620a6fad78fec2b186ed1647d501ebed227220b427cd6331ad60a1eda853e5abfc2c416
6
+ metadata.gz: 2ce0908da296f714bf42f64a1efc1e4836464d3f4e4daf0de13f28435250617f9017ff00605ec41376af69b8d36224cfd0e27f498208b30a955e7becd175922a
7
+ data.tar.gz: 4e4aa04db9513daafd4a86c9881ab1d1c28ef06562ad454e699a9712cdfdb5c2cf3635d25bcc41642ba4887c456d9eb495f1537a047368359295355c6f24d656
File without changes
@@ -0,0 +1,14 @@
1
+ div.page-break {
2
+ margin-top: $spacing-unit;
3
+ margin-bottom: $spacing-unit;
4
+ page-break-after: always;
5
+ background-color: black;
6
+ height: 1px;
7
+ }
8
+
9
+ @media print {
10
+ div.page-break {
11
+ background-color: none;
12
+ }
13
+ }
14
+
@@ -11,8 +11,8 @@
11
11
  // flex: 1 0 auto;
12
12
  max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
13
13
  max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
14
- margin-left: auto;
15
- margin-right: auto;
14
+ margin: $spacing-unit * 2 auto;
16
15
  padding-right: $spacing-unit;
17
16
  padding-left: $spacing-unit;
18
17
  }
18
+
@@ -16,3 +16,52 @@
16
16
  @mixin relative-font-size($ratio) {
17
17
  font-size: $base-font-size * $ratio;
18
18
  }
19
+
20
+ //Transform mixin to for compatibility
21
+ @mixin transform($transforms) {//mixin takes a transformation as an arg
22
+ -moz-transform: $transforms;// and makes it a bunch of transformations that
23
+ -o-transform: $transforms;// work for different browsers
24
+ -ms-transform: $transforms;
25
+ -webkit-transform: $transforms;
26
+ transform: $transforms;
27
+ }
28
+
29
+ //https://codepen.io/sawmac/pen/cayhK/
30
+ @mixin transition($transition...) {
31
+ -moz-transition: $transition;
32
+ -o-transition: $transition;
33
+ -webkit-transition: $transition;
34
+ transition: $transition;
35
+ }
36
+ @mixin transition-property($property...) {
37
+ -moz-transition-property: $property;
38
+ -o-transition-property: $property;
39
+ -webkit-transition-property: $property;
40
+ transition-property: $property;
41
+ }
42
+ @mixin transition-duration($duration...) {
43
+ -moz-transition-property: $duration;
44
+ -o-transition-property: $duration;
45
+ -webkit-transition-property: $duration;
46
+ transition-property: $duration;
47
+ }
48
+ @mixin transition-timing-function($timing...) {
49
+ -moz-transition-timing-function: $timing;
50
+ -o-transition-timing-function: $timing;
51
+ -webkit-transition-timing-function: $timing;
52
+ transition-timing-function: $timing;
53
+ }
54
+ @mixin transition-delay($delay...) {
55
+ -moz-transition-delay: $delay;
56
+ -o-transition-delay: $delay;
57
+ -webkit-transition-delay: $delay;
58
+ transition-delay: $delay;
59
+ }
60
+
61
+
62
+ // Compatibility shadow mixin
63
+ @mixin shadow($args...) {
64
+ -moz-box-shadow: $args;
65
+ -webkit-box-shadow: $args;
66
+ box-shadow: $args;
67
+ }
@@ -36,4 +36,5 @@ $content-width: 800px !default;
36
36
  "docgen/utils",
37
37
  "docgen/syntax-highlighting",
38
38
  "docgen/base",
39
- "docgen/layout";
39
+ "docgen/layout",
40
+ "docgen/api";
@@ -14,19 +14,18 @@
14
14
  }
15
15
 
16
16
  $base-font-family: "Computer Modern", sans-serif;
17
+ $code-block-background-color: white !default;
18
+ $syntax-highlighting-background-color: white !default;
17
19
  @import "docgen-default";
18
20
 
19
21
  // Set page margins for printer
20
22
  @page {
21
- margin-top: 25mm;
22
- margin-bottom: 25mm;
23
- margin-left: 25mm;
24
- margin-right: 25mm;
23
+ margin: 20mm 20mm;
25
24
  }
26
25
 
27
26
  // For when the file is just a list of things (e.g. a problem set!)
28
- main > {ol, ul {> li > {
29
- p, div.highlighter-rouge, table {
27
+ main > ol > li > {
28
+ * {
30
29
  margin-left: -$spacing-unit / 2;
31
30
  margin-right: -$spacing-unit / 2;
32
31
 
@@ -38,7 +37,24 @@ main > {ol, ul {> li > {
38
37
  ol, ul {
39
38
  margin-left: $spacing-unit / 2;
40
39
  }
41
- }}}
40
+ }
41
+
42
+ pre {
43
+ $offset: 15px;
44
+ $blur-radius: 15px;
45
+ $spread-radius: -10px;
46
+ $type: inset;
47
+ $shadow-color: $code-block-border-color;
48
+ @include shadow(
49
+ $type
50
+ $offset*-1 $offset
51
+ $blur-radius $spread-radius $shadow-color,
52
+
53
+ $type
54
+ $offset $offset*-1
55
+ $blur-radius $spread-radius $shadow-color
56
+ );
57
+ }
42
58
 
43
59
  @media print {
44
60
  main > {
@@ -46,4 +62,8 @@ main > {ol, ul {> li > {
46
62
  margin-left: -$spacing-unit / 2;
47
63
  }
48
64
  }
65
+
66
+ .page-content {
67
+ margin: 0 auto;
68
+ }
49
69
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-docgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert Liu
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.5'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  description:
42
28
  email:
43
29
  - albertymliu@gmail.com
@@ -45,7 +31,7 @@ executables: []
45
31
  extensions: []
46
32
  extra_rdoc_files: []
47
33
  files:
48
- - LICENSE.txt
34
+ - LICENSE
49
35
  - README.md
50
36
  - _includes/head.html
51
37
  - _layouts/default.html
@@ -57,6 +43,7 @@ files:
57
43
  - _sass/docgen-latex.scss
58
44
  - _sass/docgen-mla.scss
59
45
  - _sass/docgen-slides.scss
46
+ - _sass/docgen/_api.scss
60
47
  - _sass/docgen/_base.scss
61
48
  - _sass/docgen/_layout.scss
62
49
  - _sass/docgen/_syntax-highlighting.scss
@@ -89,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
76
  - !ruby/object:Gem::Version
90
77
  version: '0'
91
78
  requirements: []
92
- rubyforge_project:
93
- rubygems_version: 2.7.6
79
+ rubygems_version: 3.0.2
94
80
  signing_key:
95
81
  specification_version: 4
96
82
  summary: A document generation helper theme for Jekyll.