Skip to content

Commit

Permalink
Merge pull request #6 from kotet/gem
Browse files Browse the repository at this point in the history
make ultralight gem based
  • Loading branch information
kotet authored May 8, 2024
2 parents 85d505f + cb05034 commit f7f2d7c
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ RUN apt-get update && apt-get -y install --no-install-recommends \
make \
zlib1g-dev \
ruby \
ruby-dev
ruby-dev \
curl \
ssh \
ca-certificates \
bash-completion

RUN gem install bundler

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ _site
.jekyll-metadata
Gemfile.lock
vendor/
pkg/
9 changes: 6 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
source 'https://rubygems.org'
gem "github-pages", "~> 228", group: :jekyll_plugins
# frozen_string_literal: true

gem "webrick", "~> 1.8"
source "https://rubygems.org"

gemspec

gem "rake", "~> 13.0"
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
[![Build Status](https://github.com/kotet/ultralight/actions/workflows/build-check.yml/badge.svg)](https://github.com/kotet/ultralight/actions/workflows/build-check.yml)
[![](https://github.com/kotet/ultralight/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/kotet/ultralight/actions/workflows/pages/pages-build-deployment)

![shot](https://user-images.githubusercontent.com/8435623/34344912-0665d490-ea2e-11e7-9bd8-919a6ced2a40.png)
![Screen Shot 2024-05-08 at 22 57 41](https://github.com/kotet/ultralight/assets/8435623/2d624b83-a818-4433-a301-2c7d5c8471ab)

Ultralight is super-lightweight responsive super Jekyll theme.
Inspired by [CNN Lite](https://lite.cnn.com).

It can be hosted on GitHub Pages/IPFS.

[demo1: kotet.jp/ultralight/](https://kotet.jp/ultralight/)
- [demo1: kotet.jp/ultralight/](https://kotet.jp/ultralight/)
- [demo2: kotet.jp/ultralight-demo (gem-based)](https://kotet.jp/ultralight-demo/)

### Output size:

Expand Down
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
task default: %i[]
2 changes: 1 addition & 1 deletion _includes/head/style.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<link rel="stylesheet" href="{% include relative %}/style.css">
<link rel="stylesheet" href="{% include relative %}/assets/style.css">
3 changes: 3 additions & 0 deletions _sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ article {

header,footer {
padding: 10px;
margin-right: auto;
margin-left: auto;
max-width: 1000px;
}

.site-title {
Expand Down
File renamed without changes.
26 changes: 26 additions & 0 deletions ultralight.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Gem::Specification.new do |spec|
spec.name = 'ultralight'
spec.version = '1.0.1'
spec.authors = ['Kotet']
spec.email = ['kotet0418@gmail.com']
spec.summary = 'Lightweight responsive Jekyll theme'
spec.description = 'Super-lightweight responsive super Jekyll theme.'
spec.homepage = 'https://github.com/kotet/ultralight'
spec.license = 'MIT'

spec.files = `git ls-files -z`.split("\x0").select do |f|
f.match(%r!^(assets|_(includes|layouts|sass)/|(LICENSE|README)((\.(txt|md|markdown)|$)))!i)
end

spec.add_dependency 'jekyll', '~> 3.9.5'
spec.add_dependency 'jekyll-sitemap', '~> 1.4'
spec.add_dependency 'jekyll-feed', '~> 0.17'

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'github-pages'
spec.add_development_dependency 'webrick'

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
end

0 comments on commit f7f2d7c

Please sign in to comment.