Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Jan 11, 2024
1 parent 935232a commit 45b3969
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 8 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
title: Bundle
description: Effortless page specific JavaScript modules in Laravel/Livewire apps
remote_theme: just-the-docs/just-the-docs
color_scheme: dark

url: https://gwleuverink.github.io/bundle

aux_links: # remove if you don't want this link to appear on your pages
Github: https://github.com/gwleuverink/bundle

enable_copy_code_button: true

search_enabled: true
search.heading_level: 3
search.previews: 5
search.button: true

callouts:
note:
title: note
Expand Down
6 changes: 2 additions & 4 deletions docs/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ In order to use this script directly in your blade views, you simply need to imp
If a module supports per method exports, like `lodash` does, it is recomended to import the single method instead of the whole module & only retrieving the desired export later.

```html
<x-bundle import="lodash/filter" as="filter" />
<!-- 25kb -->
<x-bundle import="lodash/filter" as="filter" /> <!-- 25kb -->
<!-- as opposed to -->
<x-bundle import="lodash" as="lodash" />
<!-- 78kb -->
<x-bundle import="lodash" as="lodash" /> <!-- 78kb -->
```

### Artisan commands
Expand Down
2 changes: 1 addition & 1 deletion docs/caveats.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Due to Bun's path remapping behaviour Bundle is not able to split chunks from mo
This will work perfectly fine during development, but this can't be evaluated when compiling all your code for your production environment.

```html
<x-bundle :import="$foo" as="{{ $bar }}" />
<x-bundle :import="$foo" as="{% raw %}{{ $bar }}{% endraw %}" />
```

### Running on a server
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title: Quickstart
[![coverage](https://img.shields.io/codecov/c/github/media-code/workspace?token=ON4MTY8C1B&color=45%2C190%2C65)](https://codecov.io/gh/media-code/workspace)
[![core coverage](https://img.shields.io/codecov/c/github/media-code/workspace-core?label=core%20coverage&token=ON4MTY8C1B&color=45%2C190%2C65)](https://codecov.io/gh/media-code/workspace-core)

Effortless page specific JavaScript modules in Laravel/Livewire apps
Effortless page specific JavaScript modules in Laravel/Livewire apps {: .fs-6 .fw-300}

## Quickstart

Expand Down

0 comments on commit 45b3969

Please sign in to comment.