From e0b2133dd13b97f511512f9392c1dbb22289eec8 Mon Sep 17 00:00:00 2001 From: Youssef Raafat Date: Fri, 17 Jan 2020 11:25:38 +0200 Subject: [PATCH] Convert to a Ruby Gem --- .gitignore | 5 +++-- Gemfile | 5 +++-- _config.yml | 16 ++++++++++------ portfolyou-jekyll-theme.gemspec | 22 ++++++++++++++++++++++ 4 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 portfolyou-jekyll-theme.gemspec diff --git a/.gitignore b/.gitignore index 5ba5df3fc..a2a0478ab 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,9 @@ _site/ .jekyll-cache/ .jekyll-metadata -# To generate Gemfile.lock -> use: $ bundle install -# If unknown encoding name CP720 Error occured -> use: $ chcp.com 1252 +# Ruby Gem +*.gem +.bundle Gemfile.lock # Photoshop Documents diff --git a/Gemfile b/Gemfile index 91ceacd3c..b4e2a20bb 100644 --- a/Gemfile +++ b/Gemfile @@ -1,2 +1,3 @@ -source 'https://rubygems.org' -gem 'github-pages', group: :jekyll_plugins \ No newline at end of file +source "https://rubygems.org" + +gemspec diff --git a/_config.yml b/_config.yml index ca1755317..201a2463c 100644 --- a/_config.yml +++ b/_config.yml @@ -11,11 +11,6 @@ repository : YoussefRaafatNasry/portfolYOU # repository metadata on #remote_theme : YoussefRaafatNasry/portfolYOU # uncomment this if you are using it as a remote theme -### Build Settings ### -plugins: - - jemoji - - ### Navbar Settings ### nav_exclude: # Pages with the following paths will be excluded from navbar - 404.html @@ -77,6 +72,14 @@ defaults: values: layout: "element" +### Plugins ### +plugins: + - jekyll-gist + - jekyll-github-metadata + - jekyll-include-cache + - jekyll-paginate + - jemoji + ### Exclude from processing ### exclude: @@ -84,4 +87,5 @@ exclude: - CONTRIBUTING.md - LICENSE - Gemfile - - Gemfile.lock \ No newline at end of file + - portfolyou-jekyll-theme.gemspec + - "*.log" diff --git a/portfolyou-jekyll-theme.gemspec b/portfolyou-jekyll-theme.gemspec new file mode 100644 index 000000000..8b51ef0d3 --- /dev/null +++ b/portfolyou-jekyll-theme.gemspec @@ -0,0 +1,22 @@ +Gem::Specification.new do |spec| + spec.name = "portfolyou-jekyll-theme" + spec.version = "2.2.0" + spec.authors = ["Youssef Raafat"] + spec.email = ["YoussefRaafatNasry@gmail.com"] + + spec.summary = "A beautiful portfolio Jekyll theme." + spec.homepage = "https://github.com/YoussefRaafatNasry/portfolYOU" + spec.license = "MIT" + + spec.metadata["plugin_type"] = "theme" + + spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_layouts|_includes|_sass|LICENSE|README)!i) } + + spec.add_runtime_dependency "jekyll", "~> 3.8" + spec.add_runtime_dependency "jekyll-gist", "~> 1.5" + spec.add_runtime_dependency "jekyll-github-metadata", "~> 2.12" + spec.add_runtime_dependency "jekyll-include-cache", "~> 0.1" + spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" + spec.add_runtime_dependency "jemoji", "~> 0.11" + +end