Skip to content

Commit 4c613d6

Browse files
committed
✨ Adding Jekyll
0 parents  commit 4c613d6

File tree

19 files changed

+7462
-0
lines changed

19 files changed

+7462
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12.x
15+
- run: npm ci
16+
- run: npm run build --if-present
17+
- run: npm test
18+
- run: npm run semantic-release
19+
env:
20+
GH_TOKEN: ${{ secrets.GPR_AUTH_TOKEN }}
21+
GIT_COMMITTER_NAME: PhearZero
22+
GIT_COMMITTER_EMAIL: github@phearzero.com
23+
GIT_AUTHOR_NAME: PhearZero
24+
GIT_AUTHOR_EMAIL: github@phearzero.com
25+

.github/workflows/rubygems.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Gem
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
name: Build + Publish
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Ruby 2.6
15+
uses: actions/setup-ruby@v1
16+
with:
17+
version: 2.6.x
18+
19+
- name: Publish to GPR
20+
run: |
21+
mkdir -p $HOME/.gem
22+
touch $HOME/.gem/credentials
23+
chmod 0600 $HOME/.gem/credentials
24+
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
25+
gem build *.gemspec
26+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
27+
env:
28+
GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
29+
OWNER: NodeJunkie
30+
31+
- name: Publish to RubyGems
32+
run: |
33+
mkdir -p $HOME/.gem
34+
touch $HOME/.gem/credentials
35+
chmod 0600 $HOME/.gem/credentials
36+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
37+
gem build *.gemspec
38+
gem push *.gem
39+
env:
40+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.gem
2+
.bundle
3+
.jekyll-cache
4+
.sass-cache
5+
_site
6+
Gemfile.lock
7+
.jekyll-metadata
8+
vendor
9+
node_modules
10+
*.iml
11+
.idea

404.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
permalink: /404.html
3+
layout: default
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

Gemfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
source "https://rubygems.org"
2+
gemspec
3+
# Hello! This is where you manage which Jekyll version is used to run.
4+
# When you want to use a different version, change it below, save the
5+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6+
#
7+
# bundle exec jekyll serve
8+
#
9+
# This will help ensure the proper Jekyll version is running.
10+
# Happy Jekylling!
11+
# gem "jekyll", "~> 4.0.0"
12+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
13+
gem "minima", "~> 2.5"
14+
gem "json"
15+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
16+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
17+
gem "github-pages", group: :jekyll_plugins
18+
# If you have any plugins, put them here!
19+
group :jekyll_plugins do
20+
gem "jekyll-feed", "~> 0.12"
21+
gem "jekyll-octicons"
22+
end
23+
24+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
25+
# and associated library.
26+
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
27+
gem "tzinfo", "~> 1.2"
28+
gem "tzinfo-data"
29+
end
30+
31+
# Performance-booster for watching directories on Windows
32+
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
33+

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 NodeJunkie
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 all
13+
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 THE
21+
SOFTWARE.

README.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# NodeJunkie Theme
2+
![RubyGem](https://github.com/NodeJunkie/nodejunkie.github.io/workflows/Gem/badge.svg)
3+
![Node.js CI](https://github.com/NodeJunkie/nodejunkie.github.io/workflows/Node.js%20CI/badge.svg)
4+
5+
# About Us
6+
7+
Just another team who is passionte about ECMA/JavaScript and NodeJS. Anyone is open to join NodeJunkie and contribute
8+
to the packages under the @nodejunkie userspace. If you would like to join the team, please read Contribution Guidelines
9+
and contact one of the @nodejunkie/admins to get the ball rolling
10+
11+
Whenever you commit to this repository, GitHub Pages will run [Jekyll](https://jekyllrb.com/) to rebuild the pages in
12+
your site, from the content in your Markdown files.
13+
14+
<a href="https://github.com/NodeJunkie/nodejunkie.github.io/edit/master/README.md" class="btn btn-github">
15+
<span class="icon"></span>
16+
Edit on GitHub
17+
</a>
18+
19+
## Installation
20+
21+
Add this line to your Jekyll site's `Gemfile`:
22+
23+
```ruby
24+
gem "nodejunkie.github.io"
25+
```
26+
27+
And add this line to your Jekyll site's `_config.yml`:
28+
29+
```yaml
30+
theme: nodejunkie.github.io
31+
```
32+
33+
And then execute:
34+
35+
$ bundle
36+
37+
Or install it yourself as:
38+
39+
$ gem install nodejunkie.github.io
40+
41+
## Usage
42+
43+
See https://pages-themes.github.io/hacker/ as the base example
44+
45+
## Contributing
46+
47+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. 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.
48+
49+
## Development
50+
51+
To set up your environment to develop this theme, run `bundle install`.
52+
53+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
54+
55+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
56+
To add a custom directory to your theme-gem, please edit the regexp in `nodejunkie.github.io.gemspec` accordingly.
57+
58+
## License
59+
60+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
61+
62+
63+
64+
65+
---
66+
67+
## Latest Posts
68+
69+
<ul>
70+
{% for post in site.posts %}
71+
<li>
72+
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
73+
{{ post.excerpt }}
74+
</li>
75+
{% endfor %}
76+
</ul>

_authors/phearzero.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
short_name: phearzero
3+
name: Michael Feher
4+
github: PhearZero
5+
twitter: PhearZero
6+
youtube: PhearZero
7+
position: Owner
8+
---
9+
Hello there!

_config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
email: github@phearzero.com
2+
theme: jekyll-theme-hacker
3+
collections:
4+
authors:
5+
output: true
6+
defaults:
7+
- scope:
8+
path: ""
9+
type: "authors"
10+
values:
11+
layout: "author"
12+
- scope:
13+
path: ""
14+
type: "posts"
15+
values:
16+
layout: "post"
17+
- scope:
18+
path: ""
19+
values:
20+
layout: "default"
21+
plugins:
22+
- jekyll-feed
23+
- jekyll-octicons
24+
exclude:
25+
- .idea/
26+
- nodejunkie.github.io.iml

_data/navigation.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
title: Navigation
2+
links:
3+
- title: Home
4+
link: /
5+
- title: About
6+
link: /about.html
7+
- title: Blog
8+
link: /blog.html
9+
- title: Staff
10+
link: /staff.html

0 commit comments

Comments
 (0)