tufte-crossref-jekyll 0.12.0b → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40dae1592f49ffe47e4a277ce18cb8fecd7224479f468886a9aeca972272156d
4
- data.tar.gz: f88cb94ccd45d5f539983eb85945ae995c5a643772fb7b8ec702f04cee0151ae
3
+ metadata.gz: 12dfb0410f7820c1a3b4511e12b8c5aa56acdea27facf1d12a5b646e9aef34c8
4
+ data.tar.gz: 1d6a962f7a3664f5b0dd02b0e01d51df8b0511bc74023c1307d5c786745974a1
5
5
  SHA512:
6
- metadata.gz: '092dd77ab84567cbe495865279d12a6e6cf7adcd064d5f529a78d84ba3af01cde6288e0c9b7fdf5d0571a48281d632576a47668501fbccb014bea7bf210f9036'
7
- data.tar.gz: 76f0162e4908605eaf686d24d3d27589054969527380a44e856a60870c84103f0da0e7a6fba6f64f9422b757d6465b0eea29cec55f518c55eb20fbdabef818ef
6
+ metadata.gz: 95333b18d8a18b2a31004d4e54874d7cd1063e59683d97e3d036492a5c76c3c8fb0a94afd9e759aa3d9c8aa99de1c5f160a3880874ee5e7c6a1d7916739825d1
7
+ data.tar.gz: 415c3fdf098d8345e605769537fa39fa790611e839fc305c45f739850935363533db437a7ad422d0d0323b2a5f802b5ebad9ea7f55fa84d5b4b3f2e1e45b8641
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # tufte-pandoc-jekyll
1
+ # tufte-crossref-jekyll
2
2
 
3
3
  This is a Jekyll theme for using Tufte CSS alongside `pandoc-sidenote`. It's
4
4
  based off of
@@ -16,17 +16,17 @@ and can instead just use `[^1]` like normal Pandoc markdown.
16
16
 
17
17
  For a demo, see <https://jez.io/talks/>.
18
18
 
19
- ## Features
19
+ ## Features specific to tufte-crossref-jekyll
20
20
 
21
21
  This fork introduces some changes to the style sheets that are meant to
22
22
  provide support for using **tufte-pandoc-jekyll** alongside
23
- [Pandoc-crossref] and [Reveal.js]. Otherwise, this project attempts to
23
+ [Pandoc-crossref]. Otherwise, this project attempts to
24
24
  match the style, features, and version numbering of
25
25
  **tufte-pandoc-jekyll**. In short what it does is to:
26
26
 
27
27
  [Pandoc-crossref]: https://lierdakil.github.io/pandoc-crossref/
28
28
 
29
- [Reveal.js]: https://revealjs.com
29
+ <!--[Reveal.js]: https://revealjs.com-->
30
30
 
31
31
  ### Figures, captions, and borders ###
32
32
 
@@ -86,9 +86,9 @@ line.
86
86
 
87
87
  :warning: The Reveal.js support does *not* affect slide output in any
88
88
  way and you should *not* point your slide presentation to the styles in
89
- the **tufte-pandoc-jekyll** theme. These features are meant to normalize
90
- the appearance of the *text* version of your page when it contains
91
- markup that will *also* be used for slide output.
89
+ the **tufte-crossref-jekyll** theme. These features are meant to
90
+ normalize the appearance of the *text* version of your page when it
91
+ contains markup that will *also* be used for slide output.
92
92
 
93
93
  ## Installation
94
94
 
@@ -105,13 +105,13 @@ brew install jez/formulae/pandoc-sidenote
105
105
  Next, add this line to your Jekyll site's Gemfile:
106
106
 
107
107
  ```ruby
108
- gem "tufte-pandoc-jekyll"
108
+ gem "tufte-crossref-jekyll"
109
109
  ```
110
110
 
111
111
  And add these lines to your Jekyll site's `_config.yml`:
112
112
 
113
113
  ```yaml
114
- theme: tufte-pandoc-jekyll
114
+ theme: tufte-crossref-jekyll
115
115
 
116
116
  gems:
117
117
  - jekyll-pandoc
@@ -123,12 +123,12 @@ And then execute:
123
123
 
124
124
  Or install it yourself as:
125
125
 
126
- $ gem install tufte-pandoc-jekyll
126
+ $ gem install tufte-crossref-jekyll
127
127
 
128
128
 
129
129
  ## Usage
130
130
 
131
- > Note: while `tufte-pandoc-css` optionally includes the Solarized Light/Dark
131
+ > Note: while `tufte-pandoc-css` optionally includes the Solarized Light
132
132
  > colorscheme, it's enabled by default here, with no easy way to opt-out. This is
133
133
  > probably fine for you, but if it's not, feel free to make a PR that allows
134
134
  > opting out.
data/_sass/_custom.scss CHANGED
@@ -1,40 +1,24 @@
1
- details {
2
- @extend section;
3
- summary > p { display: inline; }
4
- }
1
+ details { @extend section;
2
+ summary > p { display: inline; }
3
+ }
5
4
 
6
- dt,
7
- dt > a,
8
- h5,
9
- h6 {
10
- @extend .newthought;
11
- clear: left;
12
- font-style: normal;
13
- font-weight: 400;
14
- }
5
+ dt, dt > a, h5, h6 { @extend .newthought;
6
+ clear: left;
7
+ font-style: normal;
8
+ font-weight: 400; }
15
9
 
16
10
  // Run-in definition lists and headings
17
- article > dl,
18
- section > dl {
19
- clear: left;
20
- font-size: 1.4rem;
21
- line-height: 2rem;
22
- }
11
+ article > dl, section > dl { clear: left;
12
+ font-size: 1.4rem;
13
+ line-height: 2rem; }
23
14
 
24
- dt,
25
- h5,
26
- h6 {
27
- float: left;
28
- margin: 0 1.4rem 0 0;
29
- padding: 0;
30
- }
15
+ dt, h5, h6 { float: left;
16
+ margin: 0 1.4rem 0 0;
17
+ padding: 0; }
31
18
 
32
19
  // Tabular numbers for list items, small-caps Roman numerals
33
- article ol,
34
- article ul {
35
- & > li::marker {
36
- font-variant: tabular-nums oldstyle-nums all-small-caps;
37
- }
20
+ article ol, article ul {
21
+ & > li::marker { font-variant: tabular-nums oldstyle-nums all-small-caps; }
38
22
  }
39
23
 
40
24
  // Fix width of dl inside li
@@ -48,6 +32,7 @@ li > dl {
48
32
  p~figure > img.marginnote, div.notes~figure > img.marginnote { margin-top: 1.6rem; }
49
33
 
50
34
  // Dark colorscheme with a softer background
35
+ // TODO: switch code to Solarized-dark when in dark mode
51
36
  @media (prefers-color-scheme: dark) {
52
37
  body { color: #fffff8;
53
38
  background-color: lighten(#111, 10%); }
@@ -1,65 +1,32 @@
1
- // From https://ethanschoonover.com/solarized/
2
- $base03: #002b36;
3
- $base02: #073642;
4
- $base01: #586e75;
5
- $base00: #657b83;
6
- $base0: #839496;
7
- $base1: #93a1a1;
8
- $base2: #eee8d5;
9
- $base3: #fdf6e3;
10
- $yellow: #b58900;
11
- $orange: #cb4b16;
12
- $red: #dc322f;
13
- $magenta: #d33682;
14
- $violet: #6c71c4;
15
- $blue: #268bd2;
16
- $cyan: #2aa198;
17
- $green: #859900;
18
-
19
- @mixin rebase($rebase03,$rebase02,$rebase01,$rebase00,$rebase0,$rebase1,$rebase2,$rebase3)
20
- {
21
- div.sourceCode, pre:not(.sourceCode) { background: $rebase03; }
22
- pre code { color: $rebase0; }
23
- code span.kw { color: $green; font-weight: normal; font-style: normal; } /* Keyword */
24
- code span.dt { color: $yellow; font-weight: normal; font-style: normal; } /* DataType */
25
- code span.dv { color: $cyan; font-weight: normal; font-style: normal; } /* DecVal */
26
- code span.bn { color: $cyan; font-weight: normal; font-style: normal; } /* BaseN */
27
- code span.fl { color: $cyan; font-weight: normal; font-style: normal; } /* Float */
28
- code span.ch { color: $cyan; font-weight: normal; font-style: normal; } /* Char */
29
- code span.st { color: $cyan; font-weight: normal; font-style: normal; } /* String */
30
- code span.co { color: $rebase01; font-weight: normal; font-style: italic; } /* Comment */
31
- code span.ot { color: $blue; font-weight: normal; font-style: normal; } /* Other */
32
- code span.al { color: $red; font-weight: normal; font-style: normal; } /* Alert */
33
- code span.fu { color: $blue; font-weight: normal; font-style: normal; } /* Function */
34
- code span.er { color: $red; font-weight: normal; font-style: normal; } /* Error */
35
- code span.wa { color: $orange; font-weight: normal; font-style: italic; } /* Warning */
36
- code span.cn { color: $cyan; font-weight: normal; font-style: normal; } /* Constant */
37
- code span.sc { color: $red; font-weight: normal; font-style: normal; } /* SpecialChar */
38
- code span.vs { color: $rebase0; font-weight: normal; font-style: normal; } /* VerbatimString */
39
- code span.ss { color: $red; font-weight: normal; font-style: normal; } /* SpecialString */
40
- code span.im { color: $rebase0; font-weight: normal; font-style: normal; } /* Import */
41
- code span.va { color: $blue; font-weight: normal; font-style: normal; } /* Variable */
42
- code span.cf { color: $green; font-weight: normal; font-style: normal; } /* ControlFlow */
43
- code span.op { color: $green; font-weight: normal; font-style: normal; } /* Operator */
44
- code span.bu { color: $rebase0; font-weight: normal; font-style: normal; } /* BuiltIn */
45
- code span.ex { color: $rebase0; font-weight: normal; font-style: normal; } /* Extension */
46
- code span.pp { color: $orange; font-weight: normal; font-style: normal; } /* Preprocessor */
47
- code span.at { color: $rebase0; font-weight: normal; font-style: normal; } /* Attribute */
48
- code span.do { color: $rebase01; font-weight: normal; font-style: italic; } /* Documentation */
49
- code span.an { color: $rebase01; font-weight: normal; font-style: italic; } /* Annotation */
50
- code span.cv { color: $rebase01; font-weight: normal; font-style: italic; } /* CommentVar */
51
- code span.in { color: $rebase01; font-weight: normal; font-style: italic; } /* Information */
52
- a.sourceLine::before { text-decoration: none; }
53
- }
54
-
55
- @media (prefers-color-scheme: no-preference),
56
- (prefers-color-scheme: light) {
57
- @include rebase($base3,$base2,$base1,$base0,$base00,$base01,$base02,$base03)
58
- }
59
- @media (prefers-color-scheme: dark) {
60
- @include rebase($base03,$base02,$base01,$base00,$base0,$base1,$base2,$base3)
61
- }
62
- html * {
63
- color-profile: sRGB;
64
- rendering-intent: auto;
65
- }
1
+ div.sourceCode, pre:not(.sourceCode) { background: #FDF6E3; }
2
+ pre code { color: #657B83; }
3
+ code span.kw { color: #859900; font-weight: normal; font-style: normal; } /* Keyword */
4
+ code span.dt { color: #B58900; font-weight: normal; font-style: normal; } /* DataType */
5
+ code span.dv { color: #2AA198; font-weight: normal; font-style: normal; } /* DecVal */
6
+ code span.bn { color: #2AA198; font-weight: normal; font-style: normal; } /* BaseN */
7
+ code span.fl { color: #2AA198; font-weight: normal; font-style: normal; } /* Float */
8
+ code span.ch { color: #2AA198; font-weight: normal; font-style: normal; } /* Char */
9
+ code span.st { color: #2AA198; font-weight: normal; font-style: normal; } /* String */
10
+ code span.co { color: #93A1A1; font-weight: normal; font-style: italic; } /* Comment */
11
+ code span.ot { color: #268BD2; font-weight: normal; font-style: normal; } /* Other */
12
+ code span.al { color: #DC322F; font-weight: normal; font-style: normal; } /* Alert */
13
+ code span.fu { color: #268BD2; font-weight: normal; font-style: normal; } /* Function */
14
+ code span.er { color: #DC322F; font-weight: normal; font-style: normal; } /* Error */
15
+ code span.wa { color: #CB4B16; font-weight: normal; font-style: italic; } /* Warning */
16
+ code span.cn { color: #2AA198; font-weight: normal; font-style: normal; } /* Constant */
17
+ code span.sc { color: #DC322F; font-weight: normal; font-style: normal; } /* SpecialChar */
18
+ code span.vs { color: #657B83; font-weight: normal; font-style: normal; } /* VerbatimString */
19
+ code span.ss { color: #DC322F; font-weight: normal; font-style: normal; } /* SpecialString */
20
+ code span.im { color: #657B83; font-weight: normal; font-style: normal; } /* Import */
21
+ code span.va { color: #268BD2; font-weight: normal; font-style: normal; } /* Variable */
22
+ code span.cf { color: #859900; font-weight: normal; font-style: normal; } /* ControlFlow */
23
+ code span.op { color: #859900; font-weight: normal; font-style: normal; } /* Operator */
24
+ code span.bu { color: #657B83; font-weight: normal; font-style: normal; } /* BuiltIn */
25
+ code span.ex { color: #657B83; font-weight: normal; font-style: normal; } /* Extension */
26
+ code span.pp { color: #CB4B16; font-weight: normal; font-style: normal; } /* Preprocessor */
27
+ code span.at { color: #657B83; font-weight: normal; font-style: normal; } /* Attribute */
28
+ code span.do { color: #93A1A1; font-weight: normal; font-style: italic; } /* Documentation */
29
+ code span.an { color: #93A1A1; font-weight: normal; font-style: italic; } /* Annotation */
30
+ code span.cv { color: #93A1A1; font-weight: normal; font-style: italic; } /* CommentVar */
31
+ code span.in { color: #93A1A1; font-weight: normal; font-style: italic; } /* Information */
32
+ a.sourceLine::before { text-decoration: none; }
@@ -13,42 +13,30 @@ h3.unlisted { display: none; }
13
13
  // Uncomment this line if you want to suppress it.
14
14
  // hr { display: none; }
15
15
 
16
- // Fix width of incremental Reveal.js sections
17
16
  // Align Reveal.js presenter notes as regular paragraphs.
18
17
  // Alternatively, uncomment the second line to hide them completely.
19
- div.incremental,
20
- div.notes {
21
- @extend section;
22
- // &.notes { display: none !important; }
23
- }
18
+ div.notes { @extend section;
19
+ //display: none !important;
20
+ }
24
21
 
25
22
  // Right now .r-stack figures are hard-coded to show up
26
23
  // in two equal columns.
27
- div.r-stack > figure {
28
- float: left;
29
- max-width: 50%;
30
- & > figcaption {
31
- float: none;
32
- max-width: 100%;
33
- width: 100%;
34
- }
35
- }
24
+ div.r-stack > figure { float: left;
25
+ max-width: 50%;
26
+ & > figcaption { float: none;
27
+ max-width: 100%;
28
+ width: 100%; }
29
+ }
36
30
 
37
31
  // Support Pandoc columns for reveal.js
38
- .columns {
39
- @extend .fullwidth;
40
- width: 100%;
41
- &.subfigures > p:last-of-type {
42
- max-width: 33%;
43
- margin-bottom: 1.1rem;
44
- }
45
- }
46
-
47
- .column {
48
- float: left;
49
- figure {
50
- margin-bottom: 1em;
51
- max-width: 90%;
52
- figcaption { float: right; }
53
- }
54
- }
32
+ .columns { @extend .fullwidth;
33
+ width: 100%;
34
+ &.subfigures > p:last-of-type { max-width: 33%;
35
+ margin-bottom: 1.1rem; }
36
+ }
37
+ .column { float: left;
38
+ figure { margin-bottom: 1em;
39
+ max-width: 90%;
40
+ figcaption { float: right; }
41
+ }
42
+ }
data/_sass/_tufte.scss CHANGED
@@ -275,12 +275,12 @@ div.hanging-indent{
275
275
  text-indent: -1.5rem;
276
276
  }
277
277
 
278
- /* Sidenotes, margin notes, figures, captions */
279
278
  video,
280
279
  img {
281
280
  max-width: 100%;
282
281
  }
283
282
 
283
+ /* Sidenotes, margin notes, figures, captions */
284
284
  .sidenote,
285
285
  .marginnote {
286
286
  float: right;
metadata CHANGED
@@ -1,11 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tufte-crossref-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0b
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
- - Jake Zimmerman
8
- - Pedro Palazzo
7
+ - Pedro P. Palazzo
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
@@ -69,7 +68,6 @@ dependencies:
69
68
  version: '10.0'
70
69
  description:
71
70
  email:
72
- - zimmerman.jake@gmail.com
73
71
  - pedro.palazzo@gmail.com
74
72
  executables: []
75
73
  extensions: []
@@ -108,12 +106,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
106
  version: '0'
109
107
  required_rubygems_version: !ruby/object:Gem::Requirement
110
108
  requirements:
111
- - - ">"
109
+ - - ">="
112
110
  - !ruby/object:Gem::Version
113
- version: 1.3.1
111
+ version: '0'
114
112
  requirements: []
115
113
  rubygems_version: 3.2.22
116
114
  signing_key:
117
115
  specification_version: 4
118
- summary: A Jekyll theme based on jez/tufte-pandoc-jekyll with support for Pandoc-Crossref
116
+ summary: A Jekyll theme based on jez/tufte-pandoc-jekyll
119
117
  test_files: []