Commit Graph
293 Commits
Author SHA1 Message Date
zhizheng 10400ff130 fix(www): quotes in markdown image alt causing html issues #3002 (#3003)
## Problem:
The problem was reproduced as described in #3002. Chrome DevTools shows
the following error:

props.js:137 Uncaught (in promise) InvalidCharacterError: Failed to
execute 'setAttribute' on 'Element': 'docs-content""' is not a valid
attribute name.
    at j (props.js:137:8)
    at V (index.js:528:5)
    at O (index.js:326:28)
    at I (children.js:97:16)
    at V (index.js:547:4)
    at O (index.js:326:28)
    at I (children.js:97:16)
    at V (index.js:547:4)
    at O (index.js:326:28)
    at I (children.js:97:16)

## Solution:
The issue was resolved by removing the double quotes around docs-content
in the Markdown image description. After this change, the application
resumed normal operation.

## Test:
Deno task ok and local env check

## Close:
close #3002
2025-06-04 19:32:31 +02:00
zhizhengand李嘉图·M·路 a631ae3876 Fix[docs] correct the broken links and errors in migration-guide (#3008)
Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
2025-06-03 13:30:12 +02:00
Marvin Hagemeister e595d35c44 docs: simplify introduction content (#2978)
The original text is a bit wordy. This shortens the introduction content
a bit in our docs.
2025-05-21 11:32:50 +02:00
Brian Knight b6c02b0668 docs: Fix build command in deployment documentation (#2840)
The `Self Contained Executable` instructions in the `Deployment`
documentation contains an error in the sample code.

```sh Terminal
$ deno build
$ deno compile --include static --include _fresh --include deno.json -A main.ts
```

should be:

```sh Terminal
$ deno task build
$ deno compile --include static --include _fresh --include deno.json -A main.ts
```

This PR fixes that.
2025-05-19 13:28:48 +02:00
Sviatoslav M. 1321cda916 docs: update rendering-markdown.md (#2800)
When using deno add @deno/gfm outputs the following:
```
error: @deno/gfm is missing a prefix. Did you mean `deno add jsr:@deno/gfm`?
```
Then when jsr is specified:
```
deno add jsr:@deno/gfm
Add jsr:@deno/gfm@0.10.0
```

deno --version: 2.1.4
2025-05-19 13:20:10 +02:00
zhizhengand李嘉图·M·路 ebe65b035e docs(canary): clean the twind part for canary version (#2966)
## What does this PR do?

This PR cleans all the Twind - related parts in the canary
documentation. Specifically, it removes the Twind - related entries in
the docs/toc.ts file, which streamlines the documentation and eliminates
references to the Twind technology that might no longer be relevant or
in use.

## Problem Being Solved
Outdated Information: Twind removed from fresh v2. Keeping Twind -
related content in the documentation can lead to confusion for new users
who might be using the canary version of Fresh with Tailwind CSS.

## Changes Made
docs/toc.ts:
Removed the "migrating - to - tailwind" entry. 
Removed the "using - twind - v1" entry, which is directly related to
using the Twind v1 version and is no longer needed in the canary
documentation.
Removed the "using - fresh - canary - version" entry, which is no reason
in canary docs

---------

Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
2025-05-16 21:35:56 +02:00
Matt NieldandMarvin Hagemeister 107c25b79a chore: Update links (#2956)
This commit updates several links which are outdated and now redirect to
different URLs on the updated Deno website and documentation.

There are a few dozen instances of URLs starting with
`https:://deno.land/x` and `https:://deno.land/std`. I left these alone
since they are dependencies. Would it make sense to update these from
the versions hosted at `deno.land` to their JSR equivalents, since that
is the new and preferred location of the Deno Standard Library packages
as well as other JavaScript/TypeScript packages used by Deno projects?

For example, the latest version of the Deno Standard Library is now
hosted at `https://jsr.io/@std` instead of `https://deno.land/std`.


![image](https://github.com/user-attachments/assets/7416da3b-3867-4d8f-9a1a-79e6a11ddb46)

---------

Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>
2025-05-15 19:24:27 +02:00
Asher Gomez 8ea3dbeac5 refactor(www): use useSignal() instead of useState() (#2894) 2025-05-12 23:28:46 +02:00
zhizheng 2b0f76be62 docs: improve styling for form submission example (#2899)
![before](https://github.com/user-attachments/assets/3936dcc6-d9f4-49e3-8b53-973a21eaadcd)

![after](https://github.com/user-attachments/assets/8abdb950-6473-4f0a-a27d-4a8b09229a57)

## Changes
- Added border and padding to the search input field for better
visibility
- Added light gray background and border to the search button for better
clickability

## Why
- The original styling makes it difficult to recognize the search input
field and button, as they appear as plain text elements without any
visual distinction.
2025-05-08 11:54:12 +02:00
Luca Casonato 03847e9a33 2.0.0-alpha.26 2024-12-10 16:05:22 +01:00
Ian Bull f1b6b4c401 doc: add information about deno compile (#2783) 2024-12-05 14:04:41 +01:00
Luca Casonato 6ee4551df1 2.0.0-alpha.25 2024-11-08 12:08:56 +01:00
Efe 22af15279d www: Fix block quotes not rendering links (#2712)
- Fixes a bug where block quotes were not able to properly render URLs
in docs (e.g. Info section at
https://fresh.deno.dev/docs/getting-started/create-a-route)
- Replaces existing JSX docs url with the suggested, up-to-date docs url

<img width="775" alt="image"
src="https://github.com/user-attachments/assets/e2e83456-697b-47d5-b074-66e4f287f17a">
2024-10-24 11:13:13 +02:00
Kyle Loveless e651ea514c docs: fix typo in islands/other-island.tsx (#2706)
very minor typo, but should still be fixed
2024-10-15 11:31:01 +02:00
Per Guth 4181ef3263 docs: fix formatting (#2707) 2024-10-15 11:30:29 +02:00
Marvin HagemeisterandLuca Casonato de8f1b0c59 feat: update for Deno 2 (#2655)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-09-30 18:30:30 +02:00
João Victor LopesandMarvin Hagemeister 7e4a22f7af feat(docs): dynamic css use tailwind (#2646)
close #2626

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2024-09-09 09:10:40 +02:00
YCM Jason b93ab3ad12 doc: fix typo (#2634)
a really small one 🤪
2024-09-06 13:10:15 +02:00
Guspan TanadiandMarvin Hagemeister 25d8446253 docs(plugins): twind link example renderAsync (#2625)
Provide by navigating intended link from main branch to twind-ssr.

---------

Co-authored-by: Marvin Hagemeister <marvinhagemeister50@gmail.com>
2024-08-22 09:04:43 +02:00
Marvin Hagemeister ca02bfeba1 docs: Update deno version (#2604)
Fixes https://github.com/denoland/fresh/issues/2603
2024-07-18 13:54:50 +02:00
Behnam (OneSchema) 3f78058ae9 docs: fix typo (#2581)
Looks like the intention was to refer to one of the folders in the given
project structure listing.
2024-07-08 08:53:37 +02:00
Drew Hoffer 9e8be46f79 docs: fix typo on islands page (#2580)
Typo with islands page
2024-07-08 08:52:17 +02:00
Behnam (OneSchema) 43b5a711e6 docs: fix typo (#2582) 2024-07-08 08:48:02 +02:00
Mayank 364810def4 docs: fix typo in migration guide (#2578)
Just a stray underscore 😅
2024-07-05 16:54:58 +02:00
Max Rashes ba8e1d8129 docs: inline plugin example (#2575)
Tackling - https://github.com/denoland/fresh/issues/2546

Basically just inlined the old reference file and removed the islands
and app builder to make it a bit more streamlined.

Could make the example more dry but I'm not working from my normal dev
environment.
2024-07-04 19:42:36 +02:00
Marvin Hagemeister 599efd7350 docs: Add note about opting out of partials (#2572) 2024-07-03 11:44:30 +02:00
Max Rashes 239de3d08a docs: update markdown tutorial to use JSR (#2565)
Small cleanup of how we recommend importing the gfm package (moved to
jsr, old post still works but could be confusing to new users)
2024-07-02 20:29:12 +00:00
Ryan Christian 045ec80e88 docs: Tiny grammar correction (#2563) 2024-06-30 21:50:33 +02:00
Matt Nield 75f680226e docs: fix grammar in documentation (#2561)
Fix grammar errors in documentation
2024-06-30 10:17:56 +02:00
Tsukasa Ueno febbc52727 doc: fix the link to sever configuration (#2526)
I found a dead link on the "Writing tests" page.
2024-06-23 17:43:03 +02:00
IuriandIuriiiiiii 160148c326 docs: remove duplicated word (#2522)
Closes #2518

Co-authored-by: Iuriiiiiii <alex.casas@webtroniclabs.com>
2024-06-18 21:59:57 +00:00
Jordan Tucker 97ac05912c docs: Fix incorrect enctype info on Forms page (#2516)
Fixes #2515

This PR updates the Forms page in the docs with accurate information
about a form's `enctype` attribute.
2024-06-16 22:46:24 +00:00
Max Walters 7caae01b17 docs: fix javascript casing (#2512)
This PR fixes a typo in the word `javascript` in the documentation, and
fixes it to be `JavaScript` instead.
2024-06-10 20:01:44 +00:00
Luca Casonato c3ec742a65 feat: import fresh from fresh (#2479)
Instead of importing as `@fresh/core`.
2024-06-05 14:51:35 +02:00
Duncan Holm 67a3714db3 docs: Fix name of JSR update tool (#2468) 2024-05-25 12:33:28 +02:00
Marvin Hagemeister 5dd854341c www: add back trailing slash handling (#2467)
In Fresh 2 trailing slash handling isn't applied automatically anymore
and I forgot to do that when merging the Fresh 2 code base.

While we're at it, I've added a section for that to our migration guide.
2024-05-25 12:11:13 +02:00
Marvin HagemeisterandLuca Casonato 2b1de48ff1 docs: add Fresh 2 migration guide (#2459)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-05-24 21:09:51 +02:00
Marvin Hagemeister e4981d30ad www: rework docs layout (#2429)
- Re-enable partials
- clean up layout a bit
2024-05-21 17:38:32 +02:00
Sebastian Nomme 586706e24f docs: Update documentation for active link with Tailwind (#2417)
**Proposed change:**
- Document styling for aria-current attribute separately for Tailwind
and Twind.

**Disclaimer:**
I am new to open-source contributions and are unfamiliar with the
process for submitting a pull request. I have found some more areas of
improvement in the Fresh documentation. Should this PR not be
up-to-standards on how to contribute, please guide me in the right
direction. I have a few more suggestions on issues I found while
developing a new Fresh app.

Any guidance would be helpful, either reach out to me on GitHub, Discord
(bastianplsfix) or X (bastianplsfix).

Best,
Sebastian 🦕
2024-05-02 20:45:31 +02:00
Kerim Hudson bc75101dcf docs: using server components in islands (#2416)
After reading the discussion at #2369, this PR introduces a small
addition to the docs which highlights how you can use server components
within islands.

This, coupled with the existing docs, should hopefully give people
enough of an example to understand that islands provide the
interactivity layer, and that server components within them can be
hydrated and made interactive too.

Closes #2369
2024-04-30 14:07:23 +02:00
Kerim Hudson 8e38211257 www: document colocation of route groups (#2413)
This adds in the information regarding co-location of islands and
components from [this blog
post](https://deno.com/blog/fresh-1.4#colocated-islands-components-and-more)
into the main documentation.

A lot of the text is pulled directly from the blog post, but I'm happy
to edit it if need be.

Closes #2305
2024-04-26 16:20:37 +02:00
Marvin Hagemeister 0e5962ce37 www: remov no build step from marketing (#2407)
We've been moving away from that for a couple of months now, so
featuring the "no build step" prominently in our marketing feels wrong.
2024-04-18 17:29:27 +02:00
Casey Ydenberg 5d490c8521 docs: Fix arguments for route component in Upload example (#2396)
Closes #2395
2024-04-08 19:26:50 +02:00
Zisulin MorbrotandAsher Gomez c9ec6bb153 docs: add a PKCE authentication with Supabase example (#2302)
Closes #1217

Adds an example on how to implement the PKCE authentication flow with
Supabase.

I included a link to a repo of mine holding the code to a fully fleshed
out example app as a more comprehensive point of reference, hope that is
ok. In fact, I was thinking of deploying that app on Deno Deploy and add
it to the Showcase section, lmk if that would be a good idea.

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-03-27 15:39:01 +01:00
Luca CasonatoandMarvin Hagemeister 29d582c987 chore: update ahead-of-time build docs for Deno Deploy (#2381)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2024-03-22 22:19:17 +01:00
narumincho 407e4379df doc: Rename _req used to req (#2349)
Where other documents use req, they use the name req instead of _req


https://github.com/denoland/fresh/blob/b7281792a0a5b2674f659514b1e58116fabd6460/docs/latest/concepts/middleware.md?plain=1#L153
2024-03-21 09:32:59 +00:00
Joe Lutz 0ea8b0dbc6 docs: fix wording related to route groups (#2368) 2024-03-18 21:01:58 +00:00
Casey Ydenberg 30a25dd2f3 Docs: Add page about setting raw HTML content (#2189) (#2295)
Closes #2189
2024-03-18 19:11:34 +01:00
Roj 4f671ec961 docs: remove outdated information (#2362) 2024-03-14 15:12:51 +01:00
Marvin Hagemeister a2be1abc6b chore: update Preact to 10.19.6 (#2331) 2024-02-22 10:46:41 +01:00