Skip to content

Commit 1cd9508

Browse files
nathan-brown-omcdaKmoR
authored andcommitted
docs: site cleanup
Remove extraneous words and correct misphrasings.
1 parent c8082fb commit 1cd9508

17 files changed

Lines changed: 54 additions & 54 deletions

site/pages/10--docs/10--setup/10--getting-started.rocket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ If something is missing in the documentation or if you found some part confusing
9393

9494
## Credit
9595

96-
This getting started guide was originally based off of [astro](https://astro.build/) getting started guide.
96+
This getting started guide was originally based off the [astro](https://astro.build/) getting started guide.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ Before we get started we need to engage the engines via
4444
npm start
4545
```
4646

47-
This with start rocket in development mode and you will see your site running in your browser.
47+
This will start rocket in development mode and you will see your site running in your browser.
4848

4949
## What is a page?
5050

51-
A page is a file that ends either with `*.rocket.js`, `*.rocket.md` or `*.rocket.html` and is located in the input directory (`site/pages` by default). Pages will make up the majority or your website.
51+
A page is a file that ends either with `*.rocket.js`, `*.rocket.md` or `*.rocket.html` and is located in the input directory (`site/pages` by default). Pages will make up the majority of your website.
5252

5353
The simplest way to get started is to create a file
5454

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ e.g.
5353

5454
## Recommended Project Structure
5555

56-
Even if there is no enforce project structure it still makes sense to follow some common best practices.
56+
Even if there is no enforced project structure it still makes sense to follow some common best practices.
5757

5858
- `site/pages/*` - All the pages of your website (e.g. all `*.rocket.{js,md,html}` files)
5959
- `site/pages/about/_assets/*` - Keep assets related to pages close to the page itself (e.g. images, videos, ...)
@@ -116,4 +116,4 @@ Rocket has complete control over how these files get processed, optimized, and b
116116

117117
For most users, the majority of your files will live inside of the `site/pages/` and `site/src/` directory so that Rocket can optimize them in your final build. By contrast, the `site/public/` directory is the place for any files to live outside of the Rocket build process.
118118

119-
If you put a file into the public folder, it will not be processed by Rocket. Instead it will be copied into the build folder untouched. This can be useful for specific file like `robots.txt` or `site.webmanifest` or sometimes for assets like images that you need in a specific location.
119+
If you put a file into the public folder, it will not be processed by Rocket. Instead it will be copied into the build folder untouched. This can be useful for specific files like `robots.txt` or `site.webmanifest` or sometimes for assets like images that you need in a specific location.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ export const description = `An intro to Rocket pages, which is the actual websit
3030

3131
# Pages
3232

33-
**Pages** are a the only files that get rendered into the output folder.
33+
**Pages** are the only files that get rendered into the output folder.
3434

3535
3 types of pages are supported:
3636

3737
- `*.rocket.md` - A page with markdown content.
3838
- `*.rocket.html` - A page with HTML content.
3939
- `*.rocket.js` - A page with JavaScript content.
4040

41-
Feel free to choose a format for each pages that best suits its content.
41+
Feel free to choose a format for each page that best suits its content.
4242

4343
## File-based Routing
4444

45-
Rockets uses Pages to do something called **file-based routing.** Every file in your `pages` directory becomes a page on your site, using the file name to decide the final route.
45+
Rocket uses Pages to do something called **file-based routing.** Every file in your `pages` directory becomes a page on your site, using the file name to decide the final route.
4646

4747
```
4848
site/pages/index.rocket.md -> mysite.com/
@@ -72,7 +72,7 @@ export default () => `
7272

7373
👆 This is the JavaScript version which all other formats automatically convert to.
7474

75-
However for you your convenience you can also write your page in HTML and it will be automatically converted into the JavaScript version above.
75+
However for your convenience you can also write your page in HTML and it will be automatically converted into the JavaScript version above.
7676

7777
👉 `site/pages/index.rocket.html`
7878

@@ -104,8 +104,8 @@ Or you can write markdown.
104104

105105
Markdown and HTML files are automatically converted to their JavaScript equivalents.
106106
That is also how they get their template literal super powers.
107-
Those converted files only life for a fraction of a second and are deleted after the page is done rendering.
108-
If you would like to keep them for debugging or out of curiosity you can export the following flag to prefect the cleanup.
107+
Those converted files only live for a fraction of a second and are deleted after the page is done rendering.
108+
If you would like to keep them for debugging or out of curiosity you can export the following flag to prevent the cleanup.
109109

110110
```js
111111
export const keepConvertedFiles = true;

site/pages/10--docs/20--basics/30--data-cascade.rocket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ For that reasons you can override the layout via exporting `layout` on a specifi
9090

9191
In the above example we have 4 layouts we define in different places.
9292

93-
1. Default layout use by all pages unless overwritten in `recursive.data.js`
93+
1. Default layout used by all pages unless overwritten in `recursive.data.js`
9494
2. Explicitly specifying a layout `index.rocket.js`
9595
3. use `blog/local.data.js` to set a layout for all pages in `blog`
9696
4. use `docs/codelabs/local.data.js` to set a layout for all pages in `codelabs`

site/pages/10--docs/20--basics/40--components.rocket.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ export const needsLoader = true;
2828

2929
# Components
3030

31-
Components in Rocket are the "just" the web standard [web components](https://developer.mozilla.org/en-US/docs/Web/Web_Components). They are used to create reusable components that can be used in any web page.
31+
Components in Rocket are "just" the web standard [web components](https://developer.mozilla.org/en-US/docs/Web/Web_Components). They are used to create reusable components that can be used in any web page.
3232

3333
<inline-notification>
3434

35-
Web component only live within the html body. For content within the head or a full html page please see [layouts](./50--layouts.rocket.md).
35+
Web components only live within the html body. For content within the head or a full html page please see [layouts](./50--layouts.rocket.md).
3636

3737
</inline-notification>
3838

@@ -84,7 +84,7 @@ We can now put this code in Rocket JavaScript, Markdown or Html pages.
8484
<rocket-greeting>Go</rocket-greeting>
8585
````
8686

87-
will result a server rendered output that does not load ANY JavaScript
87+
will result in a server rendered output that does not load ANY JavaScript
8888

8989
```
9090
Hello World
@@ -124,7 +124,7 @@ Note the empty lines between html & markdown. They are necessary as this is how
124124

125125
## Manually Loading Components
126126

127-
We can define as many components as we want within a page but typically it's best to define them in a separate files.
127+
We can define as many components as we want within a page but typically it's best to define them in separate files.
128128

129129
So we will move our component code into a new file 👉 `/site/src/components/rocket-greeting.js`
130130

@@ -257,8 +257,8 @@ export const components = {
257257

258258
### Hydration
259259

260-
Component that do not have any interactivity will never need to be hydrated so they may be imported statically on the server side.
261-
All other component should be handled via the `components` object to enable handling of loading and registration.
260+
Components that do not have any interactivity will never need to be hydrated so they may be imported statically on the server side.
261+
All other components should be handled via the `components` object to enable handling of loading and registration.
262262

263263
Doing so enables hydration based on attributes on the component.
264264

site/pages/10--docs/20--basics/50--layouts.rocket.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const needsLoader = true;
2828

2929
# Layouts
3030

31-
Layout are special in that sense that they output the full html page (including html, head, body, etc).
31+
Layouts are special in the sense that they output the full html page (including html, head, body, etc).
3232

3333
The simplest layout you can make is
3434

@@ -48,7 +48,7 @@ export const layout = data => html`
4848
`;
4949
```
5050

51-
and that will work fine however now every page will have the same `title` in the head.
51+
and that will work fine, however, now every page will have the same `title` in the head.
5252

5353
If we now have the following markdown file:
5454

@@ -95,7 +95,7 @@ For more details see the following [lit issue](https://github.com/lit/lit/issues
9595

9696
</inline-notification>
9797

98-
In order to provide this `data.title` we now need to export is within the page.
98+
In order to provide this `data.title` we now need to export it within the page.
9999
The code could look something like this.
100100

101101
````md
@@ -151,7 +151,7 @@ const layoutB =
151151

152152
<inline-notification type="warning">
153153

154-
Partial html is not supported in [lit](http://lit.dev) as it uses the browser build in html parser which try to "auto correct" your html by closing tags.
154+
Partial html is not supported in [lit](http://lit.dev) as it uses the browser build in html parser which trys to "auto correct" your html by closing tags.
155155
e.g. this
156156

157157
<!-- prettier-ignore-start -->

site/pages/10--docs/20--basics/60--routing.rocket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Rocket uses **file-based routing** to generate your build URLs based on the file
3030

3131
## Static routes
3232

33-
Rocket Pages are Markdown (`rocket.md`), HTML (`rocket.html`) and JavaScript (`rocket.js`) in the `site/pages` directory become pages on your website. Each page’s route is decided based on its filename and path within the `site/pages` directory. This means that there is no separate "routing config" to maintain in an Rocket project.
33+
Rocket Pages are Markdown (`rocket.md`), HTML (`rocket.html`) and JavaScript (`rocket.js`) in the `site/pages` directory become pages on your website. Each page’s route is decided based on its filename and path within the `site/pages` directory. This means that there is no separate "routing config" to maintain in a Rocket project.
3434

3535
```bash
3636
# Example: Static routes

site/pages/10--docs/20--basics/70--navigation.rocket.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ This will result in something like this:
7676
</nav>
7777
```
7878
79-
Rocket comes with multiple build in menus you can see [below](#menu-types).
79+
Rocket comes with multiple built-in menus you can see [below](#menu-types).
8080
8181
## Menu Data
8282
@@ -107,11 +107,11 @@ Now the menu will be called "Docs".
107107
Within a menu the text of the links is defined by the following priority:
108108
109109
1. menuLinkText => `export const menuLinkText = 'Page Title In Menu';`
110-
2. h1 => first `<h1>` in the page)
110+
2. h1 => first `<h1>` in the page
111111
3. title => html title tag
112112
4. sourceRelativeFilePath => fallback if no other option is available
113113
114-
You can influence that data that gets provided to the menu by setting exports.
114+
You can influence the data that gets provided to the menu by setting exports.
115115
116116
### link-text="..."
117117
@@ -168,7 +168,7 @@ Sometimes there is a need to completely exclude a page from the pageTree.
168168
Pages with this flag will not exist at all in the pageTree - therefore you will not be able to access them for "anything" not even in a sitemap or an update feed.
169169
Pages that have sub pages can NOT use this flag as it would mean those sub pages would not have a parent page.
170170
171-
Typical use case are utility pages that are not meant to be accessed by typical users.
171+
Typical use cases are utility pages that are not meant to be accessed by typical users.
172172
173173
```js
174174
export const menuExclude = true;
@@ -245,7 +245,7 @@ In case you want to take full control over the order you can apply the following
245245
- The menu order and file system order will no longer match
246246
- But no numbers in folder / filenames
247247
248-
3. Instantiate a new PageTree and providing your own `modelComparatorFn`
248+
3. Instantiate a new PageTree and provide your own `modelComparatorFn`
249249
250250
```js
251251
function modelComparatorFn(a, b) {
@@ -261,7 +261,7 @@ In case you want to take full control over the order you can apply the following
261261
262262
## Page Tree
263263
264-
The data of the page tree gets saves as a JSON file in the root of the `pages` directory.
264+
The data of the page tree gets saved as a JSON file in the root of the `pages` directory.
265265
266266
It typically looks something like this:
267267
@@ -440,7 +440,7 @@ import {
440440
5. **NextMenu**
441441
442442
- shows the next page in the tree
443-
- is either the first child or he next sibling
443+
- is either the first child or the next sibling
444444
445445
```html
446446
<web-menu name="next">

site/pages/10--docs/20--basics/80--hydration.rocket.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const needsLoader = true;
3131
# Hydration
3232

3333
By default all components are only rendered on the server.
34-
This however means those components are "static" and can not add interactivity.
34+
However, this means those components are "static" and can not add interactivity.
3535

3636
To add interactivity to your component you can either render it only on the client or you can render on the server and `hydrate` it on the client.
3737

@@ -69,9 +69,9 @@ The automatic loading/hydration only works if you [register components to the ro
6969

7070
## Server Loading
7171

72-
Server Loading has almost zero impact on the client side page performance and is therefore fastest possible solution available.
72+
Server Loading has almost zero impact on the client side page performance and is therefore the fastest possible solution available.
7373

74-
Loading and rendering on the server is the default and for that reasons does not need to be specified.
74+
Loading and rendering on the server is the default and for that reason does not need to be specified.
7575

7676
```html
7777
<blog-header></blog-header>
@@ -263,7 +263,7 @@ Results in `server rendering` of all `my-component`s.
263263
Why theses impacts?
264264

265265
1. client - if you eagerly load & render the component on the client then bloating the html of some components by server rendering does not bring any benefit
266-
2. hydrate - hydration means that all component with the same tag name will be hydrated on the client - you can not keep a server only variation of a component
266+
2. hydrate - hydration means that all components with the same tag name will be hydrated on the client - you can not keep a server only variation of a component
267267
3. server - almost zero client side impact
268268

269269
<inline-notification>

0 commit comments

Comments
 (0)