Skip to content

Commit 509ab7f

Browse files
committed
Merge branch 'main' into 2.x
2 parents c2dfdd0 + ccbcd1c commit 509ab7f

21 files changed

+2365
-24
lines changed

.github/workflows/build-branch.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build Branch
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
if: github.ref != 'refs/heads/main'
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
ruby-version: ['2.6', '2.7', '3.0']
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Ruby
16+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
17+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
18+
# uses: ruby/setup-ruby@v1
19+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
20+
with:
21+
ruby-version: ${{ matrix.ruby-version }}
22+
bundler-cache: true
23+
- name: Run tests
24+
run: bundle exec rake

.github/workflows/release-gem.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build Branch
2+
3+
on: [push]
4+
5+
jobs:
6+
release:
7+
if: github.ref == 'refs/heads/main'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Release gem
12+
uses: dawidd6/action-publish-gem@v1
13+
with:
14+
github_token: ${{secrets.GH_CREDENTIALS}}
15+
api_key: ${{secrets.RUBYGEMS_API_KEY}}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
_site
22
.sass-cache
33
.jekyll-metadata
4+
.jekyll-cache
45
Gemfile.lock
56
*.gem
67
*.idea

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ source "https://rubygems.org"
22

33
gem "liquid-md5"
44
gem "jekyll-tagging"
5+
gem "kramdown-parser-gfm"
56

67
gemspec

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ A dark and light theme for Jekyll, inspired by Dash UI for Atom. 🌒☀
55

66
[![Build Status](https://img.shields.io/travis/bitbrain/braingdx/master.svg?logo=travis&style=flat-square)](https://travis-ci.org/bitbrain/jekyll-dash)
77
[![license](https://img.shields.io/github/license/bitbrain/jekyll-dash.svg?style=flat-square)](LICENSE.MD)
8+
[![Gem](https://img.shields.io/gem/v/jekyll-dash.svg?style=flat)](http://rubygems.org/gems/jekyll-dash "View this project in Rubygems")
9+
[![Downloads](https://ruby-gem-downloads-badge.herokuapp.com/jekyll-dash)](https://rubygems.org/gems/jekyll-dash "Number of Gem downloads")
810
---
911
This theme for [Jekyll](https://jekyllrb.com/) has been inspired by [dash-ui](https://atom.io/themes/dash-ui), a dark theme for [Atom](https://atom.io).
1012

@@ -84,7 +86,7 @@ dash:
8486
```
8587
## Using this theme directly on Github Pages
8688

87-
Please keep in mind that Github Pages does only support [a limited list of Jekyll plugins](https://help.github.com/en/articles/configuring-jekyll-plugins#default-plugins). You will be able to use this theme on Github Pages but some functionality might not be available, for example displaying tags. In order to use this theme to a full extend, you have to generate the `_site` externally, for example on [TravisCI](https://travis-ci.org).
89+
Please keep in mind that Github Pages does only support [a limited list of Jekyll plugins](https://pages.github.com/versions/). You will be able to use this theme on Github Pages but some functionality might not be available, for example displaying tags. In order to use this theme to a full extend, you have to generate the `_site` externally, for example on [TravisCI](https://travis-ci.org).
8890

8991
For example, you want to host your own blog on `https://<username>.github.io`. As a result, you require the following repositories:
9092

@@ -121,6 +123,12 @@ gem "liquid-md5"
121123
122124
**Solution**: as described above you have to add the tagging plugin. Additionally, tags do not work natively by Github Pages. You have to build your site on an external CI and push the `_site` artifacts to a hosting repository.
123125

126+
> I am getting an error that Bundler could not find compatible versions for gem
127+
128+
**Solution**
129+
130+
Make sure you are using a version of this theme that is compatible with Jekyll. Version 1.x is only compatible with Jekyll 3.x while Version 2.x is only compatible with Jekyll 4.x.
131+
124132
## Contributing
125133

126134
Bug reports and pull requests are welcome on GitHub at https://github.com/bitbrain/jekyll-dash. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

Rakefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# coding: utf-8
2+
require 'jekyll'
3+
4+
# Extend string to allow for bold text.
5+
class String
6+
def bold
7+
"\033[1m#{self}\033[0m"
8+
end
9+
end
10+
11+
# Rake Jekyll tasks
12+
task :build do
13+
puts 'Building site...'.bold
14+
Jekyll::Commands::Build.process(profile: true)
15+
end
16+
17+
task :clean do
18+
puts 'Cleaning up _site...'.bold
19+
Jekyll::Commands::Clean.process({})
20+
end
21+
22+
task :default => :build

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ dash:
3737

3838
show_author: true
3939

40+
animation_speed: 50
41+
4042
# Build settings
4143
theme: jekyll-dash
4244

@@ -50,3 +52,5 @@ plugins:
5052
# Replaces the default avatar provider (gravatar)
5153
#avatar_source: github
5254
#github_username: bitbrain
55+
#avatar_source: local
56+
#avatar_path: /assets/avatar.png

_includes/author.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
{% capture avatar_image %}
44
https://github.com/{{ site.github_username }}.png
55
{% endcapture %}
6+
{% elsif site.avatar_source == "local" and site.avatar_path %}
7+
{% capture avatar_image %}
8+
{{site.avatar_path}}
9+
{% endcapture %}
610
{% elsif site.plugins contains "liquid-md5" %}
711
{% capture avatar_image %}
812
https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256

_includes/head.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
{%- seo -%}
66
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
77
<link rel="icon" type="image/png" href="{{ "/assets/favicon.png" | relative_url }}" />
8+
<link rel="stylesheet" href="{{ "/assets/css/magnific-popup.css" | relative_url }}">
89
{%- feed_meta -%}
910
{%- if jekyll.environment == 'production' and site.google_analytics -%}
1011
{%- include google-analytics.html -%}
1112
{%- endif -%}
13+
<script src="https://code.jquery.com/jquery-3.2.0.min.js"></script>
14+
<script src="{{ "/assets/js/jquery.magnific-popup.js" | relative_url }}"></script>
1215
</head>

0 commit comments

Comments
 (0)