Skip to content

Commit

Permalink
Convert to a Ruby Gem
Browse files Browse the repository at this point in the history
  • Loading branch information
yousinix committed Jan 17, 2020
1 parent 04f42b2 commit e0b2133
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
source "https://rubygems.org"

gemspec
16 changes: 10 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -77,11 +72,20 @@ defaults:
values:
layout: "element"

### Plugins ###
plugins:
- jekyll-gist
- jekyll-github-metadata
- jekyll-include-cache
- jekyll-paginate
- jemoji


### Exclude from processing ###
exclude:
- README.md
- CONTRIBUTING.md
- LICENSE
- Gemfile
- Gemfile.lock
- portfolyou-jekyll-theme.gemspec
- "*.log"
22 changes: 22 additions & 0 deletions portfolyou-jekyll-theme.gemspec
Original file line number Diff line number Diff line change
@@ -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 = ["[email protected]"]

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

0 comments on commit e0b2133

Please sign in to comment.