Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjc5 committed Sep 20, 2023
1 parent 4d9e19e commit 513361c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docs/src/pages/docs.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,11 @@ root
If you want to include a layout for a route (e.g., a sidebar or
sub-navigation), include a file with the same name as the directory
(but with <InlineCode>.page.tsx</InlineCode> included) as a sibling
to the route directory. For example, if you have a route at
to the route directory. For example, if you have a route at{' '}
<InlineCode>/foo/bar</InlineCode>, you can include a layout at
<InlineCode>/src/pages/foo/bar.page.tsx</InlineCode> and a default
page at
<InlineCode>/src/pages/foo/bar/_index.page.tsx</InlineCode>. Note
that any layouts for your main home page (
page at <InlineCode>/src/pages/foo/bar/_index.page.tsx</InlineCode>.
Note that any layouts for your main home page (
<InlineCode>src/_index.page.tsx</InlineCode>), such as a global
navigation header, should be inserted into your root component that
is rendered from your main server entry point (i.e.,{' '}
Expand Down Expand Up @@ -564,9 +563,7 @@ export async function loader({ c }: AppDataFunctionArgs) {
<AnchorHeading content="Main.tsx" />
<Paragraph>
In your <InlineCode>main.tsx</InlineCode> file, you'll have a handler
that looks something like this. We intentionally kept this highly
explicit and non-magical so that you can easily customize it to your
needs and see exactly what is going on at a low level.
that looks something like this.
</Paragraph>
<CodeBlock
language="typescript"
Expand Down

0 comments on commit 513361c

Please sign in to comment.