-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepping v4
- Loading branch information
Showing
24 changed files
with
9,052 additions
and
589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Enforce Unix newlines | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
env: | ||
CI: true | ||
NODE: 12.x | ||
RUBY: 2.6.x | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set Node.js version | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "${{ env.NODE }}" | ||
|
||
- name: Set up Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: "${{ env.RUBY }}" | ||
|
||
- name: Disable gem docs | ||
run: 'echo "gem: --no-document" > ~/.gemrc' | ||
|
||
- name: Set up Ruby cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-ruby-v${{ env.RUBY }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/ci.yml') }} | ||
restore-keys: | | ||
${{ runner.os }}-ruby-v${{ env.RUBY }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/ci.yml') }} | ||
- name: Set up Bundler | ||
run: gem install bundler -v "~> 1.17" | ||
|
||
- run: ruby --version | ||
- run: gem --version | ||
- run: bundle --version | ||
- run: node --version | ||
- run: npm --version | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: Install bundler dependencies | ||
run: bundle install --deployment --jobs=4 --retry=3 --clean | ||
|
||
- name: Run tests | ||
run: npm test | ||
|
||
- name: Upload docs | ||
uses: actions/upload-artifact@v1 | ||
if: success() && startsWith(github.ref, 'refs/tags/') | ||
with: | ||
name: docs | ||
path: ./_site/ | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Download docs | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: docs | ||
path: ./_site/ | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
emptyCommits: false | ||
personal_token: ${{ secrets.PERSONAL_TOKEN }} | ||
publish_branch: gh-pages | ||
publish_dir: ./_site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": [ | ||
"stylelint-config-twbs-bootstrap/scss" | ||
], | ||
"rules": { | ||
"no-duplicate-selectors": true, | ||
"property-no-vendor-prefix": null, | ||
"value-no-vendor-prefix": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'jekyll', '~> 4.0.0' | ||
gem 'wdm', '~> 0.1.1', :install_if => Gem.win_platform? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.7.0) | ||
public_suffix (>= 2.0.2, < 5.0) | ||
colorator (1.1.0) | ||
concurrent-ruby (1.1.6) | ||
em-websocket (0.5.1) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0.6.0) | ||
eventmachine (1.2.7) | ||
eventmachine (1.2.7-x64-mingw32) | ||
ffi (1.12.2) | ||
ffi (1.12.2-x64-mingw32) | ||
forwardable-extended (2.6.0) | ||
http_parser.rb (0.6.0) | ||
i18n (1.8.2) | ||
concurrent-ruby (~> 1.0) | ||
jekyll (4.0.0) | ||
addressable (~> 2.4) | ||
colorator (~> 1.0) | ||
em-websocket (~> 0.5) | ||
i18n (>= 0.9.5, < 2) | ||
jekyll-sass-converter (~> 2.0) | ||
jekyll-watch (~> 2.0) | ||
kramdown (~> 2.1) | ||
kramdown-parser-gfm (~> 1.0) | ||
liquid (~> 4.0) | ||
mercenary (~> 0.3.3) | ||
pathutil (~> 0.9) | ||
rouge (~> 3.0) | ||
safe_yaml (~> 1.0) | ||
terminal-table (~> 1.8) | ||
jekyll-sass-converter (2.1.0) | ||
sassc (> 2.0.1, < 3.0) | ||
jekyll-watch (2.2.1) | ||
listen (~> 3.0) | ||
kramdown (2.2.1) | ||
rexml | ||
kramdown-parser-gfm (1.1.0) | ||
kramdown (~> 2.0) | ||
liquid (4.0.3) | ||
listen (3.2.1) | ||
rb-fsevent (~> 0.10, >= 0.10.3) | ||
rb-inotify (~> 0.9, >= 0.9.10) | ||
mercenary (0.3.6) | ||
pathutil (0.16.2) | ||
forwardable-extended (~> 2.6) | ||
public_suffix (4.0.4) | ||
rb-fsevent (0.10.3) | ||
rb-inotify (0.10.1) | ||
ffi (~> 1.0) | ||
rexml (3.2.4) | ||
rouge (3.18.0) | ||
safe_yaml (1.0.5) | ||
sassc (2.3.0) | ||
ffi (~> 1.9) | ||
sassc (2.3.0-x64-mingw32) | ||
ffi (~> 1.9) | ||
terminal-table (1.8.0) | ||
unicode-display_width (~> 1.1, >= 1.1.1) | ||
unicode-display_width (1.7.0) | ||
wdm (0.1.1) | ||
|
||
PLATFORMS | ||
ruby | ||
x64-mingw32 | ||
|
||
DEPENDENCIES | ||
jekyll (~> 4.0.0) | ||
wdm (~> 0.1.1) | ||
|
||
BUNDLED WITH | ||
1.17.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# Dependencies | ||
markdown: kramdown | ||
highlighter: pygments | ||
|
||
# Permalinks | ||
permalink: pretty | ||
permalink: pretty | ||
|
||
exclude: | ||
- "node_modules" | ||
- "src" | ||
- "CNAME" | ||
- "gulpfile.js" | ||
- ".sass-cache" | ||
- "Gemfile" | ||
- "Gemfile.lock" | ||
- "html-minifier.json" | ||
- "LICENSE.md" | ||
- "package.json" | ||
- "package-lock.json" | ||
- "README.md" | ||
- "node_modules/" | ||
- "src/" | ||
|
||
sass: | ||
style: compressed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{%- comment -%} | ||
Usage: include example.html content=markup [args], | ||
where content is a capture with the HTML content | ||
|
||
args can be one of the following: | ||
id - null (default) | ||
class - "example" (default) | ||
{%- endcomment -%} | ||
|
||
{%- assign id = include.id -%} | ||
{%- assign class = include.class -%} | ||
|
||
<div{% if id %} id="{{ id }}"{% endif %} class="example{% if class %} {{ class }}{% endif %}"> | ||
{{- include.content | replace: 'https://ghbtns.com/', '' | replace: ' frameborder="0" scrolling="0"' '' -}} | ||
</div> | ||
|
||
{%- highlight html -%} | ||
{{- include.content -}} | ||
{%- endhighlight -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Our bundle CSS files listed here so that we inlcude it in Jekyll | ||
@import "page"; | ||
@import "syntax"; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.