Skip to content

Commit

Permalink
Merge pull request #241 from AthennaIO/develop
Browse files Browse the repository at this point in the history
fix(vite): adjust code block lang
  • Loading branch information
jlenon7 authored Jan 8, 2025
2 parents f7ef3ce + 383e3c0 commit 2679535
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/cli-application/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ Now we map our new template in `.athennarc.json`:
{
"templates": {
...
"repository": "./resources/templates/repository.edge"
"repository": "./src/resources/templates/repository.edge"
...
}
}
Expand Down
16 changes: 8 additions & 8 deletions docs/rest-api-application/web-application.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ You can use the `scriptAttributes` property to set attributes
on the script tags generated using the `@vite` tag. The attributes
are a collection of key-value pairs.

```ts title="Path.config('http.ts')"
```typescript title="Path.config('http.ts')"
export default {
vite: {
scriptAttributes: {
Expand All @@ -134,7 +134,7 @@ You can use the `styleAttributes` property to set attributes on
the link tags generated using the `@vite` tag. The attributes
are a collection of key-value pairs.

```ts title="Path.config('http.ts')"
```typescript title="Path.config('http.ts')"
export default {
vite: {
styleAttributes: {
Expand All @@ -147,7 +147,7 @@ export default {
You can also apply the attributes conditionally by assigning a
function to the `styleAttributes` option.

```ts title="Path.config('http.ts')"
```typescript title="Path.config('http.ts')"
export default {
vite: {
styleAttributes: ({ src, url }) => {
Expand Down Expand Up @@ -220,15 +220,15 @@ files processed by Vite. In the following example:
during development.
- Return a URL pointing to the output filename during production.

```edge
```html
<link rel="stylesheet" href="{{ asset('src/resources/css/app.css') }}">
```

```edge title="Output in development"
```html title="Output in development"
<link rel="stylesheet" href="http://localhost:5173/src/resources/css/app.css">
```

```edge title="Output in production"
```html title="Output in production"
<link rel="stylesheet" href="/public/assets/app-3bc29777.css">
```

Expand All @@ -249,7 +249,7 @@ import.meta.glob(['../img/**'])

Now you can reference the images within your Edge templates as follows:

```edge
```html
<img src="{{ asset('src/resources/img/hero.jpg') }}" />
```

Expand All @@ -259,7 +259,7 @@ To enable [react-refresh](https://www.npmjs.com/package/react-refresh) during
development, you must use the `@viteReactRefresh` Edge tag. It should be
written before you include the entrypoints using the `@vite` tag.

```edge
```html
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down

0 comments on commit 2679535

Please sign in to comment.