octopress-solarized 1.0.0.alpha1
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 +7 -0
- data/.gitignore +20 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/assets/stylesheets/_code-style.scss +103 -0
- data/assets/stylesheets/_solarized.scss +58 -0
- data/assets/stylesheets/code.scss +156 -0
- data/demo/.gitignore +1 -0
- data/demo/Gemfile +11 -0
- data/demo/_config.yml +10 -0
- data/demo/_layouts/default.html +12 -0
- data/demo/_plugins/bundler.rb +6 -0
- data/demo/index.html +66 -0
- data/lib/octopress-solarized/version.rb +5 -0
- data/lib/octopress-solarized.rb +24 -0
- data/octopress-solarized.gemspec +25 -0
- metadata +104 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6d6d04337c52944e305c457b9030db56b7250e48
|
4
|
+
data.tar.gz: 78ea37ccb07f10da241a5954810809814e84ffd0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1004590dec3a1a558e7b9a81a2baff9fbdf9ab6c9a78d51c684b0cc9db13d250b267ecb39e6455cc4920035a3b2d318a19a484fb26ba971d41698afd6c10b3b9
|
7
|
+
data.tar.gz: 70786188456f191ee69436fd6be3f3a47e226011cbdea5a5a127ea9aff1b37446177be1efca7078b756f05c2d63d6e231a1437e3fe1f2409a57eb625f1443be0
|
data/.gitignore
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
.sass-cache
|
19
|
+
.code-highlighter-cache
|
20
|
+
_site
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Brandon Mathis
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Octopress Solarized
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'octopress-solarized'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install octopress-solarized
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,103 @@
|
|
1
|
+
%octopress-diff-bg {
|
2
|
+
content: "";
|
3
|
+
position: absolute;
|
4
|
+
z-index: -1;
|
5
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
@mixin octopress-diff-bg($bg) {
|
9
|
+
&:after {
|
10
|
+
background: $bg;
|
11
|
+
@extend %octopress-diff-bg;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.code-highlight {
|
16
|
+
border: 1px solid $code-highlight-border;
|
17
|
+
background: $pre-bg;
|
18
|
+
color: $base1;
|
19
|
+
span { color: $base1; }
|
20
|
+
span { font-style: normal; font-weight: normal; }
|
21
|
+
|
22
|
+
.c { color: $base01; font-style: italic; } /* Comment */
|
23
|
+
.cm { color: $base01; font-style: italic; } /* Comment.Multiline */
|
24
|
+
.cp { color: $base01; font-style: italic; } /* Comment.Preproc */
|
25
|
+
.c1 { color: $base01; font-style: italic; } /* Comment.Single */
|
26
|
+
.cs { /* Comment.Special */
|
27
|
+
color: $base01;
|
28
|
+
font-weight: bold;
|
29
|
+
font-style: italic; }
|
30
|
+
.err { color: $solar-red; background: none; } /* Error */
|
31
|
+
.k { color: $solar-orange; } /* Keyword */
|
32
|
+
.o { color: $base1; font-weight: bold; } /* Operator */
|
33
|
+
.p { color: $base1; } /* Operator */
|
34
|
+
.ow { color: $solar-cyan; font-weight: bold; } /* Operator.Word */
|
35
|
+
.gd {
|
36
|
+
color: $base1; /* Generic.Deleted */
|
37
|
+
@include octopress-diff-bg(mix($solar-red, $base03, 25%));
|
38
|
+
}
|
39
|
+
.gd .x { /* Generic.Deleted.Specific */
|
40
|
+
color: $base1;
|
41
|
+
@include octopress-diff-bg(mix($solar-red, $base03, 35%));
|
42
|
+
}
|
43
|
+
.ge { /* Generic.Emph */
|
44
|
+
color: $base1;
|
45
|
+
font-style: italic; }
|
46
|
+
//.gr { color: #aa0000 } /* Generic.Error */
|
47
|
+
.gh { color: $base01; } /* Generic.Heading */
|
48
|
+
.gi { /* Generic.Inserted */
|
49
|
+
color: $base1;
|
50
|
+
@include octopress-diff-bg(mix($solar-green, $base03, 20%));
|
51
|
+
}
|
52
|
+
.gi .x { /* Generic.Inserted.Specific */
|
53
|
+
color: $base1;
|
54
|
+
@include octopress-diff-bg(mix($solar-green, $base03, 40%));
|
55
|
+
}
|
56
|
+
//.go { color: #888888 } /* Generic.Output */
|
57
|
+
//.gp { color: #555555 } /* Generic.Prompt */
|
58
|
+
.gs { color: $base1; font-weight: bold; } /* Generic.Strong */
|
59
|
+
.gu { color: $solar-violet; } /* Generic.Subheading */
|
60
|
+
//.gt { color: #aa0000 } /* Generic.Traceback */
|
61
|
+
.kc { color: $solar-green; font-weight: bold; } /* Keyword.Constant */
|
62
|
+
.kd { color: $solar-blue; } /* Keyword.Declaration */
|
63
|
+
.kp { color: $solar-orange; font-weight: bold; } /* Keyword.Pseudo */
|
64
|
+
.kr { color: $solar-magenta; font-weight: bold; } /* Keyword.Reserved */
|
65
|
+
.kt { color: $solar-cyan; } /* Keyword.Type */
|
66
|
+
.n { color: $solar-blue; }
|
67
|
+
.na { color: $solar-blue; } /* Name.Attribute */
|
68
|
+
.nb { color: $solar-green; } /* Name.Builtin */
|
69
|
+
.nc { color: $solar-magenta;} /* Name.Class */
|
70
|
+
.no { color: $solar-yellow; } /* Name.Constant */
|
71
|
+
//.ni { color: #800080 } /* Name.Entity */
|
72
|
+
.nl { color: $solar-green; }
|
73
|
+
.ne { color: $solar-blue; font-weight: bold; } /* Name.Exception */
|
74
|
+
.nf { color: $solar-blue; font-weight: bold; } /* Name.Function */
|
75
|
+
.nn { color: $solar-yellow; } /* Name.Namespace */
|
76
|
+
.nt { color: $solar-blue; font-weight: bold; } /* Name.Tag */
|
77
|
+
.nx { color: $solar-yellow; }
|
78
|
+
//.bp { color: #999999 } /* Name.Builtin.Pseudo */
|
79
|
+
//.vc { color: #008080 } /* Name.Variable.Class */
|
80
|
+
.vg { color: $solar-blue; } /* Name.Variable.Global */
|
81
|
+
.vi { color: $solar-blue; } /* Name.Variable.Instance */
|
82
|
+
.nv { color: $solar-blue; } /* Name.Variable */
|
83
|
+
//.w { color: #bbbbbb } /* Text.Whitespace */
|
84
|
+
.mf { color: $solar-cyan; } /* Literal.Number.Float */
|
85
|
+
.m { color: $solar-cyan; } /* Literal.Number */
|
86
|
+
.mh { color: $solar-cyan; } /* Literal.Number.Hex */
|
87
|
+
.mi { color: $solar-cyan; } /* Literal.Number.Integer */
|
88
|
+
//.mo { color: #009999 } /* Literal.Number.Oct */
|
89
|
+
.s { color: $solar-cyan; } /* Literal.String */
|
90
|
+
//.sb { color: #d14 } /* Literal.String.Backtick */
|
91
|
+
//.sc { color: #d14 } /* Literal.String.Char */
|
92
|
+
.sd { color: $solar-cyan; } /* Literal.String.Doc */
|
93
|
+
.s2 { color: $solar-cyan; } /* Literal.String.Double */
|
94
|
+
.se { color: $solar-red; } /* Literal.String.Escape */
|
95
|
+
//.sh { color: #d14 } /* Literal.String.Heredoc */
|
96
|
+
.si { color: $solar-blue; } /* Literal.String.Interpol */
|
97
|
+
//.sx { color: #d14 } /* Literal.String.Other */
|
98
|
+
.sr { color: $solar-cyan; } /* Literal.String.Regex */
|
99
|
+
.s1 { color: $solar-cyan; } /* Literal.String.Single */
|
100
|
+
//.ss { color: #990073 } /* Literal.String.Symbol */
|
101
|
+
//.il { color: #009999 } /* Literal.Number.Integer.Long */
|
102
|
+
}
|
103
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
$base03: #002b36 !default; //darkest blue
|
2
|
+
$base02: #073642 !default; //dark blue
|
3
|
+
$base01: #586e75 !default; //darkest gray
|
4
|
+
$base00: #657b83 !default; //dark gray
|
5
|
+
$base0: #839496 !default; //medium gray
|
6
|
+
$base1: #93a1a1 !default; //medium light gray
|
7
|
+
$base2: #f2f2f2 !default; //very light gray
|
8
|
+
$base3: #ffffff !default; //white
|
9
|
+
$solar-yellow: #b58900 !default;
|
10
|
+
$solar-orange: #cb4b16 !default;
|
11
|
+
$solar-red: #dc322f !default;
|
12
|
+
$solar-magenta: #d33682 !default;
|
13
|
+
$solar-violet: #6c71c4 !default;
|
14
|
+
$solar-blue: #268bd2 !default;
|
15
|
+
$solar-cyan: #2aa198 !default;
|
16
|
+
$solar-green: #859900 !default;
|
17
|
+
|
18
|
+
$marker: rgba(#00baff, .5) !default;
|
19
|
+
$marker-bg: rgba($marker, .13) !default;
|
20
|
+
$marker-border: rgba($marker, .13) !default;
|
21
|
+
$marker-border-left: $marker !default;
|
22
|
+
|
23
|
+
$solarized: light;// !default;
|
24
|
+
|
25
|
+
$solar-scroll-bg: rgba(#fff, .15);
|
26
|
+
$solar-scroll-thumb: rgba(#fff, .2);
|
27
|
+
|
28
|
+
@if $solarized == light {
|
29
|
+
|
30
|
+
$_base03: $base03 !global;
|
31
|
+
$_base02: $base02 !global;
|
32
|
+
$_base01: $base01 !global;
|
33
|
+
$_base00: $base00 !global;
|
34
|
+
$_base0: $base0 !global;
|
35
|
+
$_base1: $base1 !global;
|
36
|
+
$_base2: $base2 !global;
|
37
|
+
$_base3: $base3 !global;
|
38
|
+
|
39
|
+
$base03: $_base3 !global;
|
40
|
+
$base02: $_base2 !global;
|
41
|
+
$base01: $_base1 !global;
|
42
|
+
$base00: $_base0 !global;
|
43
|
+
$base0: $_base00 !global;
|
44
|
+
$base1: $_base01 !global;
|
45
|
+
$base2: $_base02 !global;
|
46
|
+
$base3: $_base03 !global;
|
47
|
+
|
48
|
+
$solar-scroll-bg: rgba(#000, .15) !global;
|
49
|
+
$solar-scroll-thumb: rgba(#000, .15) !global;
|
50
|
+
|
51
|
+
$marker-bg: rgba($marker, .05) !global;
|
52
|
+
}
|
53
|
+
|
54
|
+
$pre-bg: $base03 !default;
|
55
|
+
$pre-border: darken($base02, 5) !default;
|
56
|
+
$pre-color: $base1 !default;
|
57
|
+
$code-highlight-border: $pre-border;
|
58
|
+
|
@@ -0,0 +1,156 @@
|
|
1
|
+
@import 'solarized';
|
2
|
+
@import 'code-style';
|
3
|
+
|
4
|
+
.code-highlight-figure {
|
5
|
+
font-size: 13px;
|
6
|
+
* { box-sizing: border-box; }
|
7
|
+
}
|
8
|
+
|
9
|
+
.code-highlight-pre {
|
10
|
+
background: darken($base03, 1);
|
11
|
+
width: 100%;
|
12
|
+
margin-bottom: 0;
|
13
|
+
display: table;
|
14
|
+
}
|
15
|
+
|
16
|
+
$pre-line-padding: .8em;
|
17
|
+
|
18
|
+
.code-highlight-row {
|
19
|
+
display: table-row;
|
20
|
+
width: 100%;
|
21
|
+
}
|
22
|
+
|
23
|
+
.code-highlight-row {
|
24
|
+
&:before, .code-highlight-line {
|
25
|
+
padding: {left: $pre-line-padding + .8; right: $pre-line-padding + .8 }
|
26
|
+
}
|
27
|
+
&:first-child {
|
28
|
+
&:before, .code-highlight-line { padding-top: $pre-line-padding; }
|
29
|
+
}
|
30
|
+
&:last-child {
|
31
|
+
&:before, .code-highlight-line { padding-bottom: $pre-line-padding; }
|
32
|
+
}
|
33
|
+
&.numbered {
|
34
|
+
&:before, .code-highlight-line {
|
35
|
+
padding: {left: $pre-line-padding; right: $pre-line-padding }
|
36
|
+
}
|
37
|
+
&:before {
|
38
|
+
display: table-cell;
|
39
|
+
content: attr(data-line);
|
40
|
+
min-width: 1.2em;
|
41
|
+
color: $base01;
|
42
|
+
text-align: right;
|
43
|
+
line-height: 1.45em;
|
44
|
+
@if $solarized == light {
|
45
|
+
background: lighten($base03, 1);
|
46
|
+
border-right: 1px solid darken($base02, 2);
|
47
|
+
text-shadow: lighten($base02, 2) 0 -1px;
|
48
|
+
} @else {
|
49
|
+
background: $base02;
|
50
|
+
border-right: 1px solid darken($base03, 2);
|
51
|
+
box-shadow: lighten($base02, 2) -1px 0 inset;
|
52
|
+
text-shadow: darken($base02, 10) 0 -1px;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.code-highlight-line {
|
59
|
+
display: table-cell;
|
60
|
+
width: 100%;
|
61
|
+
position: relative;
|
62
|
+
z-index: 1;
|
63
|
+
}
|
64
|
+
|
65
|
+
.marked-line {
|
66
|
+
position: relative;
|
67
|
+
&.unnumbered {
|
68
|
+
}
|
69
|
+
.code-highlight-line {
|
70
|
+
&:before {
|
71
|
+
content: "";
|
72
|
+
position: absolute;
|
73
|
+
background: $marker-bg;
|
74
|
+
left: 0; top: 0; bottom: 0; right: 0;
|
75
|
+
border-right: 1px solid $marker-border;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
&.unnumbered .code-highlight-line:before {
|
79
|
+
border-left: 3px solid $marker-border-left;
|
80
|
+
}
|
81
|
+
&.numbered:before {
|
82
|
+
background: $marker-bg;
|
83
|
+
border-left: 3px solid $marker-border-left;
|
84
|
+
border-right-color: darken($marker-bg, 20);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
.start-marked-line {
|
89
|
+
&:before, .code-highlight-line:before {
|
90
|
+
border-top: 1px solid $marker-border;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
.end-marked-line {
|
94
|
+
&:before, .code-highlight-line:before {
|
95
|
+
border-bottom: 1px solid $marker-border;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
.code-highlight {
|
100
|
+
overflow: scroll;
|
101
|
+
overflow-y: hidden;
|
102
|
+
overflow-x: auto;
|
103
|
+
line-height: 1.45em;
|
104
|
+
}
|
105
|
+
|
106
|
+
.code-highlight-table {
|
107
|
+
margin-bottom: 0;
|
108
|
+
background: $base03;
|
109
|
+
pre {
|
110
|
+
padding: .8em;
|
111
|
+
background: none;
|
112
|
+
border-radius: 0;
|
113
|
+
border: none;
|
114
|
+
margin-bottom: 0;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
.code-highlight-figure {
|
119
|
+
margin: {left: 0; right: 0;}
|
120
|
+
background: none;
|
121
|
+
padding: 0;
|
122
|
+
border: 0;
|
123
|
+
pre { margin-bottom: 0; }
|
124
|
+
}
|
125
|
+
|
126
|
+
.code-highlight-caption {
|
127
|
+
position: relative;
|
128
|
+
text-align: center;
|
129
|
+
line-height: 2em;
|
130
|
+
text-shadow: #fff 0 1px 0;
|
131
|
+
color: #474747;
|
132
|
+
font-weight: normal;
|
133
|
+
margin-bottom: 0;
|
134
|
+
background-color: #ccc;
|
135
|
+
background-image: linear-gradient(#ffffff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);
|
136
|
+
border-top-left-radius: 5px;
|
137
|
+
border-top-right-radius: 5px;
|
138
|
+
font-family: "Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;
|
139
|
+
border: 1px solid #cbcbcb;
|
140
|
+
+ .code-highlight { border-top: 0; }
|
141
|
+
}
|
142
|
+
|
143
|
+
.code-highlight-caption-link {
|
144
|
+
position: absolute; right: .8em;
|
145
|
+
color: #666;
|
146
|
+
z-index: 1;
|
147
|
+
text-shadow: #cbcccc 0 1px 0;
|
148
|
+
padding-left: 3em;
|
149
|
+
}
|
150
|
+
|
151
|
+
pre {
|
152
|
+
margin-top: 0;
|
153
|
+
font-size: 13px;
|
154
|
+
font-family: Menlo, Monaco, 'Andale Mono', 'lucida console', 'Courier New', monospace;
|
155
|
+
}
|
156
|
+
|
data/demo/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
_site
|
data/demo/Gemfile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
group :octopress do
|
4
|
+
gem "octopress"
|
5
|
+
gem "octopress-ink", path: "../../ink"
|
6
|
+
gem "octopress-solarized", path: "../"
|
7
|
+
gem "octopress-code-highlighter", path: "../../code-highlighter"
|
8
|
+
gem "octopress-codefence", path: "../../codefence"
|
9
|
+
end
|
10
|
+
|
11
|
+
gem "pry-debugger"
|
data/demo/_config.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
+
<title>{{ page.title }}</title>
|
7
|
+
<meta name="viewport" content="width=device-width">
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
{{ content }}
|
11
|
+
</body>
|
12
|
+
</html>
|
data/demo/index.html
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: Your New Jekyll Site
|
4
|
+
---
|
5
|
+
Hello World!
|
6
|
+
|
7
|
+
``` fooooo title:"awesome code" mark:2-3 linenos: false
|
8
|
+
puts :awesome unless cool
|
9
|
+
@sandwiches.each do |sandwich|
|
10
|
+
eat sandwich unless sandwich.include?('mayonaise')
|
11
|
+
end
|
12
|
+
```
|
13
|
+
|
14
|
+
```ruby mark:7,8 title:"Testing codefence" url:"https://github.com/octopress/codefence" link_text:"plugin link"
|
15
|
+
class Float
|
16
|
+
def number_decimal_places
|
17
|
+
self.to_s.length-2
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_fraction
|
21
|
+
higher = 10**self.number_decimal_places
|
22
|
+
lower = self*higher
|
23
|
+
|
24
|
+
gcden = greatest_common_divisor(higher, lower)
|
25
|
+
|
26
|
+
return (lower/gcden).round, (higher/gcden).round
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def greatest_common_divisor(a, b)
|
32
|
+
while a%b != 0
|
33
|
+
a,b = b.round,(a%b).round
|
34
|
+
end
|
35
|
+
return b
|
36
|
+
end
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
``` ruby title:"awesome code" mark:2-3
|
43
|
+
puts :awesome unless cool
|
44
|
+
@sandwiches.each do |sandwich|
|
45
|
+
eat sandwich unless sandwhich.include?('mayonaise')
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
``` diff
|
50
|
+
diff --git a/update/update_bins.cf b/update/update_bins.cf
|
51
|
+
index b9747b8..625416c 100755
|
52
|
+
--- a/update/update_bins.cf
|
53
|
+
+++ b/update/update_bins.cf
|
54
|
+
@@ -175,9 +175,9 @@ bundle agent cfe_internal_update_bins
|
55
|
+
comment => "Update Nova package to a newer version (package is there)",
|
56
|
+
handle => "cfe_internal_update_bins_packages_nova_update_windows_only_pkg_there",
|
57
|
+
package_policy => "update",
|
58
|
+
- package_select => ">=", # picks the newest Nova available
|
59
|
+
+ package_select => "==", # picks the newest Nova available
|
60
|
+
package_architectures => { "$(pkgarch)" },
|
61
|
+
- package_version => "9.9.9.9", # Install new Nova anyway
|
62
|
+
+ package_version => "3.5.3.0", # Install new Nova anyway
|
63
|
+
package_method => u_generic( "$(local_software_dir)" ),
|
64
|
+
ifvarclass => "nova_edition",
|
65
|
+
classes => u_if_else("bin_update_success", "bin_update_fail");
|
66
|
+
```
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require "octopress-solarized/version"
|
2
|
+
|
3
|
+
module Octopress
|
4
|
+
module Solarized
|
5
|
+
class Plugin < Octopress::Ink::Plugin
|
6
|
+
def configuration
|
7
|
+
{
|
8
|
+
name: "Octopress Solarized code",
|
9
|
+
slug: "solarized",
|
10
|
+
description: "Style code snippets with Ethan Schoonover's Solarized theme (tweaked a bit).",
|
11
|
+
version: Octopress::Solarized::VERSION,
|
12
|
+
assets_path: File.expand_path(File.join(File.dirname(__FILE__), '../assets'))
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
def add_assets
|
17
|
+
add_sass 'code.scss'
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
Octopress::Ink.register_plugin(Octopress::Solarized::Plugin)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'octopress-solarized/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "octopress-solarized"
|
8
|
+
spec.version = Octopress::Solarized::VERSION
|
9
|
+
spec.authors = ["Brandon Mathis"]
|
10
|
+
spec.email = ["brandon@imathis.com"]
|
11
|
+
spec.description = %q{Ethan Schoonover's solarized theme (with tweaks) for Octopress's code highlighter.}
|
12
|
+
spec.summary = %q{Ethan Schoonover's solarized theme (with tweaks) for Octopress's code highlighter.}
|
13
|
+
spec.homepage = "https://github.com/octopress/solarized"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_runtime_dependency "octopress-ink", "~> 1.0.0.alpha.37"
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: octopress-solarized
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.alpha1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brandon Mathis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: octopress-ink
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.0.alpha.37
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.0.alpha.37
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Ethan Schoonover's solarized theme (with tweaks) for Octopress's code
|
56
|
+
highlighter.
|
57
|
+
email:
|
58
|
+
- brandon@imathis.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- .gitignore
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- assets/stylesheets/_code-style.scss
|
69
|
+
- assets/stylesheets/_solarized.scss
|
70
|
+
- assets/stylesheets/code.scss
|
71
|
+
- demo/.gitignore
|
72
|
+
- demo/Gemfile
|
73
|
+
- demo/_config.yml
|
74
|
+
- demo/_layouts/default.html
|
75
|
+
- demo/_plugins/bundler.rb
|
76
|
+
- demo/index.html
|
77
|
+
- lib/octopress-solarized.rb
|
78
|
+
- lib/octopress-solarized/version.rb
|
79
|
+
- octopress-solarized.gemspec
|
80
|
+
homepage: https://github.com/octopress/solarized
|
81
|
+
licenses:
|
82
|
+
- MIT
|
83
|
+
metadata: {}
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options: []
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - '>'
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 1.3.1
|
98
|
+
requirements: []
|
99
|
+
rubyforge_project:
|
100
|
+
rubygems_version: 2.1.11
|
101
|
+
signing_key:
|
102
|
+
specification_version: 4
|
103
|
+
summary: Ethan Schoonover's solarized theme (with tweaks) for Octopress's code highlighter.
|
104
|
+
test_files: []
|