MPIWG-Jekyll-Plugin 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 02a71631d98a69efcf91ba9db601a82325ef2152
4
+ data.tar.gz: 2c8e9ba8460b5d92359ee3b2292d4062d95f10a8
5
+ SHA512:
6
+ metadata.gz: ac86f35745ad811d09bbbbb514efa1580daa84210cad4bf4fd644b285aec03d9dd6f4388c5acff4b6acfed70bbb3f0211de37405f474de6840f956e923c761c0
7
+ data.tar.gz: 02be00c3b39dab004f815fbb91583bf6ec3fa3ef33d9872221c189b02e00074005f7051a811a8abc1a9293f0ea9faf5dcfac30256657454f29097ae529f5e1bf
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .DS_Store
3
+ .sass-cache/
4
+ .jekyll-cache/
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/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.
@@ -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-Plugin/version"
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "MPIWG-Jekyll-Plugin"
6
+ spec.summary = "Custom functionality for MPIWG Jekyll Microsites"
7
+ spec.description = "Custom functionality for MPIWG Jekyll Microsites"
8
+ spec.version = MpiwgJekyllPlugin::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
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 Plugin
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-Plugin/version.rb
10
+ - add release notes to HISTORY.md
11
+ - build new gem: `gem build MPIWG-Jekyll-Plugin.gemspec`
12
+ - push new version to rubygems.org: `gem push MPIWG-Jekyll-Plugin-${version}.gem`
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
@@ -0,0 +1 @@
1
+ require_relative "../lib/MPIWG-Jekyll-Plugin"
@@ -0,0 +1,25 @@
1
+ ---
2
+ layout: post
3
+ title: "Welcome to Jekyll!"
4
+ date: 2018-02-22 18:29:32 +0000
5
+ categories: jekyll update
6
+ ---
7
+ You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
8
+
9
+ To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
10
+
11
+ Jekyll also offers powerful support for code snippets:
12
+
13
+ {% highlight ruby %}
14
+ def print_hi(name)
15
+ puts "Hi, #{name}"
16
+ end
17
+ print_hi('Tom')
18
+ #=> prints 'Hi, Tom' to STDOUT.
19
+ {% endhighlight %}
20
+
21
+ Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
22
+
23
+ [jekyll-docs]: https://jekyllrb.com/docs/home
24
+ [jekyll-gh]: https://github.com/jekyll/jekyll
25
+ [jekyll-talk]: https://talk.jekyllrb.com/
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
data/index.md ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ # You don't need to edit this file, it's empty on purpose.
3
+ # Edit theme's home layout instead if you wanna make some changes
4
+ # See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
5
+ layout: home
6
+ ---
@@ -0,0 +1,5 @@
1
+ require_relative "MPIWG-Jekyll-Plugin/version"
2
+ require_relative "MPIWG-Jekyll-Plugin/tag"
3
+
4
+ module MpiwgJekyllPlugin
5
+ end
@@ -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,3 @@
1
+ module MpiwgJekyllPlugin
2
+ VERSION = "0.1.12".freeze
3
+ end
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: MPIWG-Jekyll-Plugin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.12
5
+ platform: ruby
6
+ authors:
7
+ - Florian Kräutli
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-11-19 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: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.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: Custom functionality for MPIWG Jekyll Microsites
70
+ email:
71
+ - fkraeutli@mpiwg-berlin.mpg.de
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - 404.html
78
+ - Gemfile
79
+ - LICENSE
80
+ - MPIWG-Jekyll-Plugin.gemspec
81
+ - Makefile
82
+ - README.md
83
+ - _config.yml
84
+ - _plugins/MPIWG-Jekyll-Plugin.rb
85
+ - _posts/2018-02-22-welcome-to-jekyll.markdown
86
+ - about.md
87
+ - index.md
88
+ - lib/MPIWG-Jekyll-Plugin.rb
89
+ - lib/MPIWG-Jekyll-Plugin/tag.rb
90
+ - lib/MPIWG-Jekyll-Plugin/version.rb
91
+ homepage: http://www.mpiwg-berlin.mpg.de
92
+ licenses:
93
+ - MIT
94
+ metadata: {}
95
+ post_install_message:
96
+ rdoc_options: []
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ requirements: []
110
+ rubyforge_project:
111
+ rubygems_version: 2.5.2.3
112
+ signing_key:
113
+ specification_version: 4
114
+ summary: Custom functionality for MPIWG Jekyll Microsites
115
+ test_files: []