You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
+
10
17
## Update Basil API
11
18
12
19
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
18
25
# get all branches
19
26
git fetch -a
20
27
# 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)
21
30
git checkout -b develop origin/develop
22
31
# now make your new branch based on develop
23
32
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
40
49
# push current HEAD to remote
41
50
git push -u origin HEAD
42
51
# Now go to the GitHub UI and create your PR
52
+
# Against the develop branch (not master).
43
53
```
44
54
45
55
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]
54
64
55
65
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.
56
66
67
+
68
+
57
69
To develop locally take a look at the steps below. 👇
58
70
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
60
96
61
97
Most of the Jekyll [liquid magic](https://github.com/Shopify/liquid/wiki/Liquid-for-Designers) happens in `./_source`.
62
98
63
99
To develop in this run:
64
100
65
101
```bash
66
-
# once
67
-
bundle install
68
-
bundle update
69
102
# whenever you want to work on the markup/content
70
103
# (the --limit_posts 1 --incremental flags are needed
71
104
# because we have lots of pages and need to speedup the build)
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:
101
145
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
102
146
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.
0 commit comments