Skip to content

Commit bcbfae3

Browse files
committed
chore: docs update public folder is in site/public
1 parent 0fae003 commit bcbfae3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

site/pages/10--docs/10--setup/20--adding-pages.rocket.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,15 @@ To test it you can create a file
8383
```js
8484
import { html } from 'lit';
8585

86-
export const layout = data => html`<div>${data.content()}</div>`;
86+
export const layout = data => html`
87+
<!DOCTYPE html>
88+
<html>
89+
<body>
90+
<header>My Website</header>
91+
<div>${data.content()}</div>
92+
</body>
93+
</html>
94+
`;
8795
```
8896

8997
Now if you go back to your `site/pages/index.rocket.md` you will see that `layout` got automatically injected.

site/pages/10--docs/20--basics/10--project-structure.rocket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const description = 'Learn how to structure a project with Rocket.';
3131
# Project Structure
3232

3333
Rocket works with one input folder for all your pages that defaults to `site/pages`.
34-
Within `pages` there is a `__public` folder that will be copied as is to the output folder.
34+
Within `pages` there is a `public` folder that will be copied as is to the output folder.
3535

3636
All other files like `layouts`, `css`, `data`, ... can be placed anywhere in your project.
3737

0 commit comments

Comments
 (0)