Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/accelerate_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
shell: bash -l {0}

steps:
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
node-version: '20'
bun-version: latest

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build_main_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ jobs:
path: notebooks
token: ${{ secrets.token }}

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
node-version: '20'
cache-dependency-path: "kit/package-lock.json"
bun-version: latest

- name: Export ROOT_APT_GET ('apt-get' or 'sudo apt-get')
# Use `sudo` only if running on the base runner.
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ jobs:
git fetch https://github.com/$REPO_OWNER/$PACKAGE.git refs/pull/$PR_NUMBER/merge:refs/remotes/pull/$PR_NUMBER/merge
git checkout refs/remotes/pull/$PR_NUMBER/merge

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
node-version: '20'
cache-dependency-path: "kit/package-lock.json"
bun-version: latest

- name: Export ROOT_APT_GET ('apt-get' or 'sudo apt-get')
# Use `sudo` only if running on the base runner.
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/bump-huggingface-js-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
node-version: "20"
bun-version: latest

- name: Install dependencies
run: npm install
run: bun install
working-directory: ./kit

- name: Update dependencies
run: |
npm install @huggingface/tasks@latest @huggingface/inference@latest
bun add @huggingface/tasks@latest @huggingface/inference@latest
working-directory: ./kit

- name: Check for changes
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/lint-svelte-kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
node-version: "20"
cache: npm
cache-dependency-path: kit/package-lock.json
bun-version: latest

- name: Install dependencies
run: npm ci
run: bun install --frozen-lockfile
working-directory: kit

- name: Checking lint/format errors
run: npm run lint
run: bun run lint
working-directory: kit

- name: Checking type errors
run: npm run check
working-directory: kit
run: bun run check
working-directory: kit
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ Step 1: get latest `huggingface/huggingface.js` by running the command below:

```
cd kit
npm run update-inference-providers
bun run update-inference-providers
```

Step 2: add an icon for the new provider in `kit/src/lib/InferenceSnippet/InferenceSnippet.svelte`.
Expand Down Expand Up @@ -932,8 +932,8 @@ Physics is the natural science that studies matter,[a] its fundamental constitue
3. Install dependencies & run dev mode
```bash
cd doc-builder/kit
npm ci
npm run dev -- --open
bun install --frozen-lockfile
bun run dev --open
```
4. Start developing. See svelte files in `doc-builder/kit/src/lib` for reference. The flow should be:
1. Create a svelte component in `doc-builder/kit/src/lib`
Expand Down
901 changes: 901 additions & 0 deletions kit/bun.lock

Large diffs are not rendered by default.

Loading