From 2feaaf0932409ff4aef6d05c20c0a6699a81d763 Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Wed, 8 Jan 2025 16:41:16 -0300 Subject: [PATCH 1/2] fix(vite): adjust code block lang --- docs/rest-api-application/web-application.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/rest-api-application/web-application.mdx b/docs/rest-api-application/web-application.mdx index 255ca2a1..c16bc683 100644 --- a/docs/rest-api-application/web-application.mdx +++ b/docs/rest-api-application/web-application.mdx @@ -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: { @@ -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: { @@ -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 }) => { From 383e3c01f92dbbcfc86075171bb4217839f8f616 Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Wed, 8 Jan 2025 16:44:02 -0300 Subject: [PATCH 2/2] fix(vite): adjust code block lang --- docs/cli-application/commands.mdx | 2 +- docs/rest-api-application/web-application.mdx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/cli-application/commands.mdx b/docs/cli-application/commands.mdx index bdf2dc8c..dfef9a48 100644 --- a/docs/cli-application/commands.mdx +++ b/docs/cli-application/commands.mdx @@ -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" ... } } diff --git a/docs/rest-api-application/web-application.mdx b/docs/rest-api-application/web-application.mdx index c16bc683..82b70e68 100644 --- a/docs/rest-api-application/web-application.mdx +++ b/docs/rest-api-application/web-application.mdx @@ -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 ``` -```edge title="Output in development" +```html title="Output in development" ``` -```edge title="Output in production" +```html title="Output in production" ``` @@ -249,7 +249,7 @@ import.meta.glob(['../img/**']) Now you can reference the images within your Edge templates as follows: -```edge +```html ``` @@ -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