diff --git a/docs/latest/concepts/islands.md b/docs/latest/concepts/islands.md index 5a65765c..c51a8ffa 100644 --- a/docs/latest/concepts/islands.md +++ b/docs/latest/concepts/islands.md @@ -140,7 +140,8 @@ export default function MyIsland({ children, foo }: Props) {

String from props: {foo}

- {" "} + + {" "} number is: {number}.

diff --git a/docs/latest/concepts/middleware.md b/docs/latest/concepts/middleware.md index f232ac39..8733c0e4 100644 --- a/docs/latest/concepts/middleware.md +++ b/docs/latest/concepts/middleware.md @@ -26,7 +26,7 @@ interface State { export async function handler( req: Request, - ctx: MiddlewareHandlerContext + ctx: MiddlewareHandlerContext, ) { ctx.state.data = "myData"; const resp = await ctx.next(); diff --git a/docs/latest/examples/dealing-with-cors.md b/docs/latest/examples/dealing-with-cors.md index d98c0d7a..0f9061a7 100644 --- a/docs/latest/examples/dealing-with-cors.md +++ b/docs/latest/examples/dealing-with-cors.md @@ -27,11 +27,11 @@ export async function handler(req: Request, ctx: MiddlewareHandlerContext) { headers.set("Access-Control-Allow-Credentials", "true"); headers.set( "Access-Control-Allow-Headers", - "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With" + "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With", ); headers.set( "Access-Control-Allow-Methods", - "POST, OPTIONS, GET, PUT, DELETE" + "POST, OPTIONS, GET, PUT, DELETE", ); return resp; @@ -66,11 +66,11 @@ export async function handler(_req: Request, ctx: MiddlewareHandlerContext) { headers.set("Access-Control-Allow-Credentials", "true"); headers.set( "Access-Control-Allow-Headers", - "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With" + "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With", ); headers.set( "Access-Control-Allow-Methods", - "POST, OPTIONS, GET, PUT, DELETE" + "POST, OPTIONS, GET, PUT, DELETE", ); return resp; diff --git a/docs/latest/examples/init-the-server.md b/docs/latest/examples/init-the-server.md index 1e5aad83..358a6088 100644 --- a/docs/latest/examples/init-the-server.md +++ b/docs/latest/examples/init-the-server.md @@ -66,7 +66,7 @@ export class Context { export async function handler( req: Request, - ctx: MiddlewareHandlerContext + ctx: MiddlewareHandlerContext, ) { ctx.state.context = Context.instance(); const resp = await ctx.next(); diff --git a/docs/latest/examples/rendering-markdown.md b/docs/latest/examples/rendering-markdown.md index 1647f81f..8dafdf0f 100644 --- a/docs/latest/examples/rendering-markdown.md +++ b/docs/latest/examples/rendering-markdown.md @@ -30,7 +30,7 @@ export const handler: Handlers = { let rawMarkdown = ""; if (ctx.params.slug === "remote") { const resp = await fetch( - `https://raw.githubusercontent.com/denoland/fresh/main/docs/latest/introduction/index.md` + `https://raw.githubusercontent.com/denoland/fresh/main/docs/latest/introduction/index.md`, ); if (resp.status !== 200) { return ctx.render(undefined); diff --git a/docs/latest/examples/using-csp.md b/docs/latest/examples/using-csp.md index 04365751..5e3b5ee6 100644 --- a/docs/latest/examples/using-csp.md +++ b/docs/latest/examples/using-csp.md @@ -270,8 +270,8 @@ export default function Home(req: Request, ctx: RouteContext) { <>

This page violates our configured CSP. But we don't have a{" "} - RouteConfig enabled, so Fresh doesn't know to use the CSP. - Styles will be applied. + RouteConfig{" "} + enabled, so Fresh doesn't know to use the CSP. Styles will be applied.

diff --git a/docs/latest/examples/using-deno-kv-oauth.md b/docs/latest/examples/using-deno-kv-oauth.md index d97159fb..12f66d2d 100644 --- a/docs/latest/examples/using-deno-kv-oauth.md +++ b/docs/latest/examples/using-deno-kv-oauth.md @@ -122,7 +122,14 @@ available. } ``` -5. Start your project with the necessary environment variables. +5. ⚠️ While Deno KV is still **experimental** you need to add the `--unstable` + option to the `start` task in the `deno.json` file. + + ```json + "start": "deno run -A --watch=static/,routes/ --unstable dev.ts", + ``` + +6. Start your project with the necessary environment variables. ```sh GITHUB_CLIENT_ID=xxx GITHUB_CLIENT_SECRET=xxx deno task start diff --git a/docs/latest/getting-started/adding-interactivity.md b/docs/latest/getting-started/adding-interactivity.md index 2fdcb2cd..c9614d8f 100644 --- a/docs/latest/getting-started/adding-interactivity.md +++ b/docs/latest/getting-started/adding-interactivity.md @@ -53,7 +53,7 @@ export default function Countdown(props: { target: string }) { }, [props.target]); const secondsLeft = Math.floor( - (target.getTime() - now.value.getTime()) / 1000 + (target.getTime() - now.value.getTime()) / 1000, ); // If the target date has passed, we stop counting down. diff --git a/docs/latest/getting-started/fetching-data.md b/docs/latest/getting-started/fetching-data.md index ca5aca22..998c591e 100644 --- a/docs/latest/getting-started/fetching-data.md +++ b/docs/latest/getting-started/fetching-data.md @@ -28,7 +28,7 @@ interface GitHubResponse { export default async function Page(_req: Request, ctx: RouteContext) { const resp = await fetch( - `https://api.github.com/users/${ctx.params.username}` + `https://api.github.com/users/${ctx.params.username}`, ); if (!resp.ok) { diff --git a/docs/latest/getting-started/form-submissions.md b/docs/latest/getting-started/form-submissions.md index eecd1d8d..6c332208 100644 --- a/docs/latest/getting-started/form-submissions.md +++ b/docs/latest/getting-started/form-submissions.md @@ -57,9 +57,7 @@ export default function Page({ data }: PageProps) {
    - {results.map((name) => ( -
  • {name}
  • - ))} + {results.map((name) =>
  • {name}
  • )}
);