mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-03-21 15:54:57 +00:00
Compare commits
11 Commits
@rocket/cl
...
@rocket/cl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c3eda35a9 | ||
|
|
6910d50bf5 | ||
|
|
a2dc8656db | ||
|
|
e778cd8a3c | ||
|
|
9e3c2f52d9 | ||
|
|
579e8e72a2 | ||
|
|
06ae8693b2 | ||
|
|
cee2b7b04c | ||
|
|
9625b94d39 | ||
|
|
1f79d7a047 | ||
|
|
bf99541951 |
@@ -20,7 +20,7 @@ The Plugins Manager helps you register and execute your plugins across the vario
|
|||||||
|
|
||||||
## Adding Remark/Unified Plugins
|
## Adding Remark/Unified Plugins
|
||||||
|
|
||||||
If you want to a plugin to the Markdown processing you can use `setupUnifiedPlugins`.
|
If you want to add a plugin to the Markdown processing you can use `setupUnifiedPlugins`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import emoji from 'remark-emoji';
|
import emoji from 'remark-emoji';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Many servers are configured to handle this automatically and to serve a 404.html
|
|||||||
|
|
||||||
The [Rocket Launch preset](../../docs/presets/launch.md) ships a default 404 template you can use.
|
The [Rocket Launch preset](../../docs/presets/launch.md) ships a default 404 template you can use.
|
||||||
|
|
||||||
To enable it, you need to create a 404.md and use the 404 layout.
|
To enable it, you need to create a `404.md` and use the 404 layout.
|
||||||
|
|
||||||
👉 `docs/404.md`
|
👉 `docs/404.md`
|
||||||
|
|
||||||
@@ -20,6 +20,10 @@ permalink: 404.html
|
|||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This results in a `404.html` page, which will do nothing by itself. But many hosting services like netlify or firebase, for example will redirect 404s to this `404.html` by default.
|
||||||
|
|
||||||
|
If the hosting provider doesn't already do this, then you may be able to accomplish it via some settings for example by using a `.htaccess` file in case of an apache server.
|
||||||
|
|
||||||
## Add a Sitemap
|
## Add a Sitemap
|
||||||
|
|
||||||
A sitemap can be used to inform search engines or services about the pages your site has.
|
A sitemap can be used to inform search engines or services about the pages your site has.
|
||||||
|
|||||||
@@ -37,6 +37,14 @@ If you look into `docs/_merged_includes/_joiningBlocks/bottom/` you will see a f
|
|||||||
- `190-google-analytics.njk`
|
- `190-google-analytics.njk`
|
||||||
- `my-script.njk`
|
- `my-script.njk`
|
||||||
|
|
||||||
|
<inline-notification type="tip">
|
||||||
|
|
||||||
|
File names without an order/number in front are considered with the order number `10 000` so the generally end up at the bottom. If you need something even below unordered items you can use numbers that are greater then `10 000`.
|
||||||
|
|
||||||
|
_Note: For unordered files there is no guarantee of any order._
|
||||||
|
|
||||||
|
</inline-notification>
|
||||||
|
|
||||||
## Controlling the order
|
## Controlling the order
|
||||||
|
|
||||||
In the html `<head>` order is usually not that important but when adding script it does.
|
In the html `<head>` order is usually not that important but when adding script it does.
|
||||||
@@ -57,3 +65,7 @@ which brings the order to
|
|||||||
## More information
|
## More information
|
||||||
|
|
||||||
For more details please see the [Joining Blocks Docs](../../docs/presets/joining-blocks.md)
|
For more details please see the [Joining Blocks Docs](../../docs/presets/joining-blocks.md)
|
||||||
|
|
||||||
|
```js script
|
||||||
|
import '@rocket/launch/inline-notification/inline-notification.js';
|
||||||
|
```
|
||||||
|
|||||||
@@ -1,5 +1,17 @@
|
|||||||
# @rocket/cli
|
# @rocket/cli
|
||||||
|
|
||||||
|
## 0.9.6
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- bf99541: Adjust copy logic to
|
||||||
|
|
||||||
|
1. for `_assets/_static` copy over everything
|
||||||
|
2. for all other paths copy over everything except `*.html` and `*.md`
|
||||||
|
|
||||||
|
- 579e8e7: Unordered joiningBlocks are now considered with the order number `10 000` and will generally be at the bottom.
|
||||||
|
You can use numbers `> 10 000` to place files even after unordered joiningBlocks.
|
||||||
|
|
||||||
## 0.9.5
|
## 0.9.5
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@rocket/cli",
|
"name": "@rocket/cli",
|
||||||
"version": "0.9.5",
|
"version": "0.9.6",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ async function productionBuild(config) {
|
|||||||
name: 'copy',
|
name: 'copy',
|
||||||
plugin: copy,
|
plugin: copy,
|
||||||
options: {
|
options: {
|
||||||
patterns: ['!(*.md|*.html)*', '_merged_assets/_static/**/*.{png,gif,jpg,json,css,svg,ico}'],
|
patterns: ['!(*.md|*.html)*', '_merged_assets/_static/**/*'],
|
||||||
rootDir: config.outputDevDir,
|
rootDir: config.outputDevDir,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
const rocketCopy = {
|
const rocketCopy = {
|
||||||
configFunction: (eleventyConfig, { _inputDirCwdRelative, filesExtensionsToCopy }) => {
|
configFunction: (eleventyConfig, { _inputDirCwdRelative }) => {
|
||||||
eleventyConfig.addPassthroughCopy(`${_inputDirCwdRelative}/**/*.{${filesExtensionsToCopy}}`);
|
eleventyConfig.addPassthroughCopy(`${_inputDirCwdRelative}/!(*.md|*.html)*`);
|
||||||
|
eleventyConfig.addPassthroughCopy(
|
||||||
|
`${_inputDirCwdRelative}/!(_includes|_data|_assets|_merged_data|_merged_includes)*/**/!(*.md|*.html)*`,
|
||||||
|
);
|
||||||
|
eleventyConfig.addPassthroughCopy(`${_inputDirCwdRelative}/_merged_assets/_static/**/*`);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ function socialMediaImagePlugin(args = {}) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function sortyByOrder(a, b) {
|
function sortByOrder(a, b) {
|
||||||
if (a.order > b.order) {
|
if (a.order > b.order) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -127,20 +127,20 @@ async function dirToTree(sourcePath, extra = '') {
|
|||||||
if (entry.isDirectory()) {
|
if (entry.isDirectory()) {
|
||||||
const value = await dirToTree(sourcePath, relativePath);
|
const value = await dirToTree(sourcePath, relativePath);
|
||||||
unsortedEntries.push({
|
unsortedEntries.push({
|
||||||
order: matches && matches.length > 0 ? parseInt(matches[1]) : 0,
|
order: matches && matches.length > 0 ? parseInt(matches[1]) : 10000,
|
||||||
name: entry.name,
|
name: entry.name,
|
||||||
value,
|
value,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
unsortedEntries.push({
|
unsortedEntries.push({
|
||||||
order: matches && matches.length > 0 ? parseInt(matches[1]) : 0,
|
order: matches && matches.length > 0 ? parseInt(matches[1]) : 10000,
|
||||||
name: entry.name,
|
name: entry.name,
|
||||||
value: relativePath,
|
value: relativePath,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const sortedTree = {};
|
const sortedTree = {};
|
||||||
for (const unsortedEntry of unsortedEntries.sort(sortyByOrder)) {
|
for (const unsortedEntry of unsortedEntries.sort(sortByOrder)) {
|
||||||
sortedTree[unsortedEntry.name] = unsortedEntry.value;
|
sortedTree[unsortedEntry.name] = unsortedEntry.value;
|
||||||
}
|
}
|
||||||
return sortedTree;
|
return sortedTree;
|
||||||
|
|||||||
@@ -30,10 +30,7 @@ module.exports = function (eleventyConfig) {
|
|||||||
{
|
{
|
||||||
name: 'rocket-copy',
|
name: 'rocket-copy',
|
||||||
plugin: rocketCopy,
|
plugin: rocketCopy,
|
||||||
options: {
|
options: { _inputDirCwdRelative },
|
||||||
_inputDirCwdRelative,
|
|
||||||
filesExtensionsToCopy: 'png,gif,jpg,jpeg,svg,css,xml,json,js',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'eleventy-plugin-mdjs-unified',
|
name: 'eleventy-plugin-mdjs-unified',
|
||||||
|
|||||||
@@ -29,7 +29,13 @@ describe('RocketCli mergeTemplates', () => {
|
|||||||
|
|
||||||
const indexHtml = await readStartOutput(cli, 'index.html');
|
const indexHtml = await readStartOutput(cli, 'index.html');
|
||||||
expect(trimWhiteSpace(indexHtml)).to.equal(
|
expect(trimWhiteSpace(indexHtml)).to.equal(
|
||||||
['<p>first</p>', '<p>second</p>', '<p>30-third</p>', '<p>100-last</p>'].join('\n'),
|
[
|
||||||
|
'<p>30-first</p>',
|
||||||
|
'<p>100-second</p>',
|
||||||
|
'<p>bar-third</p>',
|
||||||
|
'<p>foo-fourth</p>',
|
||||||
|
'<p>10100-last</p>',
|
||||||
|
].join('\n'),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
<p>100-last</p>
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<p>100-second</p>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<p>10100-last</p>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<p>30-first</p>
|
||||||
@@ -1 +0,0 @@
|
|||||||
<p>30-third</p>
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<p>bar-third</p>
|
||||||
@@ -1 +0,0 @@
|
|||||||
<p>first</p>
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<p>foo-fourth</p>
|
||||||
@@ -1 +0,0 @@
|
|||||||
<p>second</p>
|
|
||||||
@@ -1,5 +1,18 @@
|
|||||||
# @rocket/launch
|
# @rocket/launch
|
||||||
|
|
||||||
|
## 0.5.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 9e3c2f5: Only show the help & feedback link if a site.helpUrl is defined
|
||||||
|
- 9625b94: Remove footer urls to pages that users would need to create
|
||||||
|
- 1f79d7a: Add font-family CSS variables
|
||||||
|
|
||||||
|
- `--primary-font-family` for body text
|
||||||
|
- `--secondary-font-family` for emphasis (e.g. call-to-action)
|
||||||
|
- `--heading-font-family` for headings (defaults to `--primary-font-family`)
|
||||||
|
- `--monospace-font-family` for code blocks
|
||||||
|
|
||||||
## 0.5.1
|
## 0.5.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@rocket/launch",
|
"name": "@rocket/launch",
|
||||||
"version": "0.5.1",
|
"version": "0.5.2",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: var(--primary-font-family);
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@@ -434,11 +434,13 @@ li.current > ul > li.anchor {
|
|||||||
|
|
||||||
/* for blog detail page */
|
/* for blog detail page */
|
||||||
rocket-navigation h3 {
|
rocket-navigation h3 {
|
||||||
|
font-family: var(--heading-font-family, var(--primary-font-family));
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin: 0 0 7px 0;
|
margin: 0 0 7px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-tags h3 {
|
.sidebar-tags h3 {
|
||||||
|
font-family: var(--heading-font-family, var(--primary-font-family));
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -541,7 +543,7 @@ main > * {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: var(--secondary-font-family);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: octicons-link;
|
font-family: octicons-link;
|
||||||
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAAizAFoAAABiAGIAzn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qly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==)
|
||||||
format('woff');
|
format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,7 +62,7 @@
|
|||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
color: var(--markdown-body, --page-background);
|
color: var(--markdown-body, --page-background);
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: var(--primary-font-family);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
@@ -188,6 +189,7 @@
|
|||||||
.markdown-body h4,
|
.markdown-body h4,
|
||||||
.markdown-body h5,
|
.markdown-body h5,
|
||||||
.markdown-body h6 {
|
.markdown-body h6 {
|
||||||
|
font-family: var(--heading-font-family, var(--primary-font-family));
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
@@ -265,7 +267,7 @@
|
|||||||
|
|
||||||
.markdown-body code,
|
.markdown-body code,
|
||||||
.markdown-body pre {
|
.markdown-body pre {
|
||||||
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
|
font-family: var(--monospace-font-family);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -555,57 +557,75 @@ pre[class*='language-'] {
|
|||||||
.token.atrule {
|
.token.atrule {
|
||||||
color: var(--markdown-syntax-atrule-color, #d73a49);
|
color: var(--markdown-syntax-atrule-color, #d73a49);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.attr-name {
|
.token.attr-name {
|
||||||
color: var(--markdown-syntax-attr-name-color, #d73a49);
|
color: var(--markdown-syntax-attr-name-color, #d73a49);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.boolean {
|
.token.boolean {
|
||||||
color: var(--markdown-syntax-boolean-color, #005cc5);
|
color: var(--markdown-syntax-boolean-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.class-name {
|
.token.class-name {
|
||||||
color: var(--markdown-syntax-class-name-color, #6f42c1);
|
color: var(--markdown-syntax-class-name-color, #6f42c1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.constant {
|
.token.constant {
|
||||||
color: var(--markdown-syntax-constant-color, #005cc5);
|
color: var(--markdown-syntax-constant-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.entity {
|
.token.entity {
|
||||||
color: var(--markdown-syntax-entity-color, #005cc5);
|
color: var(--markdown-syntax-entity-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.function {
|
.token.function {
|
||||||
color: var(--markdown-syntax-function-color, #6f42c1);
|
color: var(--markdown-syntax-function-color, #6f42c1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.inserted {
|
.token.inserted {
|
||||||
color: var(--markdown-syntax-inserted-color, #005cc5);
|
color: var(--markdown-syntax-inserted-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.keyword {
|
.token.keyword {
|
||||||
color: var(--markdown-syntax-keyword-color, #d73a49);
|
color: var(--markdown-syntax-keyword-color, #d73a49);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.number {
|
.token.number {
|
||||||
color: var(--markdown-syntax-number-color, #005cc5);
|
color: var(--markdown-syntax-number-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.operator {
|
.token.operator {
|
||||||
color: var(--markdown-syntax-operator-color, #005cc5);
|
color: var(--markdown-syntax-operator-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.property {
|
.token.property {
|
||||||
color: var(--markdown-syntax-property-color, #005cc5);
|
color: var(--markdown-syntax-property-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.punctuation {
|
.token.punctuation {
|
||||||
color: var(--markdown-syntax-punctuation-color, #005cc5);
|
color: var(--markdown-syntax-punctuation-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.regex {
|
.token.regex {
|
||||||
color: var(--markdown-syntax-regex-color, #032f62);
|
color: var(--markdown-syntax-regex-color, #032f62);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.selector {
|
.token.selector {
|
||||||
color: var(--markdown-syntax-selector-color, #22863a);
|
color: var(--markdown-syntax-selector-color, #22863a);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.symbol {
|
.token.symbol {
|
||||||
color: var(--markdown-syntax-symbol-color, #005cc5);
|
color: var(--markdown-syntax-symbol-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.tag {
|
.token.tag {
|
||||||
color: var(--markdown-syntax-tag-color, #22863a);
|
color: var(--markdown-syntax-tag-color, #22863a);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.url {
|
.token.url {
|
||||||
color: var(--markdown-syntax-url-color, #005cc5);
|
color: var(--markdown-syntax-url-color, #005cc5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.variable {
|
.token.variable {
|
||||||
color: var(--markdown-syntax-variable-color, #005cc5);
|
color: var(--markdown-syntax-variable-color, #005cc5);
|
||||||
}
|
}
|
||||||
@@ -613,6 +633,7 @@ pre[class*='language-'] {
|
|||||||
.language-autohotkey .token.selector {
|
.language-autohotkey .token.selector {
|
||||||
color: var(--markdown-syntax-hotkey-selector-color, #d73a49);
|
color: var(--markdown-syntax-hotkey-selector-color, #d73a49);
|
||||||
}
|
}
|
||||||
|
|
||||||
.language-autohotkey .token.keyword {
|
.language-autohotkey .token.keyword {
|
||||||
color: var(--markdown-syntax-keyword-color, #22863a);
|
color: var(--markdown-syntax-keyword-color, #22863a);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,11 @@ html {
|
|||||||
--page-background: white;
|
--page-background: white;
|
||||||
--footer-background: rgba(0, 0, 0, 0.1);
|
--footer-background: rgba(0, 0, 0, 0.1);
|
||||||
|
|
||||||
|
/* typography */
|
||||||
--text-color: black;
|
--text-color: black;
|
||||||
|
--primary-font-family: 'Open Sans', sans-serif;
|
||||||
|
--secondary-font-family: 'Montserrat', sans-serif;
|
||||||
|
--monospace-font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier', monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.dark {
|
html.dark {
|
||||||
@@ -32,8 +36,10 @@ html.dark {
|
|||||||
--page-background: #333;
|
--page-background: #333;
|
||||||
--footer-background: #4f4f4f;
|
--footer-background: #4f4f4f;
|
||||||
|
|
||||||
|
/* typography */
|
||||||
--text-color: white;
|
--text-color: white;
|
||||||
|
|
||||||
|
/* markdown */
|
||||||
--markdown-octicon-link: white;
|
--markdown-octicon-link: white;
|
||||||
--markdown-syntax-background-color: #a0a0a0;
|
--markdown-syntax-background-color: #a0a0a0;
|
||||||
--markdown-link-color: #fb7881;
|
--markdown-link-color: #fb7881;
|
||||||
|
|||||||
@@ -2,10 +2,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Discover",
|
"name": "Discover",
|
||||||
"children": [
|
"children": [
|
||||||
{
|
|
||||||
"text": "Blog",
|
|
||||||
"href": "/blog/"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"text": "Help and Feedback",
|
"text": "Help and Feedback",
|
||||||
"href": "https://github.com/modernweb-dev/rocket/issues"
|
"href": "https://github.com/modernweb-dev/rocket/issues"
|
||||||
@@ -23,19 +19,11 @@
|
|||||||
"text": "Twitter",
|
"text": "Twitter",
|
||||||
"href": "https://twitter.com/modern_web_dev"
|
"href": "https://twitter.com/modern_web_dev"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"text": "Slack",
|
|
||||||
"href": "/about/slack/"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Support",
|
"name": "Support",
|
||||||
"children": [
|
"children": [
|
||||||
{
|
|
||||||
"text": "Sponsor",
|
|
||||||
"href": "/about/sponsor/"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"text": "Contribute",
|
"text": "Contribute",
|
||||||
"href": "https://github.com/modernweb-dev/rocket/blob/master/CONTRIBUTING.md"
|
"href": "https://github.com/modernweb-dev/rocket/blob/master/CONTRIBUTING.md"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{%- for entry in collections.header %}
|
{%- for entry in collections.header %}
|
||||||
<a href="{{ entry.url | url }}" class="
|
<a href="{{ entry.url | url }}" class="
|
||||||
{% if entry.url == page.url %} current {% endif %}
|
{% if entry.url == page.url %} current {% endif %}
|
||||||
{% if (page.url.search(entry.url) !== -1) and (page.url !== '/') %} active {% endif %}
|
{% if page.url and page.url.search and (page.url.search(entry.url) !== -1) and (page.url !== '/') %} active {% endif %}
|
||||||
">{{ entry.data.eleventyNavigation.key }}</a>
|
">{{ entry.data.eleventyNavigation.key }}</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div class="sidebar-bottom">
|
<div class="sidebar-bottom">
|
||||||
<hr>
|
<hr/> {% include 'partials/_shared/darkSwitch.njk' %}
|
||||||
{% include 'partials/_shared/darkSwitch.njk' %}
|
{% if site.helpUrl %}
|
||||||
|
<a href="{{ site.helpUrl | url }}">Help and Feedback</a>
|
||||||
<a href="{{ site.helpUrl | url }}">Help and Feedback</a>
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user