jekyll-github-chart 0.1.0 → 0.1.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.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/lib/jekyll-github-chart.rb +1 -1
- data/lib/jekyll-github-chart/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5e4dfea7b6c1b8c421227bf9dc22d26f3abf4868bc84f1d2077e16b71f7148a
|
4
|
+
data.tar.gz: e8b7ae9616b5b343e08e8737f38462ec27729b33e61f8340ad17fdcdb8b6227a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a095a70bb57e2474c1d50566b82f6b30e238deed6f7cbb309866f469b2c542a05e16ea3b39b6d0da83112e9019685681b0f8f3bc177cf53d99ce8f897e4e366
|
7
|
+
data.tar.gz: f5aec9605ca2d911ced890d4f2313577a31a8dbef2b9a19ccdbc075691831c452a764cc08cfd212c4b0741f5b0f06c7948ec86e91974089f84191477434c7393
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Jekyll Github Chart
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/jekyll-github-chart)
|
4
|
+
[](https://rubygems.org/gems/jekyll-github-chart)
|
4
5
|
[](https://tldrlegal.com/license/mit-license)
|
5
6
|
|
6
7
|
This Jekyll plugin provides a tag that takes a Github user and returns either an image or a raw SVG of the contribution graph.
|
@@ -45,7 +46,7 @@ You can call the tag with a the defaults like this.
|
|
45
46
|
This will generate an HTML `img` tag with an SVG encoded as a data URI. For example:
|
46
47
|
|
47
48
|
```
|
48
|
-
<img src='data:image/svg+xml;charset=utf-8,...' class='github-contributions' alt='username
|
49
|
+
<img src='data:image/svg+xml;charset=utf-8,...' class='github-contributions' alt='username Github contributions' />
|
49
50
|
```
|
50
51
|
|
51
52
|
There are 3 color schemes available: `default`, `old`, and `halloween`.
|
@@ -60,6 +61,11 @@ Finally, if you don't want an `img` tag, you can pass a format argument to have
|
|
60
61
|
{% github_chart username halloween raw %}
|
61
62
|
```
|
62
63
|
|
64
|
+
## Example
|
65
|
+
Here's an example using the default parameters.
|
66
|
+
|
67
|
+

|
68
|
+
|
63
69
|
## Special thanks
|
64
70
|
Thanks to [@akerl](https://github.com/akerl) for creating the [githubchart](https://github.com/akerl/githubchart) gem which is the foundation of this plugin.
|
65
71
|
|
data/lib/jekyll-github-chart.rb
CHANGED
@@ -22,7 +22,7 @@ module Jekyll
|
|
22
22
|
encoding = 'charset=utf-8'
|
23
23
|
data = CGI::escape(raw_svg).gsub('+', '%20')
|
24
24
|
|
25
|
-
"<img src='data:#{content_type};#{encoding},#{data}' class='github-contributions' alt='#{@user}
|
25
|
+
"<img src='data:#{content_type};#{encoding},#{data}' class='github-contributions' alt='#{@user} Github contributions' />"
|
26
26
|
end
|
27
27
|
|
28
28
|
Liquid::Template.register_tag('github_chart', self)
|