bookends 2.0.0 → 2.0.1

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bookends/jekyll_handler.rb +2 -0
  3. data/lib/bookends/version.rb +1 -1
  4. metadata +1 -31
  5. data/fixtures/dummy-jekyll/README.md +0 -64
  6. data/fixtures/dummy-jekyll/_config.yml +0 -8
  7. data/fixtures/dummy-jekyll/_layouts/default.html +0 -118
  8. data/fixtures/dummy-jekyll/_layouts/post.html +0 -14
  9. data/fixtures/dummy-jekyll/_sass/_base.scss +0 -478
  10. data/fixtures/dummy-jekyll/_sass/_google-cse.scss +0 -372
  11. data/fixtures/dummy-jekyll/_sass/_header.scss +0 -780
  12. data/fixtures/dummy-jekyll/_sass/_legacy.scss +0 -567
  13. data/fixtures/dummy-jekyll/_sass/_menu-icon.scss +0 -68
  14. data/fixtures/dummy-jekyll/_sass/_mixins.scss +0 -12
  15. data/fixtures/dummy-jekyll/_sass/_search.scss +0 -51
  16. data/fixtures/dummy-jekyll/_sass/bookends/_footer.scss +0 -390
  17. data/fixtures/dummy-jekyll/_sass/mixins/_background-image.scss +0 -48
  18. data/fixtures/dummy-jekyll/_sass/mixins/_border-radius.scss +0 -22
  19. data/fixtures/dummy-jekyll/_sass/mixins/_box-sizing.scss +0 -4
  20. data/fixtures/dummy-jekyll/_sass/mixins/_hide-text.scss +0 -5
  21. data/fixtures/dummy-jekyll/_sass/mixins/_hidpi.scss +0 -10
  22. data/fixtures/dummy-jekyll/_sass/mixins/_linear-gradient.scss +0 -41
  23. data/fixtures/dummy-jekyll/_sass/mixins/_prefixer.scss +0 -49
  24. data/fixtures/dummy-jekyll/_sass/mixins/_responsiveness.scss +0 -129
  25. data/fixtures/dummy-jekyll/_sass/mixins/_retina-image.scss +0 -31
  26. data/fixtures/dummy-jekyll/_sass/mixins/_size.scss +0 -44
  27. data/fixtures/dummy-jekyll/_sass/mixins/_transition.scss +0 -34
  28. data/fixtures/dummy-jekyll/_sass/mixins/_triangle.scss +0 -45
  29. data/fixtures/dummy-jekyll/app.json +0 -15
  30. data/fixtures/dummy-jekyll/bin/from-gdoc +0 -3
  31. data/fixtures/dummy-jekyll/bin/platform-setup +0 -15
  32. data/fixtures/dummy-jekyll/feed.xml +0 -34
  33. data/fixtures/dummy-jekyll/index.html +0 -40
  34. data/fixtures/dummy-jekyll/static.json +0 -3
@@ -1,31 +0,0 @@
1
- @mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $asset-pipeline: false) {
2
- @if $asset-pipeline {
3
- background-image: image-url("#{$filename}.#{$extension}");
4
- }
5
- @else {
6
- background-image: url("#{$filename}.#{$extension}");
7
- }
8
-
9
- @include hidpi {
10
- @if $asset-pipeline {
11
- @if $retina-filename {
12
- background-image: image-url("#{$retina-filename}.#{$extension}");
13
- }
14
- @else {
15
- background-image: image-url("#{$filename}@2x.#{$extension}");
16
- }
17
- }
18
-
19
- @else {
20
- @if $retina-filename {
21
- background-image: url("#{$retina-filename}.#{$extension}");
22
- }
23
- @else {
24
- background-image: url("#{$filename}@2x.#{$extension}");
25
- }
26
- }
27
-
28
- background-size: $background-size;
29
-
30
- }
31
- }
@@ -1,44 +0,0 @@
1
- @mixin size($size) {
2
- @if length($size) == 1 {
3
- @if $size == auto {
4
- width: $size;
5
- height: $size;
6
- }
7
-
8
- @else if unitless($size) {
9
- width: $size + px;
10
- height: $size + px;
11
- }
12
-
13
- @else if not(unitless($size)) {
14
- width: $size;
15
- height: $size;
16
- }
17
- }
18
-
19
- // Width x Height
20
- @if length($size) == 2 {
21
- $width: nth($size, 1);
22
- $height: nth($size, 2);
23
-
24
- @if $width == auto {
25
- width: $width;
26
- }
27
- @else if not(unitless($width)) {
28
- width: $width;
29
- }
30
- @else if unitless($width) {
31
- width: $width + px;
32
- }
33
-
34
- @if $height == auto {
35
- height: $height;
36
- }
37
- @else if not(unitless($height)) {
38
- height: $height;
39
- }
40
- @else if unitless($height) {
41
- height: $height + px;
42
- }
43
- }
44
- }
@@ -1,34 +0,0 @@
1
- // Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
2
- // Example: @include transition (all, 2.0s, ease-in-out);
3
- // @include transition ((opacity, width), (1.0s, 2.0s), ease-in, (0, 2s));
4
- // @include transition ($property:(opacity, width), $delay: (1.5s, 2.5s));
5
-
6
- @mixin transition ($properties...) {
7
- @if length($properties) >= 1 {
8
- @include prefixer(transition, $properties, webkit moz spec);
9
- }
10
-
11
- @else {
12
- $properties: all 0.15s ease-out 0;
13
- @include prefixer(transition, $properties, webkit moz spec);
14
- }
15
- }
16
-
17
- @mixin transition-property ($properties...) {
18
- -webkit-transition-property: transition-property-names($properties, 'webkit');
19
- -moz-transition-property: transition-property-names($properties, 'moz');
20
- transition-property: transition-property-names($properties, false);
21
- }
22
-
23
- @mixin transition-duration ($times...) {
24
- @include prefixer(transition-duration, $times, webkit moz spec);
25
- }
26
-
27
- @mixin transition-timing-function ($motions...) {
28
- // ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
29
- @include prefixer(transition-timing-function, $motions, webkit moz spec);
30
- }
31
-
32
- @mixin transition-delay ($times...) {
33
- @include prefixer(transition-delay, $times, webkit moz spec);
34
- }
@@ -1,45 +0,0 @@
1
- @mixin triangle ($size, $color, $direction) {
2
- height: 0;
3
- width: 0;
4
-
5
- @if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
6
- border-color: transparent;
7
- border-style: solid;
8
- border-width: $size / 2;
9
-
10
- @if $direction == up {
11
- border-bottom-color: $color;
12
-
13
- } @else if $direction == right {
14
- border-left-color: $color;
15
-
16
- } @else if $direction == down {
17
- border-top-color: $color;
18
-
19
- } @else if $direction == left {
20
- border-right-color: $color;
21
- }
22
- }
23
-
24
- @else if ($direction == up-right) or ($direction == up-left) {
25
- border-top: $size solid $color;
26
-
27
- @if $direction == up-right {
28
- border-left: $size solid transparent;
29
-
30
- } @else if $direction == up-left {
31
- border-right: $size solid transparent;
32
- }
33
- }
34
-
35
- @else if ($direction == down-right) or ($direction == down-left) {
36
- border-bottom: $size solid $color;
37
-
38
- @if $direction == down-right {
39
- border-left: $size solid transparent;
40
-
41
- } @else if $direction == down-left {
42
- border-right: $size solid transparent;
43
- }
44
- }
45
- }
@@ -1,15 +0,0 @@
1
- {
2
- "name": "Engineering",
3
- "description": "Heroku engineering blog",
4
- "website": "https://engineering.heroku.com/",
5
- "repository": "https://github.com/heroku/engineering",
6
- "success_url": "/",
7
- "buildpacks": [
8
- {
9
- "url": "https://github.com/dmathieu/heroku-buildpack-jekyll.git"
10
- },
11
- {
12
- "url": "https://github.com/hone/heroku-buildpack-static"
13
- }
14
- ]
15
- }
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- cat | fold -s -w 72 | sed -e 's/“/"/' | sed -e 's/”/"/'
@@ -1,15 +0,0 @@
1
- #!/bin/bash
2
-
3
- if [ -z "$DEPLOY" ]; then
4
- echo "Missing DEPLOY" 1>&2; exit 1
5
- fi
6
-
7
- set -exo pipefail
8
-
9
- heroku create -r $DEPLOY heroku-engineering-$DEPLOY
10
-
11
- heroku buildpacks:add https://github.com/dmathieu/heroku-buildpack-jekyll.git -r $DEPLOY
12
- heroku buildpacks:add https://github.com/hone/heroku-buildpack-static.git -r $DEPLOY
13
-
14
- git push $DEPLOY $(git rev-parse --abbrev-ref HEAD):master
15
- heroku open -r $DEPLOY
@@ -1,34 +0,0 @@
1
- ---
2
- layout: null
3
- ---
4
- <?xml version="1.0" encoding="UTF-8"?>
5
- <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6
- <channel>
7
- <title>{{ site.title | xml_escape }}</title>
8
- <description>{{ site.description | xml_escape }}</description>
9
- <link>{{ site.url }}{{ site.baseurl }}/</link>
10
- <atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
11
- <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
12
- <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
13
- <generator>Jekyll v{{ jekyll.version }}</generator>
14
-
15
- {% for post in site.posts limit:10 %}
16
- <item>
17
- <title>{{ post.title | xml_escape }}</title>
18
- <description>{{ post.content | xml_escape }}</description>
19
- <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
20
- <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
21
- <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
22
-
23
- {% for tag in post.tags %}
24
- <category>{{ tag | xml_escape }}</category>
25
- {% endfor %}
26
-
27
- {% for cat in post.categories %}
28
- <category>{{ cat | xml_escape }}</category>
29
- {% endfor %}
30
-
31
- </item>
32
- {% endfor %}
33
- </channel>
34
- </rss>
@@ -1,40 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <div class="row">
6
- <div class="col-xs-12">
7
- <h1>Heroku Engineering Blog</h1>
8
- </div>
9
-
10
- {% for post in site.posts %}
11
- <div class="col-xs-12">
12
- <article>
13
- <div class="row">
14
- <div class="col-xs-12 col-md-6">
15
- <header>
16
- <h2><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
17
- <div class="byline">
18
- <time>{{ post.date | date: "%B %-d, %Y" }}</time>
19
-
20
- {% if post.author_name %}
21
- by {{ post.author_name }}
22
- {% endif %}
23
- </div>
24
- </header>
25
- </div>
26
- <div class="col-xs-12 col-md-6">
27
- {{ post.excerpt }}
28
- <a href="{{ post.url | prepend: site.baseurl }}">Read more →</a>
29
- </div>
30
- </div>
31
- </article>
32
- </div>
33
- {% endfor %}
34
- </div>
35
-
36
- <div id="feeds" style="margin-top:30px">
37
- <p>
38
- Subscribe to the <a title="Full-text RSS feed" href="/feed.xml">full-text</a> feed.
39
- </p>
40
- </div>
@@ -1,3 +0,0 @@
1
- {
2
- "https_only": true
3
- }