You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm i @rocket/cli@alpha @rocket/launch@alpha @11ty/eleventy-cache-assets typescript
65
-
npx rocket init
64
+
npx @rocket/create@latest
66
65
```
67
66
68
67
## 🤝 Contributing
69
68
70
69
We are always looking for contributors of all skill levels! If you're looking to ease your way into the project, try out a [good first issue](https://github.com/modernweb-dev/rocket/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
71
70
72
-
If you are interested in helping contribute to Modern Web, please take a look at our [Contributing Guide](https://github.com/modernweb-dev/rocket/blob/next/CONTRIBUTING.md). Also, feel free to drop into [slack](https://next.rocket.modern-web.dev/about/slack/) and say hi. 👋
71
+
If you are interested in helping contribute to Modern Web, please take a look at our [Contributing Guide](https://github.com/modernweb-dev/rocket/blob/next/CONTRIBUTING.md). Also, feel free to drop into [discord](https://rocket.modern-web.dev/chat) and say hi. 👋
As 0.20.x is a rewrite of all the core logic which meant moving from eleventy to class based templates, server side rendering of web components and a file based routing this migration requires manual work.
6
+
7
+
Most of the work however mostly applies if you adjusted templates/layouts or created your own presets/plugins.
8
+
9
+
Especially for markdown based content not so much changed.
10
+
The biggest change is that the routing is now [file based](https://rocket.modern-web.dev/docs/basics/routing/) which means that your page structure is no longer in the title or frontmatter.
11
+
12
+
e.g.
13
+
14
+
👉 `docs/about-us/company/location.md`
15
+
16
+
```md
17
+
# About Us >> Company >> Locations || 20
18
+
```
19
+
20
+
becomes
21
+
22
+
👉 `docs/about-us/company/20--location.rocket.md`
23
+
24
+
```md
25
+
# Location
26
+
```
27
+
28
+
This task can be automated by
29
+
30
+
1. update to latest `@rocket/cli`
31
+
2. rename `docs` to `site/pages`
32
+
3. run `npx rocket upgrade`
33
+
34
+
This however will only extract the navigation data and rename the files.
35
+
To fully migrate you need to setup some files according to the [project structure](https://rocket.modern-web.dev/docs/basics/project-structure/).
36
+
At the minium a `site/pages/recursive.data.js` to define the default template.
37
+
38
+
If you need more information or help be sure to check out our [discord](https://discord.gg/sTdpM2rkKJ) community.
0 commit comments