Skip to content

Commit d91e46b

Browse files
committed
feat: bootstrap command
also adds code tabs and updates documentation
1 parent 1742171 commit d91e46b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+851
-240
lines changed

.changeset/many-panthers-run.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@mdjs/core': patch
3+
---
4+
5+
update dependencies

.changeset/many-poems-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket/cli': patch
3+
---
4+
5+
Add `bootstrap` command

.changeset/wise-ants-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket/launch': patch
3+
---
4+
5+
Add noscript styles which explicity show unregistered custom elements

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ _site
1010
_site-dev
1111
__output
1212
__output-dev
13+
14+
docs/_merged*

docs/_assets/_static/logos/npm.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/_assets/_static/logos/pnpm.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/_assets/_static/logos/yarn.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/_assets/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@ rocket-navigation {
1919
header {
2020
font-family: 'Montserrat', sans-serif;
2121
}
22+
23+
code-tabs[collection="package-managers"] {
24+
--code-tabs-icon-height: 18px;
25+
--code-tabs-justify-tabs: end;
26+
}
27+
28+
:not(rocket-navigation):not(:defined) {
29+
opacity: 0;
30+
}

docs/docs/configuration/computed-config.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Configuration >> Computed Config ||20
1+
# Configuration >> Computed Config || 20
22

33
If you want to add data that depends on other data then you can do it via [Eleventy's computed data](https://www.11ty.dev/docs/data-computed/).
44

@@ -8,25 +8,23 @@ Rocket exposes it via `setupEleventyComputedConfig`.
88

99
Let's say you want to add a `Welcome to the contact page` everywhere. (A filter might be a better choice, but it's a good example of the concept.)
1010

11-
👉 `rocket.config.mjs` (or your theme config file)
11+
👉 `rocket.config.js` (or your theme config file)
1212

13-
```js
13+
<!-- prettier-ignore-start -->
14+
```js copy
1415
import { addPlugin } from 'plugins-manager';
1516

16-
/** @type {Partial<import("../../../types/main").RocketCliOptions>} */
17-
const config = {
17+
/** @type {import('@rocket/cli').RocketCliOptions} */
18+
export default ({
1819
setupEleventyComputedConfig: [
1920
addPlugin({ name: 'greeting', plugin: data => `Welcome to the ${data.title} page.` }),
2021
],
21-
};
22-
23-
export default config;
22+
});
2423
```
24+
<!-- prettier-ignore-end -->
2525

26-
{% raw %}
27-
Now you can use {{ greeting }} everywhere.
28-
{% endraw %}
29-
And it will be correctly replaced with a Welcome and the page title.
26+
Now you can use {% raw %}{{ greeting }}{% endraw %} everywhere,
27+
and it will be correctly replaced with a Welcome and the page title.
3028

3129
## Default Available Configs
3230

docs/docs/configuration/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ For these cases you can use `setupDevAndBuildPlugins`, which will automatically
5959
import json from '@rollup/plugin-json';
6060
import { addPlugin } from 'plugins-manager';
6161

62-
/** @type {Partial<import("@rocket/cli").RocketCliOptions>} */
62+
/** @type {import('@rocket/cli').RocketCliOptions} */
6363
const config = {
6464
setupDevAndBuildPlugins: [
6565
addPlugin({ name: 'json', plugin: json, location: 'top', options: { my: 'settings' } }),
@@ -79,7 +79,7 @@ All plugins which are either default or are added via a preset can still be adju
7979
```js
8080
import { adjustPluginOptions } from 'plugins-manager';
8181

82-
/** @type {Partial<import("@rocket/cli").RocketCliOptions>} */
82+
/** @type {import('@rocket/cli').RocketCliOptions} */
8383
const config = {
8484
setupDevAndBuildPlugins: [adjustPluginOptions('json', { my: 'overwrite settings' })],
8585
};

0 commit comments

Comments
 (0)