Skip to content

Commit 226d5a7

Browse files
authored
Merge pull request #136 from sifex/misc-fixes
Update dependencies and switch to Bun package manager
2 parents 1791ce3 + 8418943 commit 226d5a7

File tree

8 files changed

+1125
-6619
lines changed

8 files changed

+1125
-6619
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "npm" # See documentation for possible values
8+
- package-ecosystem: "bun" # See documentation for possible values
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "weekly"

.github/workflows/docs.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ jobs:
3131
steps:
3232
- name: Checkout Docs
3333
uses: actions/checkout@v3
34-
- uses: actions/setup-node@v3
34+
- uses: oven-sh/setup-bun@v2
3535
with:
36-
node-version: 18
37-
cache: npm
38-
- run: npm install
36+
bun-version: latest
37+
- run: bun install
3938
- name: Build
40-
run: npm run docs:build
39+
run: bun run docs:build
4140
- name: Lint
42-
run: npm run lint
41+
run: bun run lint
4342

4443
deploy:
4544
if: github.ref == 'refs/heads/main'
@@ -53,13 +52,12 @@ jobs:
5352
steps:
5453
- name: Checkout Docs
5554
uses: actions/checkout@v3
56-
- uses: actions/setup-node@v3
55+
- uses: oven-sh/setup-bun@v2
5756
with:
58-
node-version: 18
59-
cache: npm
60-
- run: npm install
57+
bun-version: latest
58+
- run: bun install
6159
- name: Build
62-
run: npm run docs:build
60+
run: bun run docs:build
6361
- name: Setup Pages
6462
uses: actions/configure-pages@v3
6563
- name: Upload artifact

.vitepress/theme/style/theme.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,14 @@
241241
* -------------------------------------------------------------------------- */
242242

243243
:root {
244-
--vp-font-family-base: "Chinese Quotes", "Inter var", "Inter", ui-sans-serif,
245-
system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
246-
"Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif,
247-
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
248-
--vp-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
249-
Consolas, "Liberation Mono", "Courier New", monospace;
244+
--vp-font-family-base:
245+
"Chinese Quotes", "Inter var", "Inter", ui-sans-serif, system-ui,
246+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
247+
Helvetica, Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
248+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
249+
--vp-font-family-mono:
250+
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
251+
"Liberation Mono", "Courier New", monospace;
250252
}
251253

252254
/**
@@ -258,7 +260,8 @@
258260
--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
259261
--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
260262
--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, 0.12), 0 3px 9px rgba(0, 0, 0, 0.12);
261-
--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
263+
--vp-shadow-5:
264+
0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
262265
}
263266

264267
/**

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,27 @@ The Sigma website is powered by Vitepress. [To learn more about Vitepress, click
2727

2828
### Installation
2929

30-
To install the documentation locally, install NodeJS 16+ and `npm`, and run the following.
30+
To install the documentation locally, install NodeJS 16+ and [`bun`](https://bun.sh/), and run the following.
3131

3232
```bash
33-
npm install
33+
bun install
3434
```
3535

3636
### Running
3737

3838
To start a local preview server of the documentation locally, run the following.
3939

4040
```bash
41-
npm run docs:dev
41+
bun run docs:dev
4242
```
4343

4444
### Building
4545

4646
Finally, to compile the documentation into a bundle locally, run the following.
4747

4848
```bash
49-
npm run docs:build
50-
npm run docs:serve
49+
bun run docs:build
50+
bun run docs:serve
5151
```
5252

5353
### Testing / Linting
@@ -56,10 +56,10 @@ Before contributing to the documentation, please make sure to run the following
5656

5757
```bash
5858
# To run the linter
59-
npm run lint
59+
bun run lint
6060

6161
# To fix any linting issues
62-
npm run lint:fix
62+
bun run lint:fix
6363
```
6464

6565
### Acknowledgement

bun.lock

Lines changed: 1030 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)