jekyll-github-plugin 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +16 -0
- data/.gitignore +29 -0
- data/404.html +24 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +74 -0
- data/LICENSE +201 -0
- data/Makefile +36 -0
- data/README.md +43 -0
- data/_config.yml +14 -0
- data/_includes/head.html +18 -0
- data/_plugins/jekyll-github-plugin.rb +1 -0
- data/_posts/2018-02-22-welcome-to-jekyll.markdown +9 -0
- data/about.md +18 -0
- data/assets/css/github-styles.css +136 -0
- data/assets/images/repo.png +0 -0
- data/assets/images/stats.png +0 -0
- data/assets/js/jquery.github.widget.js +26 -0
- data/index.md +6 -0
- data/jekyll-github-plugin.gemspec +19 -0
- data/lib/jekyll-github-plugin.rb +5 -0
- data/lib/jekyll-github-plugin/tag.rb +31 -0
- data/lib/jekyll-github-plugin/version.rb +3 -0
- data/media/capture.png +0 -0
- metadata +123 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6ef13a922e2159f318c0e95218ba1fc6bd3da04a9971d4bcef2af3a56f166a67
|
4
|
+
data.tar.gz: 75f832f123b5fc61f9788e907061eef1bedb32f5cf1f431467f01db39ecd8d27
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d8728de1ce83cfbf50c7c298843611ea27ae75f4d392b45049a9a2a22c7d84b79ae785f60d73c9bb316e91316bd7310bcf999ff39945d8b92e099411c3e01d6b
|
7
|
+
data.tar.gz: ae23f2deee4a6967ab0211017b827a8bbc2b9cb26631dea7b197d8b435142e2c94cb2e0b33dfb68a6acf1fa284a3829b050e62fb4f6f08789c98eb918caf7166
|
data/.editorconfig
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
root = true
|
2
|
+
|
3
|
+
[*]
|
4
|
+
indent_style = space
|
5
|
+
indent_size = 2
|
6
|
+
trim_trailing_whitespace = true
|
7
|
+
insert_final_newline = true
|
8
|
+
|
9
|
+
[*.{md,rb,gemspec},Makefile]
|
10
|
+
charset = utf-8
|
11
|
+
|
12
|
+
[Makefile]
|
13
|
+
indent_style = tab
|
14
|
+
|
15
|
+
[*.md]
|
16
|
+
trim_trailing_whitespace = false
|
data/.gitignore
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# OS X
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
# Jekyll build
|
5
|
+
_site/
|
6
|
+
.jekyll-metadata
|
7
|
+
|
8
|
+
# webstorm
|
9
|
+
.idea/
|
10
|
+
|
11
|
+
# others
|
12
|
+
*.swp
|
13
|
+
|
14
|
+
# site build
|
15
|
+
*.gem
|
16
|
+
*.rbc
|
17
|
+
.bundle
|
18
|
+
.config
|
19
|
+
.sass-cache
|
20
|
+
coverage
|
21
|
+
InstalledFiles
|
22
|
+
lib/bundler/man
|
23
|
+
pkg
|
24
|
+
rdoc
|
25
|
+
spec/reports
|
26
|
+
test/tmp
|
27
|
+
test/version_tmp
|
28
|
+
tmp
|
29
|
+
vendor
|
data/404.html
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<style type="text/css" media="screen">
|
6
|
+
.container {
|
7
|
+
margin: 10px auto;
|
8
|
+
max-width: 600px;
|
9
|
+
text-align: center;
|
10
|
+
}
|
11
|
+
h1 {
|
12
|
+
margin: 30px 0;
|
13
|
+
font-size: 4em;
|
14
|
+
line-height: 1;
|
15
|
+
letter-spacing: -1px;
|
16
|
+
}
|
17
|
+
</style>
|
18
|
+
|
19
|
+
<div class="container">
|
20
|
+
<h1>404</h1>
|
21
|
+
|
22
|
+
<p><strong>Page not found :(</strong></p>
|
23
|
+
<p>The requested page could not be found.</p>
|
24
|
+
</div>
|
data/Gemfile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gem "jekyll", "~> 3.7.2"
|
4
|
+
gem "minima", "~> 2.0"
|
5
|
+
|
6
|
+
group :jekyll_plugins do
|
7
|
+
gem "jekyll-feed", "~> 0.6"
|
8
|
+
end
|
9
|
+
|
10
|
+
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
11
|
+
gem "wdm", "~> 0.1.0" if Gem.win_platform?
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.5.2)
|
5
|
+
public_suffix (>= 2.0.2, < 4.0)
|
6
|
+
colorator (1.1.0)
|
7
|
+
concurrent-ruby (1.0.5)
|
8
|
+
em-websocket (0.5.1)
|
9
|
+
eventmachine (>= 0.12.9)
|
10
|
+
http_parser.rb (~> 0.6.0)
|
11
|
+
eventmachine (1.2.7)
|
12
|
+
ffi (1.9.23)
|
13
|
+
forwardable-extended (2.6.0)
|
14
|
+
http_parser.rb (0.6.0)
|
15
|
+
i18n (0.9.5)
|
16
|
+
concurrent-ruby (~> 1.0)
|
17
|
+
jekyll (3.7.3)
|
18
|
+
addressable (~> 2.4)
|
19
|
+
colorator (~> 1.0)
|
20
|
+
em-websocket (~> 0.5)
|
21
|
+
i18n (~> 0.7)
|
22
|
+
jekyll-sass-converter (~> 1.0)
|
23
|
+
jekyll-watch (~> 2.0)
|
24
|
+
kramdown (~> 1.14)
|
25
|
+
liquid (~> 4.0)
|
26
|
+
mercenary (~> 0.3.3)
|
27
|
+
pathutil (~> 0.9)
|
28
|
+
rouge (>= 1.7, < 4)
|
29
|
+
safe_yaml (~> 1.0)
|
30
|
+
jekyll-feed (0.9.3)
|
31
|
+
jekyll (~> 3.3)
|
32
|
+
jekyll-sass-converter (1.5.2)
|
33
|
+
sass (~> 3.4)
|
34
|
+
jekyll-seo-tag (2.5.0)
|
35
|
+
jekyll (~> 3.3)
|
36
|
+
jekyll-watch (2.0.0)
|
37
|
+
listen (~> 3.0)
|
38
|
+
kramdown (1.16.2)
|
39
|
+
liquid (4.0.0)
|
40
|
+
listen (3.1.5)
|
41
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
42
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
43
|
+
ruby_dep (~> 1.2)
|
44
|
+
mercenary (0.3.6)
|
45
|
+
minima (2.5.0)
|
46
|
+
jekyll (~> 3.5)
|
47
|
+
jekyll-feed (~> 0.9)
|
48
|
+
jekyll-seo-tag (~> 2.1)
|
49
|
+
pathutil (0.16.1)
|
50
|
+
forwardable-extended (~> 2.6)
|
51
|
+
public_suffix (3.0.2)
|
52
|
+
rb-fsevent (0.10.3)
|
53
|
+
rb-inotify (0.9.10)
|
54
|
+
ffi (>= 0.5.0, < 2)
|
55
|
+
rouge (3.1.1)
|
56
|
+
ruby_dep (1.5.0)
|
57
|
+
safe_yaml (1.0.4)
|
58
|
+
sass (3.5.6)
|
59
|
+
sass-listen (~> 4.0.0)
|
60
|
+
sass-listen (4.0.0)
|
61
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
62
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
ruby
|
66
|
+
|
67
|
+
DEPENDENCIES
|
68
|
+
jekyll (~> 3.7.2)
|
69
|
+
jekyll-feed (~> 0.6)
|
70
|
+
minima (~> 2.0)
|
71
|
+
tzinfo-data
|
72
|
+
|
73
|
+
BUNDLED WITH
|
74
|
+
1.16.2
|
data/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2016 Rayco Araña
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
data/Makefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
CWD := $(shell pwd)
|
2
|
+
|
3
|
+
.PHONY: all
|
4
|
+
all: build
|
5
|
+
|
6
|
+
.PHONY: start
|
7
|
+
start:
|
8
|
+
@bundle exec jekyll serve --verbose
|
9
|
+
|
10
|
+
.PHONY: build
|
11
|
+
build: clean
|
12
|
+
@gem build *.gemspec
|
13
|
+
@echo ::: BUILD :::
|
14
|
+
|
15
|
+
.PHONY: install
|
16
|
+
install: deps
|
17
|
+
-@rm -f Gemfile.lock &>/dev/null || true
|
18
|
+
@bundle install
|
19
|
+
@echo ::: INSTALL :::
|
20
|
+
|
21
|
+
.PHONY: push
|
22
|
+
push: build
|
23
|
+
@gem push *.gem
|
24
|
+
@echo ::: PUSH :::
|
25
|
+
|
26
|
+
.PHONY: clean
|
27
|
+
clean:
|
28
|
+
-@rm -rf *.gem &>/dev/null || true
|
29
|
+
@echo ::: CLEAN :::
|
30
|
+
|
31
|
+
.PHONY: deps
|
32
|
+
deps: bundle
|
33
|
+
@echo ::: DEPS :::
|
34
|
+
.PHONY: bundle
|
35
|
+
bundle:
|
36
|
+
@if ! o=$$(which bundle); then gem install bundle jekyll; fi
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# jekyll-github-plugin
|
2
|
+
|
3
|
+
> 💎 Plug-in for jekyll to show a GitHub project in your pages.
|
4
|
+
|
5
|
+
![Capture](media/capture.png)
|
6
|
+
|
7
|
+
## Install
|
8
|
+
|
9
|
+
Add the plug-in to your Jekyll site Gemfile plug-in group:
|
10
|
+
|
11
|
+
```
|
12
|
+
group :jekyll_plugins do
|
13
|
+
...
|
14
|
+
gem "jekyll-github-plugin", "~> 1.0.0"
|
15
|
+
end
|
16
|
+
```
|
17
|
+
|
18
|
+
Copy the required assets to your assets directory:
|
19
|
+
|
20
|
+
```
|
21
|
+
/assets/css/github-styles.css
|
22
|
+
/assets/images/repo.png
|
23
|
+
/assets/images/stats.png
|
24
|
+
/assets/js/jquery.github.widget.js
|
25
|
+
```
|
26
|
+
|
27
|
+
Include in your template head file the following:
|
28
|
+
|
29
|
+
```html
|
30
|
+
<link rel='stylesheet' href='{{ "/assets/css/github-styles.css" | relative_url }}'>
|
31
|
+
<script src='{{ "/assets/js/jquery.github.widget.js" | relative_url }}'/>
|
32
|
+
```
|
33
|
+
|
34
|
+
## Development
|
35
|
+
|
36
|
+
```
|
37
|
+
make start Start Jekyll plugin development server
|
38
|
+
make build Build Jekyll plugin gem
|
39
|
+
make install Install dependancies for Jekyll plugin development server
|
40
|
+
make push Publish Jekyll plugin to rubygems
|
41
|
+
make clean Clean build and development files
|
42
|
+
make deps Install development tools
|
43
|
+
```
|
data/_config.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
title: Your awesome title
|
2
|
+
email: your-email@example.com
|
3
|
+
description: >-
|
4
|
+
Write an awesome description for your new site here. You can edit this
|
5
|
+
line in _config.yml. It will appear in your document head meta (for
|
6
|
+
Google search results) and in your feed.xml site description.
|
7
|
+
baseurl: ""
|
8
|
+
url: ""
|
9
|
+
twitter_username: jekyllrb
|
10
|
+
github_username: jekyll
|
11
|
+
markdown: kramdown
|
12
|
+
theme: minima
|
13
|
+
plugins:
|
14
|
+
- jekyll-feed
|
data/_includes/head.html
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
{%- seo -%}
|
6
|
+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
7
|
+
{%- feed_meta -%}
|
8
|
+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
9
|
+
{%- include google-analytics.html -%}
|
10
|
+
{%- endif -%}
|
11
|
+
|
12
|
+
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
13
|
+
|
14
|
+
<!-- Plug-in requirements -->
|
15
|
+
<link rel="stylesheet" href="{{ "/assets/css/github-styles.css" | relative_url }}">
|
16
|
+
<script src="{{ "/assets/js/jquery.github.widget.js" | relative_url }}"></script>
|
17
|
+
|
18
|
+
</head>
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative "../lib/jekyll-github-plugin"
|
data/about.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: About
|
4
|
+
permalink: /about/
|
5
|
+
---
|
6
|
+
|
7
|
+
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](https://jekyllrb.com/)
|
8
|
+
|
9
|
+
You can find the source code for Minima at GitHub:
|
10
|
+
[jekyll][jekyll-organization] /
|
11
|
+
[minima](https://github.com/jekyll/minima)
|
12
|
+
|
13
|
+
You can find the source code for Jekyll at GitHub:
|
14
|
+
[jekyll][jekyll-organization] /
|
15
|
+
[jekyll](https://github.com/jekyll/jekyll)
|
16
|
+
|
17
|
+
|
18
|
+
[jekyll-organization]: https://github.com/jekyll
|
@@ -0,0 +1,136 @@
|
|
1
|
+
.github-box {
|
2
|
+
font-family:helvetica,arial,sans-serif;
|
3
|
+
font-size:13px;
|
4
|
+
line-height:18px;
|
5
|
+
background:#fafafa;
|
6
|
+
border:1px solid #ddd;
|
7
|
+
color:#666;
|
8
|
+
border-radius:3px
|
9
|
+
}
|
10
|
+
|
11
|
+
.github-box a {
|
12
|
+
color:#4183c4;
|
13
|
+
border:0;
|
14
|
+
text-decoration:none
|
15
|
+
}
|
16
|
+
|
17
|
+
.github-box .github-box-title {
|
18
|
+
position:relative;
|
19
|
+
border-bottom:1px solid #ddd;
|
20
|
+
border-radius:3px 3px 0 0;
|
21
|
+
background:#fcfcfc;
|
22
|
+
background:-moz-linear-gradient(#fcfcfc,#ebebeb);
|
23
|
+
background:-webkit-linear-gradient(#fcfcfc,#ebebeb);
|
24
|
+
}
|
25
|
+
|
26
|
+
.github-box .github-box-title h3 {
|
27
|
+
font-family:helvetica,arial,sans-serif;
|
28
|
+
font-weight:normal;
|
29
|
+
font-size:16px;
|
30
|
+
color:gray;
|
31
|
+
margin:0;
|
32
|
+
padding:10px 10px 10px 30px;
|
33
|
+
background:url('/assets/images/repo.png') 7px center no-repeat
|
34
|
+
}
|
35
|
+
|
36
|
+
.github-box .github-box-title h3 .repo {
|
37
|
+
font-weight:bold
|
38
|
+
}
|
39
|
+
|
40
|
+
.github-box .github-box-title .github-stats {
|
41
|
+
position:absolute;
|
42
|
+
top:8px;
|
43
|
+
right:10px;
|
44
|
+
background:white;
|
45
|
+
border:1px solid #ddd;
|
46
|
+
border-radius:3px;
|
47
|
+
font-size:11px;
|
48
|
+
font-weight:bold;
|
49
|
+
line-height:21px;
|
50
|
+
}
|
51
|
+
|
52
|
+
.github-box .github-box-title .github-stats a {
|
53
|
+
font-family: Helvetica;
|
54
|
+
font-size: 11px;
|
55
|
+
font-weight: 900;
|
56
|
+
display:inline-block;
|
57
|
+
height:21px;
|
58
|
+
color:#666;
|
59
|
+
padding:0 5px 0 18px;
|
60
|
+
background: url('/assets/images/stats.png') no-repeat
|
61
|
+
}
|
62
|
+
|
63
|
+
.github-box .github-box-title .github-stats .watchers {
|
64
|
+
border-right:1px solid #ddd;
|
65
|
+
background-position: 2px 2px;
|
66
|
+
padding-left: 22px;
|
67
|
+
}
|
68
|
+
|
69
|
+
.github-box .github-box-title .github-stats .forks {
|
70
|
+
background-position: 1px -19px;
|
71
|
+
padding-left: 22px;
|
72
|
+
}
|
73
|
+
|
74
|
+
.github-box .github-box-content {
|
75
|
+
padding:10px;
|
76
|
+
font-weight:300
|
77
|
+
}
|
78
|
+
|
79
|
+
.github-box .github-box-content p {
|
80
|
+
margin:0
|
81
|
+
}
|
82
|
+
|
83
|
+
.github-box .github-box-content .link {
|
84
|
+
font-weight:bold
|
85
|
+
}
|
86
|
+
|
87
|
+
.github-box .github-box-download {
|
88
|
+
position:relative;
|
89
|
+
border-top:1px solid #ddd;
|
90
|
+
background:white;
|
91
|
+
border-radius:0 0 3px 3px;
|
92
|
+
padding:10px;
|
93
|
+
}
|
94
|
+
|
95
|
+
.github-box .github-box-download .updated,
|
96
|
+
.github-box .github-box-download .updated span {
|
97
|
+
margin:0;
|
98
|
+
font-size:12px;
|
99
|
+
color:#666;
|
100
|
+
line-height:24px;
|
101
|
+
font-weight:300
|
102
|
+
}
|
103
|
+
|
104
|
+
.github-box .github-box-download .updated strong {
|
105
|
+
font-weight:bold;
|
106
|
+
color:#000
|
107
|
+
}
|
108
|
+
|
109
|
+
.github-box .github-box-download .download {
|
110
|
+
position:absolute;
|
111
|
+
display:block;
|
112
|
+
top:10px;
|
113
|
+
right:10px;
|
114
|
+
line-height:24px;
|
115
|
+
font-size:12px;
|
116
|
+
color:#666;
|
117
|
+
font-weight:bold;
|
118
|
+
text-shadow:0 1px 0 rgba(255,255,255,0.9);
|
119
|
+
padding:0 10px;
|
120
|
+
border:1px solid #ddd;
|
121
|
+
border-bottom-color:#bbb;
|
122
|
+
border-radius:3px;
|
123
|
+
background:#f5f5f5;
|
124
|
+
background:-moz-linear-gradient(#f5f5f5,#e5e5e5);
|
125
|
+
background:-webkit-linear-gradient(#f5f5f5,#e5e5e5);
|
126
|
+
}
|
127
|
+
|
128
|
+
.github-box .github-box-download .download:hover {
|
129
|
+
color:#527894;
|
130
|
+
border-color:#cfe3ed;
|
131
|
+
border-bottom-color:#9fc7db;
|
132
|
+
background:#f1f7fa;
|
133
|
+
background:-moz-linear-gradient(#f1f7fa,#dbeaf1);
|
134
|
+
background:-webkit-linear-gradient(#f1f7fa,#dbeaf1);
|
135
|
+
}
|
136
|
+
|
Binary file
|
Binary file
|
@@ -0,0 +1,26 @@
|
|
1
|
+
jQuery(document).ready(function (d) {
|
2
|
+
d(".github-box").each(function () {
|
3
|
+
var i = d(this);
|
4
|
+
var f = i.data("repo");
|
5
|
+
|
6
|
+
d.ajax({
|
7
|
+
url: "https://api.github.com/repos/" + f,
|
8
|
+
dataType: "jsonp",
|
9
|
+
success: function (n) {
|
10
|
+
var m = n.data,
|
11
|
+
l, o = "unknown";
|
12
|
+
if (m.pushed_at) {
|
13
|
+
l = new Date(m.pushed_at);
|
14
|
+
o = (l.getMonth() + 1) + "-" + l.getDate() + "-" + l.getFullYear()
|
15
|
+
}
|
16
|
+
i.find(".watchers").text(m.watchers);
|
17
|
+
i.find(".forks").text(m.forks);
|
18
|
+
i.find(".description span").text(m.description);
|
19
|
+
i.find(".updated span").html(o);
|
20
|
+
if (m.homepage != null) {
|
21
|
+
i.find(".link").append(d("<a />").attr("href", m.homepage).text(m.homepage))
|
22
|
+
}
|
23
|
+
}
|
24
|
+
})
|
25
|
+
})
|
26
|
+
});
|
data/index.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "jekyll-github-plugin/version"
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = "jekyll-github-plugin"
|
6
|
+
spec.summary = "Plug-in for jekyll to show a GitHub project in your pages."
|
7
|
+
spec.description = "Plug-in for jekyll to show a GitHub project in your pages."
|
8
|
+
spec.version = JekyllGithubPlugin::VERSION
|
9
|
+
spec.authors = ["Rayco Araña"]
|
10
|
+
spec.email = ["me@raycoarana.com"]
|
11
|
+
spec.homepage = "https://github.com/raycoarana/jekyll-github-plugin"
|
12
|
+
spec.licenses = ["Apache-2.0"]
|
13
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|spec|features)/!) }
|
14
|
+
spec.require_paths = ["lib"]
|
15
|
+
spec.add_dependency "jekyll", "~> 3.0"
|
16
|
+
spec.add_development_dependency "rake", "~> 11.0"
|
17
|
+
spec.add_development_dependency "rspec", "~> 3.5"
|
18
|
+
spec.add_development_dependency "rubocop", "~> 0.52"
|
19
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require "jekyll"
|
2
|
+
|
3
|
+
# https://jekyllrb.com/docs/plugins/#tags
|
4
|
+
|
5
|
+
module JekyllGithubPlugin
|
6
|
+
class Tag < Liquid::Tag
|
7
|
+
def initialize(tag_name, text, tokens)
|
8
|
+
super
|
9
|
+
@repo = text.strip()
|
10
|
+
@repoParts = @repo.split("/")
|
11
|
+
@user = @repoParts[0]
|
12
|
+
@repository = @repoParts[1]
|
13
|
+
@userUrl = "http://github.com/#{@user}"
|
14
|
+
@repoUrl = "http://github.com/#{@user}/#{@repository}"
|
15
|
+
end
|
16
|
+
|
17
|
+
def render(context)
|
18
|
+
result = "<div class='github-box repo' data-repo='#{@repo}'>"
|
19
|
+
result << " <div class='github-box-title'>"
|
20
|
+
result << " <h3><a class='owner' href='#{@userUrl}'>#{@user}</a>/<a class='repo' href='#{@repoUrl}'>#{@repository}</a></h3>"
|
21
|
+
result << " <div class='github-stats'><a class='watchers' href='#{@repoUrl}/watchers'>?</a><a class='forks' href='#{@repoUrl}/network/members'>?</a></div>"
|
22
|
+
result << " </div>"
|
23
|
+
result << " <div class='github-box-content'><p class='description'><span></span> — <a href='#{@repoUrl}#readme'>Read More</a></p><p class='link'></p></div>"
|
24
|
+
result << " <div class='github-box-download'><p class='updated'>Latest commit to the <strong>master</strong> branch on <span></span></p><a class='download' href='#{@repoUrl}/zipball/master'>Download as zip</a></div>"
|
25
|
+
result << "</div>"
|
26
|
+
result
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
Liquid::Template.register_tag('github', JekyllGithubPlugin::Tag)
|
data/media/capture.png
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-github-plugin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rayco Araña
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '11.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '11.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.52'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.52'
|
69
|
+
description: Plug-in for jekyll to show a GitHub project in your pages.
|
70
|
+
email:
|
71
|
+
- me@raycoarana.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".editorconfig"
|
77
|
+
- ".gitignore"
|
78
|
+
- 404.html
|
79
|
+
- Gemfile
|
80
|
+
- Gemfile.lock
|
81
|
+
- LICENSE
|
82
|
+
- Makefile
|
83
|
+
- README.md
|
84
|
+
- _config.yml
|
85
|
+
- _includes/head.html
|
86
|
+
- _plugins/jekyll-github-plugin.rb
|
87
|
+
- _posts/2018-02-22-welcome-to-jekyll.markdown
|
88
|
+
- about.md
|
89
|
+
- assets/css/github-styles.css
|
90
|
+
- assets/images/repo.png
|
91
|
+
- assets/images/stats.png
|
92
|
+
- assets/js/jquery.github.widget.js
|
93
|
+
- index.md
|
94
|
+
- jekyll-github-plugin.gemspec
|
95
|
+
- lib/jekyll-github-plugin.rb
|
96
|
+
- lib/jekyll-github-plugin/tag.rb
|
97
|
+
- lib/jekyll-github-plugin/version.rb
|
98
|
+
- media/capture.png
|
99
|
+
homepage: https://github.com/raycoarana/jekyll-github-plugin
|
100
|
+
licenses:
|
101
|
+
- Apache-2.0
|
102
|
+
metadata: {}
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
requirements: []
|
118
|
+
rubyforge_project:
|
119
|
+
rubygems_version: 2.7.7
|
120
|
+
signing_key:
|
121
|
+
specification_version: 4
|
122
|
+
summary: Plug-in for jekyll to show a GitHub project in your pages.
|
123
|
+
test_files: []
|