Commit Graph
26 Commits
Author SHA1 Message Date
madflow 9196656efb docs: fix typo in getting started documentation (#3675)
Corrected the typo 'span' to 'spawn' in the setup instructions.
2026-02-11 14:20:06 +01:00
Brett Chalupa 662f795ae8 feat: add @/ path alias to generated projects (#3562)
Sets up `@/` as the default path alias in newly generated Fresh
projects, following the official Deno documentation guidelines. This
allows developers to use `@/` for absolute imports from the project root
instead of relative paths. This is especially convenient to remove
import that require deeply traversing up the directory tree.

The `@/` alias is now included in the imports section of deno.json for
all new projects, enabling cleaner import statements like:

```
import { Button } from "@/components/Button.tsx";
```

Fixes #3485
2025-10-21 11:24:36 +02:00
fry69 89ae0935b6 docs: troubleshoot dependency installation (#3508)
This adds:
- a short blurb about missing dependencies to the troubleshooting guide
- a hint to this guide in the getting starting page
2025-09-30 11:32:37 +02:00
Marvin Hagemeister 79d8cfc3ed docs: make 2.x the default version (#3369) 2025-09-09 14:36:51 +02:00
Christian Svensson c9b43ea32b feat(docs): add file/language type icons to code blocks (#3162)
I originally wanted to make it clearer the distinction between "files"
and e.g. `` ```tsx foo.tsx `` compared to `` ```sh Terminal `` or ``
```txt Project structure``. I originally started just trying to add a 📝
icon or something. But instead I ended showing file types of all
markdown languages.

I took the file type icons for the SVG's from
https://github.com/vscode-icons/vscode-icons, which has a MIT license.

I think the icons make it a even more clear what the language of the
code snippet is.

I have a follow-up PR for improving code block titles and making
examples more consistent in #3163.


## Comparisons

<details>

<summary><strong>Open &mdash; Before | After</strong></summary>


### TS + Shell icons - Hover tooltips and alt text

<img width="1504" height="639" alt="image"
src="https://github.com/user-attachments/assets/636838a3-f38c-4048-a536-52c1cdd6b6d4"
/>


### TS + Shell icons 2

<img width="1511" height="761" alt="image"
src="https://github.com/user-attachments/assets/2ad6d25c-3995-433a-ad93-162830ca55a1"
/>

### Shell + Dockerfile icons

<img width="1500" height="780" alt="image"
src="https://github.com/user-attachments/assets/88010749-d0d2-4498-9eb2-9bd971e48365"
/>

### Nested blocks + Git icon

<img width="1513" height="634" alt="image"
src="https://github.com/user-attachments/assets/400c27f8-d0b4-40bd-801d-611e1e8a8e36"
/>

</details>
2025-07-31 23:48:00 +02:00
Weverton Marques 958b9528cc docs: fix: Change port to 3000 after setting PORT=3000 (#2828) 2025-07-18 19:14:56 +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
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
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 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
Marvin Hagemeister ca02bfeba1 docs: Update deno version (#2604)
Fixes https://github.com/denoland/fresh/issues/2603
2024-07-18 13:54:50 +02: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
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
Greg Zometa e059a46ea5 docs: getting started - running locally (#2245)
Removes description of changing the port number with the deprecated
`port` property and updates with `server.port`.

![Screenshot 2024-01-12
190452](https://github.com/denoland/fresh/assets/138949169/84ac96b2-6c55-438d-8be1-22184f309a22)
2024-01-13 08:43:33 +01:00
Reed von Redwitz e12e08f146 docs: fix import_map link in creating-a-project (#2218)
closes https://github.com/denoland/fresh/issues/2208
2024-01-08 09:53:36 +00:00
Arno KleinandMarvin Hagemeister 78061e9198 docs: fix link to data-fetching (#2162)
Just a fixed link

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-12-11 08:48:39 +00:00
Casey YdenbergandMarvin Hagemeister 25afcae943 docs: Merge data fetching pages (#1974) (#2107)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-12-07 10:50:50 +01:00
Asher Gomez 6ddef91d95 refactor: replace references of options with config (#1903) 2023-10-11 09:25:03 +02:00
Marvin Hagemeister 01e5f71058 docs: improve admonition styles (#1880) 2023-10-06 22:56:11 +02:00
Josh Gum 3858f5ad03 docs: Add detail to Deno KV auth example (#1665) 2023-09-03 21:54:12 +00:00
Nathan Waldman 794c8ac10c www: fix example routes (#1637) 2023-08-16 14:01:47 +00:00
Marvin Hagemeister 6a599dbed5 www: new fenced code block design (#1629) 2023-08-13 10:52:41 +02:00
Ondřej TučekandAsher Gomez 9b4f7a1ad0 www: rewriting "data fetching" code example (#1603)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-08-08 14:30:37 +02:00
Marvin Hagemeister 2e8460e5c1 www: move latest docs into latest folder (#1522) 2023-07-25 13:42:01 +02:00