mpiwg-jekyll-tags 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/Makefile +36 -0
- data/README.md +12 -0
- data/lib/mpiwg-jekyll-tags/tag.rb +17 -0
- data/lib/mpiwg-jekyll-tags/version.rb +3 -0
- data/lib/mpiwg-jekyll-tags.rb +5 -0
- data/mpiwg-jekyll-tags.gemspec +19 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68f9bd6aedd3f1df5150a1966583a171a1e4a908
|
4
|
+
data.tar.gz: 785102101dbe49ce439e98da65ee8c95295330cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cedce4bee98352e43858d830872e8412288e0f346ed9a3b0e9998108ab02b309c2033c9a47c61eb46748b699028972241810031e79601fcba2dc6ed6dce47bfa
|
7
|
+
data.tar.gz: 013fa99282407b8939b3eacd2accd5f2aa1da4842cf6cf66159a04e7c2f68eb7310c09d1531d08ab8a6714cb9329ed3e64ac55e44141a66f2e2875d607ce55e0
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Florian Kräutli <fkraeutli@mpiwg-berlin.mpg.de> (http://www.kraeutli.com
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
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,12 @@
|
|
1
|
+
# MPIWG Jekyll Tags
|
2
|
+
|
3
|
+
> 💎 Custom functionality for MPIWG Jekyll Microsites
|
4
|
+
|
5
|
+
## Development
|
6
|
+
|
7
|
+
To release a new version do the following:
|
8
|
+
|
9
|
+
- increase version number in lib/mpiwg-jekyll-tags/version.rb
|
10
|
+
- add release notes to HISTORY.md
|
11
|
+
- build new gem: `gem build mpiwg-jekyll-tags.gemspec`
|
12
|
+
- push new version to rubygems.org: `gem push mpiwg-jekyll-tags-${version}.gem`
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Jekyll
|
2
|
+
class RenderIntroBlock < Liquid::Tag
|
3
|
+
|
4
|
+
def initialize(tag_name, text, tokens)
|
5
|
+
super
|
6
|
+
@text = text
|
7
|
+
end
|
8
|
+
|
9
|
+
require "kramdown"
|
10
|
+
def render(context)
|
11
|
+
"<p class='intro'>#{ @text }</p>"
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
Liquid::Template.register_tag('intro', Jekyll::RenderIntroBlock)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "mpiwg-jekyll-tags/version"
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = "mpiwg-jekyll-tags"
|
6
|
+
spec.summary = "Custom tags for MPIWG Jekyll Microsites"
|
7
|
+
spec.description = "Custom tags for MPIWG Jekyll Microsites"
|
8
|
+
spec.version = MpiwgJekyllTags::VERSION
|
9
|
+
spec.authors = ["Florian Kräutli"]
|
10
|
+
spec.email = ["fkraeutli@mpiwg-berlin.mpg.de"]
|
11
|
+
spec.homepage = "http://www.mpiwg-berlin.mpg.de"
|
12
|
+
spec.licenses = ["MIT"]
|
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", "~> 4.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
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mpiwg-jekyll-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Kräutli
|
@@ -72,7 +72,16 @@ email:
|
|
72
72
|
executables: []
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
|
-
files:
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- Gemfile
|
78
|
+
- LICENSE
|
79
|
+
- Makefile
|
80
|
+
- README.md
|
81
|
+
- lib/mpiwg-jekyll-tags.rb
|
82
|
+
- lib/mpiwg-jekyll-tags/tag.rb
|
83
|
+
- lib/mpiwg-jekyll-tags/version.rb
|
84
|
+
- mpiwg-jekyll-tags.gemspec
|
76
85
|
homepage: http://www.mpiwg-berlin.mpg.de
|
77
86
|
licenses:
|
78
87
|
- MIT
|