docs: add correct ctx.state example to init and docs (#3147)

- Correct outdated, non-functional and confusing "Removal of <Head>
component" section of migration guide in the docs to be real functional
code that uses Fresh 2 and define helpers correctly
- Added example of ctx.state being used for a head component (title)
because it's something almost every single project will need to know how
to do.
- Small change to define docs use of define.page to be more in line with
its use commonly
- Removed mention of deno-puppeteer - a non-official repository that
hasn't been updated in three years - needing to be installed from
`CONTRIBUTING.md`
This commit is contained in:
Roscoe Rubin-Rottenberg
2025-08-06 00:17:24 +02:00
committed by GitHub
parent b7f1abb0d0
commit a5205b2a8e
3 changed files with 38 additions and 25 deletions
+1 -3
View File
@@ -2,6 +2,4 @@
## Submitting a pull request
First, please be sure to
[install Puppeteer](https://github.com/lucacasonato/deno-puppeteer#installation).
Then, please ensure `deno task ok` is run and successfully passes.
First, please be sure to ensure `deno task ok` is run and successfully passes.