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/)
9
+
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
+
## Update Basil API
11
+
12
+
If there are changes to the API of Basil.js you can update the data on this repo as follows.
# - Pull the Basil.js' branch `develop` with npm from GitHub (eventually this should be the master, not the develop branch).
28
+
# - Generate the file `./build-scripts/api/data.json` from `./node_modules/basiljs/basil.js` using [documentation.js](http://documentation.js.org/).
29
+
# - Generate the following files for the index.
30
+
# + `./_data/categories.json`
31
+
# + `./_data/cats-and-subcats.json`
32
+
# - Also generate all the files for the subpages of `_source/reference`.
33
+
npm run build:api-markup
34
+
# After that you can just commit all the changes and push it the repo again. Netlify will take care of the Jekyll build.
35
+
# Only add the files you really want to.
36
+
# Adding all with `git add .` is acutally not the right way
37
+
# use gits interactive mode or some more specific paths then `.`
38
+
git add -i
39
+
git commit -m "chore: Update Basil.js api to latest state [Add your favorite emoji here]"
40
+
# push current HEAD to remote
41
+
git push -u origin HEAD
42
+
# Now go to the GitHub UI and create your PR
43
+
```
10
44
11
-
## Deploy
45
+
## Development
12
46
13
-
If there are some changed to the API of Basil.js you can update the data on this repo as follows.
47
+
To build these docs we are using [Webpack](https://webpack.js.org/) and [Jekyll](https://jekyllrb.com/). You need both of these to develop on this.
14
48
15
-
npm run build
49
+
- Create a new branch based on branch `develop` (see the code above for a how to 👆).
50
+
- Do your thing
51
+
- Create a pull request against develop
16
52
17
-
This will:
53
+
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.
18
54
19
-
- Pull the branch develop with npm from GitHub.
20
-
- Generate the file `./.bin/api/data.json` from `./node_modules/basiljs/basil.js` using [documentation.js](http://documentation.js.org/).
21
-
- Generate the following files for the index.
22
-
+`./_data/categories.json`
23
-
+`./_data/cats-and-subcats.json`
24
-
- Also generate all the files for the subpages.
55
+
To develop locally take a look at the steps below. 👇
25
56
26
-
After that you can just commit all the changes and push it the repo again. GitHub pages will take care of the jekyll build.
57
+
### Markup + SCSS
27
58
59
+
Most of the Jekyll [liquid magic](https://github.com/Shopify/liquid/wiki/Liquid-for-Designers) happens in `./_source`.
28
60
29
-
## Development
30
-
31
-
To build these docs we are using [Node.js](https://nodejs.org/en/) and [Jekyll](https://jekyllrb.com/). You need both of them installed to develop on this.
61
+
To develop in this run:
32
62
33
-
In the `.bin/` folder you have the scripts to generate the files for the reference. The entry point is `index.js`.
63
+
```bash
64
+
# once
65
+
bundle install
66
+
bundle update
67
+
# whenever you want to work on the markup/content
68
+
# (the --limit_posts 1 --incremental flags are needed
69
+
# because we have lots of pages and need to speedup the build)
0 commit comments