docs: remove pre-1.0 warning (#293)
This commit is contained in:
@@ -1,27 +1,18 @@
|
|||||||
> **Warning** Not yet 1.0. Many things are subject to change. Documentation is
|
|
||||||
> lacking in many places. Try it out and give us feedback!
|
|
||||||
|
|
||||||
# fresh
|
# fresh
|
||||||
|
|
||||||
<img align="right" src="./www/static/logo.svg" height="150px" alt="the fresh logo: a sliced lemon dripping with juice">
|
<img align="right" src="./www/static/logo.svg" height="150px" alt="the fresh logo: a sliced lemon dripping with juice">
|
||||||
|
|
||||||
The next-gen web framework.
|
The next-gen web framework.
|
||||||
|
|
||||||
Fresh is a web framework that lets you build projects very fast, highly dynamic,
|
Fresh is a next generation web framework, built for speed, reliability, and
|
||||||
and without the need of a build step. Fresh embraces isomorphic JavaScript like
|
simplicity. Some stand out features:
|
||||||
never before. Write a JSX component, have it render on the edge just-in-time,
|
|
||||||
and then enhance it with client side JS for great interactivity.
|
|
||||||
|
|
||||||
Fresh does not have a build step - you write your code, deploy it to
|
- Just-in-time rendering on the edge.
|
||||||
[Deno Deploy](https://deno.com/deploy), and from there everything is handled by
|
- Island based client hydration for maximum interactivity.
|
||||||
the framework.
|
- Zero runtime overhead: no JS is shipped to the client by default.
|
||||||
|
- No build step.
|
||||||
- No build step
|
- No configuration necessary.
|
||||||
- Zero config necessary
|
- TypeScript support out of the box.
|
||||||
- JIT rendering on the edge
|
|
||||||
- Tiny (example is 0-3KB of runtime JS)<sup>1</sup>
|
|
||||||
- Optional client side hydration
|
|
||||||
- TypeScript out of the box
|
|
||||||
- File-system routing à la Next.js
|
- File-system routing à la Next.js
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
@@ -45,8 +36,8 @@ deno task start
|
|||||||
```
|
```
|
||||||
|
|
||||||
To deploy the script to [Deno Deploy](https://deno.com/deploy), push your
|
To deploy the script to [Deno Deploy](https://deno.com/deploy), push your
|
||||||
project to GitHub, create a Fresh project, and link it to **`main.ts`** file in
|
project to GitHub, [create a Deno Deploy project](https://dash.deno.com/new),
|
||||||
the created repository.
|
and link it to the **`main.ts`** file in the root of the created repository.
|
||||||
|
|
||||||
For a more in-depth getting started guide, visit the
|
For a more in-depth getting started guide, visit the
|
||||||
[Getting Started](https://fresh.deno.dev/docs/getting-started) page in the Fresh
|
[Getting Started](https://fresh.deno.dev/docs/getting-started) page in the Fresh
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
/** @jsx h */
|
|
||||||
import { h } from "preact";
|
|
||||||
import { tw } from "@twind";
|
|
||||||
|
|
||||||
export default function WarningBanner() {
|
|
||||||
const warning = tw`bg-yellow-100 border(1 yellow-200) p-4 mb-4`;
|
|
||||||
return (
|
|
||||||
<div class={warning}>
|
|
||||||
⚠️ Do not use Fresh for production usecases yet, unless you are very
|
|
||||||
actively tracking the Fresh repository for updates. The framework is still
|
|
||||||
undergoing very frequent core functionality changes. You can expect a
|
|
||||||
mostly stable release very soon.
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -9,7 +9,6 @@ import { frontMatter, gfm } from "../../utils/markdown.ts";
|
|||||||
import DocsSidebar from "../../components/DocsSidebar.tsx";
|
import DocsSidebar from "../../components/DocsSidebar.tsx";
|
||||||
import Footer from "../../components/Footer.tsx";
|
import Footer from "../../components/Footer.tsx";
|
||||||
import NavigationBar from "../../components/NavigationBar.tsx";
|
import NavigationBar from "../../components/NavigationBar.tsx";
|
||||||
import WarningBanner from "../../components/WarningBanner.tsx";
|
|
||||||
import {
|
import {
|
||||||
SLUGS,
|
SLUGS,
|
||||||
TABLE_OF_CONTENTS,
|
TABLE_OF_CONTENTS,
|
||||||
@@ -213,7 +212,6 @@ function Content(props: { page: Page }) {
|
|||||||
const html = gfm.render(props.page.markdown);
|
const html = gfm.render(props.page.markdown);
|
||||||
return (
|
return (
|
||||||
<main class={main}>
|
<main class={main}>
|
||||||
<WarningBanner />
|
|
||||||
<h1 class={title}>{props.page.title}</h1>
|
<h1 class={title}>{props.page.title}</h1>
|
||||||
<div
|
<div
|
||||||
class={`${body} markdown-body`}
|
class={`${body} markdown-body`}
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import { tw } from "@twind";
|
|||||||
import Counter from "../islands/Counter.tsx";
|
import Counter from "../islands/Counter.tsx";
|
||||||
import LemonDrop from "../islands/LemonDrop.tsx";
|
import LemonDrop from "../islands/LemonDrop.tsx";
|
||||||
import Footer from "../components/Footer.tsx";
|
import Footer from "../components/Footer.tsx";
|
||||||
import WarningBanner from "../components/WarningBanner.tsx";
|
|
||||||
import { Leaf } from "../components/Icons.tsx";
|
import { Leaf } from "../components/Icons.tsx";
|
||||||
import VERSIONS from "../../versions.json" assert { type: "json" };
|
import VERSIONS from "../../versions.json" assert { type: "json" };
|
||||||
|
|
||||||
@@ -159,7 +158,6 @@ function GettingStarted(props: { origin: string }) {
|
|||||||
Getting started
|
Getting started
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<WarningBanner />
|
|
||||||
<p class={tw`text-gray-600`}>
|
<p class={tw`text-gray-600`}>
|
||||||
To get started, make sure you have the{" "}
|
To get started, make sure you have the{" "}
|
||||||
<a href="https://deno.land" class={tw`text-blue-600 hover:underline`}>
|
<a href="https://deno.land" class={tw`text-blue-600 hover:underline`}>
|
||||||
|
|||||||
Reference in New Issue
Block a user