diff --git a/README.md b/README.md
index d55d79d77fa..09244bec730 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,10 @@
+
+
# The HTML-first framework
Qwik is designed for the fastest possible page load time, by delivering pure HTML with near 0 JavaScript for your pages to become interactive, regardless of how complex your site or app is. It achieves this via [resumability](https://github.com/BuilderIO/qwik/blob/main/packages/docs/src/pages/docs/concepts/resumable.mdx) of HTML and [ultra fine-grained lazy-loading](https://github.com/BuilderIO/qwik/blob/main/packages/docs/src/pages/docs/concepts/progressive.mdx) of code.
diff --git a/cspell.json b/cspell.json
index 2c3933cf3fd..840b5bd78ab 100644
--- a/cspell.json
+++ b/cspell.json
@@ -34,5 +34,5 @@
"Pinterest",
"Serializability"
],
- "enableFiletypes": ["!mdx"]
+ "enableFiletypes": ["mdx"]
}
diff --git a/packages/docs/src/pages/docs/INDEX b/packages/docs/src/pages/docs/INDEX
index c02e0f90f5d..95924c9acdb 100644
--- a/packages/docs/src/pages/docs/INDEX
+++ b/packages/docs/src/pages/docs/INDEX
@@ -5,6 +5,8 @@
- [Overview](overview.mdx)
- [Getting Started](getting-started.mdx)
- [Think Qwik](think-qwik.mdx)
+- [Cheat Sheet](cheat-sheet.mdx)
+
## Component API
@@ -12,10 +14,16 @@
- [Anatomy](components/anatomy.mdx)
- [Hooks](components/hooks.mdx)
- [Events](components/events.mdx)
-- [Lite elements](components/lite-components.mdx)
+- [Context](components/context.mdx)
+- [Lite components](components/lite-components.mdx)
- [Content projection](components/projection.mdx)
- [Rendering](components/rendering.mdx)
+## Cheat Sheet
+
+- [Components](cheat/components.mdx)
+- [Serialization](cheat/serialization.mdx)
+
## Concepts
- [Resumable](concepts/resumable.mdx)
diff --git a/packages/docs/src/pages/docs/advanced/containers.mdx b/packages/docs/src/pages/docs/advanced/containers.mdx
index f63140bfef5..62327d36ec3 100644
--- a/packages/docs/src/pages/docs/advanced/containers.mdx
+++ b/packages/docs/src/pages/docs/advanced/containers.mdx
@@ -40,7 +40,7 @@ A typical site is composed of two logical parts:
1. The navigation that tends to stay constant across many pages, and
2. The outlet, which is the part of the page that changes based on which route the user navigated to.
-We can model the two parts as two navigation and outlet containers. When the user first navigates to a route, the server responds with HTML, which contains containers for both the navigation and the outlet. Once the user navigates to the second route, there are three ways to solve the navigation:
+We can model the two parts as two navigation and outlet containers. When the user first navigates to a route, the server responds with HTML, that contains containers for both the navigation and the outlet. Once the user navigates to the second route, there are three ways to solve the navigation:
1. The simplistic approach is to make a full round trip and download an entirely new page. The main downside is that the application loses all of its states on the client.
1. The classical approach is to treat any further navigation in JavaScript. We replace the current outlet component with the new outlet component and let the new component render. The disadvantage is that we need to download and execute the JavaScript.
diff --git a/packages/docs/src/pages/docs/advanced/optimizer.mdx b/packages/docs/src/pages/docs/advanced/optimizer.mdx
index 9ce839287b0..88d67f3e33d 100644
--- a/packages/docs/src/pages/docs/advanced/optimizer.mdx
+++ b/packages/docs/src/pages/docs/advanced/optimizer.mdx
@@ -31,22 +31,15 @@ const Counter = component(qrl('./chunk-a.js', 'Counter_onMount'));
```tsx
export const Counter_onMount = () => {
const store = useStore({ count: 0 });
- return qrl('./chunk-b.js', 'Counter_onRender', [store]);
-};
-```
-
-`chunk-b.js`:
-
-```tsx
-const Counter_onRender = () => {
- const [store] = useLexicalScope();
return (
-
+
);
};
```
-`chunk-c.js`:
+`chunk-b.js`:
```tsx
const Counter_onClick = () => {
@@ -55,6 +48,8 @@ const Counter_onClick = () => {
};
```
+Notice that every occurence of `$` results in a new lazy loadable symbol.
+
# `$` and Optimizer Rules
diff --git a/packages/docs/src/pages/docs/cheat-sheet.md b/packages/docs/src/pages/docs/cheat-sheet.mdx
similarity index 97%
rename from packages/docs/src/pages/docs/cheat-sheet.md
rename to packages/docs/src/pages/docs/cheat-sheet.mdx
index 28eb6dc173d..1f3bd178c46 100644
--- a/packages/docs/src/pages/docs/cheat-sheet.md
+++ b/packages/docs/src/pages/docs/cheat-sheet.mdx
@@ -21,7 +21,7 @@ export function Component() {
Hello world
)
-})
+}
```
## Button with a click handler
@@ -47,9 +47,9 @@ export function Component() {
return (
)
-})
+}
```
## Declare local state
@@ -75,13 +75,11 @@ export const Component = component$(() => {
export function Component() {
const [value, setValue] = useState(0);
return (
-