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 255ca2a1..82b70e68 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 }) => { @@ -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