www: consistently spell Fresh (#1504)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
# fresh
|
||||
|
||||
<img align="right" src="https://fresh.deno.dev/logo.svg" height="150px" alt="the fresh logo: a sliced lemon dripping with juice">
|
||||
<img align="right" src="https://fresh.deno.dev/logo.svg" height="150px" alt="The Fresh logo: a sliced lemon dripping with juice">
|
||||
|
||||
**Fresh** is a next generation web framework, built for speed, reliability, and
|
||||
simplicity.
|
||||
@@ -70,7 +70,7 @@ We appreciate your help! To contribute, please read our
|
||||
|
||||
## Adding your project to the showcase
|
||||
|
||||
If you feel that your project would be helpful to other fresh users, please
|
||||
If you feel that your project would be helpful to other Fresh users, please
|
||||
consider putting your project on the
|
||||
[showcase](https://fresh.deno.dev/showcase). However, websites that are just for
|
||||
promotional purposes may not be listed.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# fresh project
|
||||
# Fresh project
|
||||
|
||||
### Usage
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ export default function Home() {
|
||||
}
|
||||
```
|
||||
|
||||
In essence, fresh allows you to mix static and interactive parts in your app in
|
||||
In essence, Fresh allows you to mix static and interactive parts in your app in
|
||||
a way that's most optimal for your use app. We'll keep sending only the
|
||||
JavaScript that is needed for the islands to the browser.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: |
|
||||
Routes are the basic building block of fresh applications. They are used to define the behaviour the application when a given path is requested.
|
||||
Routes are the basic building block of Fresh applications. They are used to define the behaviour the application when a given path is requested.
|
||||
---
|
||||
|
||||
At their core, routes describe how a request for a given path should be handled,
|
||||
|
||||
@@ -28,7 +28,7 @@ below.
|
||||
|
||||
To update your dependencies, you have two options:
|
||||
|
||||
- Run the fresh updater to update your project dependencies.
|
||||
- Run the Fresh updater to update your project dependencies.
|
||||
- Manually update the dependency versions in your `deno.json` file.
|
||||
|
||||
### Auto updater
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
description: |
|
||||
Create a new fresh project by running the fresh project creation tool. This
|
||||
scaffolds out the various files and folders a fresh project needs.
|
||||
Create a new Fresh project by running the Fresh project creation tool. This
|
||||
scaffolds out the various files and folders a Fresh project needs.
|
||||
---
|
||||
|
||||
New Fresh projects can be created by using the fresh project creation tool. It
|
||||
New Fresh projects can be created by using the Fresh project creation tool. It
|
||||
will scaffold out a new project with some example files to get you started.
|
||||
|
||||
To create a new project, run:
|
||||
@@ -19,7 +19,7 @@ This will scaffold out the new project, then switch into the newly created
|
||||
directory, and then start the development server.
|
||||
|
||||
This will create a directory containing some files and directories. There are 4
|
||||
files that are strictly necessary to run a fresh project:
|
||||
files that are strictly necessary to run a Fresh project:
|
||||
|
||||
- **`dev.ts`**: This is the development entry point for your project. This is
|
||||
the file that you run to start your project. This file doesn't need to be
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: |
|
||||
Create a new route to a fresh project by creating a new file in the `routes/`
|
||||
Create a new route to a Fresh project by creating a new file in the `routes/`
|
||||
folder.
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: |
|
||||
Deploy a fresh application to Deno Deploy in seconds, making it available on
|
||||
Deploy a Fresh application to Deno Deploy in seconds, making it available on
|
||||
the edge globally - resulting in fantastic user latency worldwide.
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: |
|
||||
Create a dynamic route in fresh by adding a dynamic segment to the route name
|
||||
Create a dynamic route in Fresh by adding a dynamic segment to the route name
|
||||
in the routes' file name on disk: `/greet/[name].tsx`.
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: |
|
||||
To start a fresh project, just run `deno task start`. This will start the
|
||||
To start a Fresh project, just run `deno task start`. This will start the
|
||||
project with default permission flags, in watch mode.
|
||||
---
|
||||
|
||||
@@ -27,7 +27,7 @@ the appropriate flags. You will need to provide permission flags for:
|
||||
using a WebAssembly binary.
|
||||
|
||||
For development, you also want to run with the [`--watch` flag][--watch], so the
|
||||
fresh server will automatically reload whenever you make a change to your code.
|
||||
Fresh server will automatically reload whenever you make a change to your code.
|
||||
By default `--watch` only watches over files in your module graph. Some project
|
||||
files like static files are not part of the module graph, but you probably want
|
||||
to restart/reload whenever you make a change to them too. This can be done by
|
||||
|
||||
@@ -127,7 +127,7 @@ export default function Home() {
|
||||
src="/logo.svg"
|
||||
width="128"
|
||||
height="128"
|
||||
alt="the fresh logo: a sliced lemon dripping with juice"
|
||||
alt="the Fresh logo: a sliced lemon dripping with juice"
|
||||
/>
|
||||
<h1 class="text-4xl font-bold">Welcome to fresh</h1>
|
||||
<p class="my-4">
|
||||
@@ -217,7 +217,7 @@ export default function Error404() {
|
||||
src="/logo.svg"
|
||||
width="128"
|
||||
height="128"
|
||||
alt="the fresh logo: a sliced lemon dripping with juice"
|
||||
alt="the Fresh logo: a sliced lemon dripping with juice"
|
||||
/>
|
||||
<h1 class="text-4xl font-bold">404 - Page not found</h1>
|
||||
<p class="my-4">
|
||||
|
||||
@@ -143,7 +143,7 @@ function _walkInner(
|
||||
? markerStack[markerStack.length - 1]
|
||||
: null;
|
||||
|
||||
// We use comment nodes to mark fresh islands and slots
|
||||
// We use comment nodes to mark Fresh islands and slots
|
||||
if (isCommentNode(sib)) {
|
||||
let comment = sib.data;
|
||||
if (comment.startsWith("!--")) {
|
||||
|
||||
@@ -529,7 +529,7 @@ export class ServerContext {
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns all routes required by fresh as an extended
|
||||
* This function returns all routes required by Fresh as an extended
|
||||
* path-to-regex, to handler mapping.
|
||||
*/
|
||||
#handlers(): {
|
||||
@@ -865,7 +865,7 @@ export class ServerContext {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a router that contains all fresh routes. Should be mounted at
|
||||
* Returns a router that contains all Fresh routes. Should be mounted at
|
||||
* constants.INTERNAL_PREFIX
|
||||
*/
|
||||
#bundleAssetRoute = (): router.MatchHandler => {
|
||||
|
||||
@@ -60,7 +60,7 @@ if (denoJson.importMap) {
|
||||
await Deno.remove(IMPORT_MAP_PATH);
|
||||
}
|
||||
|
||||
// Add fresh lint preset
|
||||
// Add Fresh lint preset
|
||||
if (!denoJson.lint) {
|
||||
denoJson.lint = {};
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# fresh website
|
||||
# Fresh website
|
||||
|
||||
This is the fresh website source. The fresh website contains:
|
||||
This is the Fresh website source. The Fresh website contains:
|
||||
|
||||
- a homepage
|
||||
- a documentation page
|
||||
|
||||
@@ -20,7 +20,7 @@ export default function Footer() {
|
||||
<footer class="border-t-2 border-gray-200 bg-gray-100 md:h-16 flex gap-4 justify-center">
|
||||
<div class="flex flex-col sm:flex-row gap-4 justify-between items-center max-w-screen-xl mx-auto w-full px(4 sm:6 md:8) p-4">
|
||||
<div class="text(gray-600 center)">
|
||||
<span>© {new Date().getFullYear()} the fresh authors</span>
|
||||
<span>© {new Date().getFullYear()} the Fresh authors</span>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-8">
|
||||
|
||||
@@ -135,7 +135,7 @@ export const handler: Handlers<Data> = {
|
||||
|
||||
export default function DocsPage(props: PageProps<Data>) {
|
||||
const ogImageUrl = new URL(asset("/home-og.png"), props.url).href;
|
||||
const title = `${props.data.page?.title ?? "Not Found"} | fresh docs`;
|
||||
const title = `${props.data.page?.title ?? "Not Found"} | Fresh docs`;
|
||||
let description = "Fresh Document";
|
||||
|
||||
if (props.data.page.data.description) {
|
||||
|
||||
@@ -33,7 +33,7 @@ export const handler: Handlers = {
|
||||
},
|
||||
};
|
||||
|
||||
const TITLE = "fresh - The next-gen web framework.";
|
||||
const TITLE = "Fresh - The next-gen web framework.";
|
||||
const DESCRIPTION =
|
||||
"Just in time edge rendering, island based interactivity, and no configuration TypeScript support using Deno.";
|
||||
|
||||
@@ -182,7 +182,7 @@ function Intro(props: { origin: string }) {
|
||||
src="/illustration/lemon-squash.svg"
|
||||
width={800}
|
||||
height={678}
|
||||
alt="deno is drinking fresh lemon squash"
|
||||
alt="Deno is drinking Fresh lemon squash"
|
||||
/>
|
||||
</picture>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ export const handler: Handlers = {
|
||||
|
||||
if (response.status === 404) {
|
||||
return new Response(
|
||||
"404: Not Found. The requested fresh release or file do not exist.",
|
||||
"404: Not Found. The requested Fresh release or file do not exist.",
|
||||
{ status: 404 },
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user