Skip to content

Commit 1e8361f

Browse files
committed
Merge branch 'develop'
2 parents 74a1258 + f3b9af7 commit 1e8361f

File tree

139 files changed

+19352
-6445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+19352
-6445
lines changed

.eslintrc.js

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
module.exports = {
2-
extends: [
3-
'unobtrusive',
4-
'eslint:recommended'
5-
],
6-
plugins: ['babel'],
7-
env: {
8-
browser: true,
9-
node: true,
10-
},
11-
globals: {
12-
},
13-
rules: {
14-
semi: [2, 'always'],
15-
quotes: [2, 'single'],
16-
indent: [2, 2],
17-
'linebreak-style': [2, 'unix'],
18-
'brace-style': [2, '1tbs'],
19-
'array-bracket-spacing': [2, 'never'],
20-
camelcase: [2, {properties: 'always'}],
21-
'keyword-spacing': [2],
22-
'eol-last': [2],
23-
'no-trailing-spaces': [2],
24-
'no-process-env': ['off', 'always'],
25-
'no-console': ['off','always']
26-
}
27-
};
2+
extends: ["unobtrusive", "eslint:recommended"],
3+
plugins: ["babel"],
4+
env: {
5+
browser: true,
6+
node: true
7+
},
8+
globals: {},
9+
rules: {
10+
semi: [2, "always"],
11+
quotes: [2, "double"],
12+
indent: [2, 2],
13+
"linebreak-style": [2, "unix"],
14+
"brace-style": [2, "1tbs"],
15+
"array-bracket-spacing": [2, "never"],
16+
camelcase: [2, { properties: "always" }],
17+
"keyword-spacing": [2],
18+
"eol-last": [2],
19+
"no-trailing-spaces": [2],
20+
"no-process-env": ["off", "always"],
21+
"no-console": ["off", "always"]
22+
}
23+
};

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Tests
5+
6+
on:
7+
push:
8+
pull_request:
9+
branches: [ master, develop ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [10.x, 12.x]
19+
20+
steps:
21+
- uses: actions/setup-ruby@v1
22+
with:
23+
ruby-version: '2.6'
24+
- uses: actions/checkout@v2
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
30+
- run: gem install bundler
31+
- run: bundle install
32+
- run: npm ci
33+
- run: npm run build --if-present
34+
- run: npm test
35+
env:
36+
CI: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
package-lock.json
33
node_modules
44
test/report.txt
5+
.vscode
56

67
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
78
# Created by https://www.gitignore.io/api/jekyll,node

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 2.6.2

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ruby RUBY_VERSION
99
#
1010
# This will help ensure the proper Jekyll version is running.
1111
# Happy Jekylling!
12-
gem "jekyll", "3.8.5"
12+
gem "jekyll", "~> 4.0.0"
1313

1414

1515
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and

Gemfile.lock

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,72 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.5.2)
5-
public_suffix (>= 2.0.2, < 4.0)
4+
addressable (2.7.0)
5+
public_suffix (>= 2.0.2, < 5.0)
66
colorator (1.1.0)
7-
concurrent-ruby (1.1.3)
7+
concurrent-ruby (1.1.6)
88
em-websocket (0.5.1)
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0.6.0)
1111
eventmachine (1.2.7)
12-
ffi (1.9.25)
12+
ffi (1.12.2)
1313
forwardable-extended (2.6.0)
1414
http_parser.rb (0.6.0)
15-
i18n (0.9.5)
15+
i18n (1.8.2)
1616
concurrent-ruby (~> 1.0)
17-
jekyll (3.8.5)
17+
jekyll (4.0.0)
1818
addressable (~> 2.4)
1919
colorator (~> 1.0)
2020
em-websocket (~> 0.5)
21-
i18n (~> 0.7)
22-
jekyll-sass-converter (~> 1.0)
21+
i18n (>= 0.9.5, < 2)
22+
jekyll-sass-converter (~> 2.0)
2323
jekyll-watch (~> 2.0)
24-
kramdown (~> 1.14)
24+
kramdown (~> 2.1)
25+
kramdown-parser-gfm (~> 1.0)
2526
liquid (~> 4.0)
2627
mercenary (~> 0.3.3)
2728
pathutil (~> 0.9)
28-
rouge (>= 1.7, < 4)
29+
rouge (~> 3.0)
2930
safe_yaml (~> 1.0)
30-
jekyll-feed (0.11.0)
31-
jekyll (~> 3.3)
32-
jekyll-sass-converter (1.5.2)
33-
sass (~> 3.4)
34-
jekyll-watch (2.1.2)
31+
terminal-table (~> 1.8)
32+
jekyll-feed (0.13.0)
33+
jekyll (>= 3.7, < 5.0)
34+
jekyll-sass-converter (2.1.0)
35+
sassc (> 2.0.1, < 3.0)
36+
jekyll-watch (2.2.1)
3537
listen (~> 3.0)
36-
kramdown (1.17.0)
37-
liquid (4.0.1)
38-
listen (3.1.5)
39-
rb-fsevent (~> 0.9, >= 0.9.4)
40-
rb-inotify (~> 0.9, >= 0.9.7)
41-
ruby_dep (~> 1.2)
38+
kramdown (2.1.0)
39+
kramdown-parser-gfm (1.1.0)
40+
kramdown (~> 2.0)
41+
liquid (4.0.3)
42+
listen (3.2.1)
43+
rb-fsevent (~> 0.10, >= 0.10.3)
44+
rb-inotify (~> 0.9, >= 0.9.10)
4245
mercenary (0.3.6)
4346
pathutil (0.16.2)
4447
forwardable-extended (~> 2.6)
45-
public_suffix (3.0.3)
48+
public_suffix (4.0.3)
4649
rb-fsevent (0.10.3)
47-
rb-inotify (0.9.10)
48-
ffi (>= 0.5.0, < 2)
49-
rouge (3.3.0)
50-
ruby_dep (1.5.0)
51-
safe_yaml (1.0.4)
52-
sass (3.7.2)
53-
sass-listen (~> 4.0.0)
54-
sass-listen (4.0.0)
55-
rb-fsevent (~> 0.9, >= 0.9.4)
56-
rb-inotify (~> 0.9, >= 0.9.7)
50+
rb-inotify (0.10.1)
51+
ffi (~> 1.0)
52+
rouge (3.17.0)
53+
safe_yaml (1.0.5)
54+
sassc (2.2.1)
55+
ffi (~> 1.9)
56+
terminal-table (1.8.0)
57+
unicode-display_width (~> 1.1, >= 1.1.1)
58+
unicode-display_width (1.7.0)
5759

5860
PLATFORMS
5961
ruby
6062

6163
DEPENDENCIES
62-
jekyll (= 3.8.5)
64+
jekyll (~> 4.0.0)
6365
jekyll-feed (~> 0.6)
6466
tzinfo-data
6567

6668
RUBY VERSION
67-
ruby 2.6.0p0
69+
ruby 2.6.2p47
6870

6971
BUNDLED WITH
70-
1.17.3
72+
2.1.4

README.md

Lines changed: 54 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ Hosted on:
77
[![Netlify Badge](https://www.netlify.com/img/global/badges/netlify-color-accent.svg)](https://basiljs2.netlify.com/)
88

99
This repo holds the [site/docs for Basil.js](https://basiljs.github.io/). The current state of development (develop branch) can be found here [basiljs2.netlify.com](https://basiljs2.netlify.com/)
10+
11+
## Prerequisits
12+
13+
- Ruby >= 2.6
14+
- Ruby Bundler
15+
- Node.js >= 10
16+
1017
## Update Basil API
1118

1219
If there are changes to the API of Basil.js you can update the data on this repo as follows.
@@ -18,6 +25,8 @@ cd basiljs.github.io
1825
# get all branches
1926
git fetch -a
2027
# get into the develop branch
28+
# this is currently the one that serves the page
29+
# your pull request should also be against develop not master (at the moment)
2130
git checkout -b develop origin/develop
2231
# now make your new branch based on develop
2332
git checkout -b chore/update-docs
@@ -40,6 +49,7 @@ git commit -m "chore: Update Basil.js api to latest state [Add your favorite emo
4049
# push current HEAD to remote
4150
git push -u origin HEAD
4251
# Now go to the GitHub UI and create your PR
52+
# Against the develop branch (not master).
4353
```
4454

4555
This repo holds the [site/docs for Basil.js](https://basiljs.github.io/). The current state of development (develop branch) can be found here [basiljs2.netlify.com](https://basiljs2.netlify.com/)
@@ -54,37 +64,71 @@ To build these docs we are using [Webpack](https://webpack.js.org/) and [Jekyll]
5464

5565
Netlify will create a branch and deploy preview for you and you can see your changes online. Every push to your branch will trigger a new build and will be linked on the PR page.
5666

67+
68+
5769
To develop locally take a look at the steps below. 👇
5870

59-
### Markup + SCSS
71+
### Setup
72+
73+
```bash
74+
# Ruby/Jekyll setup
75+
gem install bundler
76+
bundle install
77+
78+
79+
# Node Webpack setup
80+
npm install
81+
# or
82+
npm ci
83+
```
84+
85+
### Markup & SCSS & JS
86+
87+
To run the full development process you need to run Webpack and Jekyll side by side. They are combined in a script call `dev`.
88+
89+
```bash
90+
npm run dev
91+
```
92+
93+
Your site will be served from [http://0.0.0.0:4000](http://0.0.0.0:4000)
94+
95+
### Markup
6096

6197
Most of the Jekyll [liquid magic](https://github.com/Shopify/liquid/wiki/Liquid-for-Designers) happens in `./_source`.
6298

6399
To develop in this run:
64100

65101
```bash
66-
# once
67-
bundle install
68-
bundle update
69102
# whenever you want to work on the markup/content
70103
# (the --limit_posts 1 --incremental flags are needed
71104
# because we have lots of pages and need to speedup the build)
72105
bundle exec jekyll serve --livereload --limit_posts 1 --incremental
106+
# in a second shell session run
73107
```
74108

75-
### Javascript
109+
### Javascript + SCSS
76110

77-
To work on the Javasscript of the site you need to run
111+
To work on the Javascript and SCSS of the site you need to run
78112

79113
```bash
80-
# once
81-
# needs npm v5.7 or higer
82-
npm ci
83114
# when you develop on it
84115
# (starts the webpack dev watch build toolchain)
85116
npm run webpack:dev
86117
```
87118

119+
## Gallery Content
120+
121+
To add a new gallery item you can duplicate the folder `_source/gallery/example-gallery-item`
122+
123+
There Need to be two images present.
124+
125+
1. thumbnail.png with a size of 320 × 180 px (this will be used in the gallery overview)
126+
2. splash.png with a size of 1280 × 720 px (this will be used on the start page if featured is true)
127+
128+
You also should replace all the values in the frontmatter of the `index.md` file.
129+
130+
Please set your project first to `publish: false` and also the `featured: false` to get a review by the maintainers.
131+
88132
## Recipes
89133

90134
Resize and crop multiple images using [`mogrify`](https://www.imagemagick.org/script/mogrify.php)
@@ -96,7 +140,7 @@ mogrify -resize 320x180^ -gravity Center -extent 320x180 -quality 100 -format pn
96140

97141
## License
98142

99-
Copyright (c) 2013-2019 Basil.js
143+
Copyright (c) 2013-2020 Basil.js
100144
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
101145
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
102146
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

_config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ url: "https://basiljs.github.io/" # the base hostname & protocol for your site,
2525
twitter_username: basil_js
2626
github_username: basiljs
2727

28-
sass:
29-
style: compressed
30-
sass_dir: _sass
28+
host: 0.0.0.0
29+
# sass:
30+
# style: compressed
31+
# sass_dir: _sass
3132
# Build settings
3233
markdown: kramdown
3334
# kramdown:
@@ -36,6 +37,7 @@ highlighter: rouge
3637
plugins:
3738
- jekyll-feed
3839
exclude:
40+
- assets/ts
3941
- Gemfile
4042
- Gemfile.lock
4143
- package.json

0 commit comments

Comments
 (0)