@metamask-previews/messenger-cli 0.0.0-preview-4a2a8e8f6 → 0.1.0-preview-e19d3725e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/dist/docs/cli.cjs +199 -0
- package/dist/docs/cli.cjs.map +1 -0
- package/dist/docs/cli.d.cts +3 -0
- package/dist/docs/cli.d.cts.map +1 -0
- package/dist/docs/cli.d.mts +3 -0
- package/dist/docs/cli.d.mts.map +1 -0
- package/dist/docs/cli.mjs +198 -0
- package/dist/docs/cli.mjs.map +1 -0
- package/dist/docs/discovery.cjs +46 -0
- package/dist/docs/discovery.cjs.map +1 -0
- package/dist/docs/discovery.d.cts +17 -0
- package/dist/docs/discovery.d.cts.map +1 -0
- package/dist/docs/discovery.d.mts +17 -0
- package/dist/docs/discovery.d.mts.map +1 -0
- package/dist/docs/discovery.mjs +41 -0
- package/dist/docs/discovery.mjs.map +1 -0
- package/dist/docs/extraction.cjs +569 -0
- package/dist/docs/extraction.cjs.map +1 -0
- package/dist/docs/extraction.d.cts +10 -0
- package/dist/docs/extraction.d.cts.map +1 -0
- package/dist/docs/extraction.d.mts +10 -0
- package/dist/docs/extraction.d.mts.map +1 -0
- package/dist/docs/extraction.mjs +543 -0
- package/dist/docs/extraction.mjs.map +1 -0
- package/dist/docs/generate.cjs +254 -0
- package/dist/docs/generate.cjs.map +1 -0
- package/dist/docs/generate.d.cts +27 -0
- package/dist/docs/generate.d.cts.map +1 -0
- package/dist/docs/generate.d.mts +27 -0
- package/dist/docs/generate.d.mts.map +1 -0
- package/dist/docs/generate.mjs +227 -0
- package/dist/docs/generate.mjs.map +1 -0
- package/dist/docs/markdown.cjs +210 -0
- package/dist/docs/markdown.cjs.map +1 -0
- package/dist/docs/markdown.d.cts +35 -0
- package/dist/docs/markdown.d.cts.map +1 -0
- package/dist/docs/markdown.d.mts +35 -0
- package/dist/docs/markdown.d.mts.map +1 -0
- package/dist/docs/markdown.mjs +203 -0
- package/dist/docs/markdown.mjs.map +1 -0
- package/dist/docs/types.cjs +3 -0
- package/dist/docs/types.cjs.map +1 -0
- package/dist/docs/types.d.cts +23 -0
- package/dist/docs/types.d.cts.map +1 -0
- package/dist/docs/types.d.mts +23 -0
- package/dist/docs/types.d.mts.map +1 -0
- package/dist/docs/types.mjs +2 -0
- package/dist/docs/types.mjs.map +1 -0
- package/package.json +24 -4
- package/template/docusaurus.config.ts +123 -0
- package/template/src/css/custom.css +314 -0
- package/template/static/fonts/MM-Sans/MM_Sans_Mono-Regular.woff2 +0 -0
- package/template/static/img/favicons/favicon-96x96.png +0 -0
- package/template/static/img/metamask-fox.svg +12 -0
- package/template/static/img/metamask-logo-dark.svg +3 -0
- package/template/static/img/metamask-logo.svg +3 -0
- package/template/tsconfig.json +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/messenger-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0-preview-e19d3725e",
|
|
4
4
|
"description": "CLI tools for the MetaMask messenger system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -17,16 +17,19 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"bin": {
|
|
20
|
-
"messenger-action-types": "./dist/cli.mjs"
|
|
20
|
+
"messenger-action-types": "./dist/cli.mjs",
|
|
21
|
+
"messenger-docs": "./dist/docs/cli.mjs"
|
|
21
22
|
},
|
|
22
23
|
"files": [
|
|
23
|
-
"dist/"
|
|
24
|
+
"dist/",
|
|
25
|
+
"template/"
|
|
24
26
|
],
|
|
25
27
|
"scripts": {
|
|
26
28
|
"build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
|
|
27
29
|
"build:all": "ts-bridge --project tsconfig.build.json --verbose --clean",
|
|
28
30
|
"changelog:update": "../../scripts/update-changelog.sh @metamask/messenger-cli",
|
|
29
31
|
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/messenger-cli",
|
|
32
|
+
"docs": "tsx src/docs/cli.ts",
|
|
30
33
|
"since-latest-release": "../../scripts/since-latest-release.sh",
|
|
31
34
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
|
|
32
35
|
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
|
|
@@ -34,17 +37,29 @@
|
|
|
34
37
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
35
38
|
},
|
|
36
39
|
"dependencies": {
|
|
40
|
+
"@docusaurus/core": "^3.9.0",
|
|
41
|
+
"@docusaurus/preset-classic": "^3.9.0",
|
|
42
|
+
"@docusaurus/theme-common": "^3.9.0",
|
|
43
|
+
"@easyops-cn/docusaurus-search-local": "^0.55.0",
|
|
44
|
+
"@mdx-js/react": "^3.0.0",
|
|
37
45
|
"@metamask/utils": "^11.9.0",
|
|
46
|
+
"execa": "^5.0.0",
|
|
47
|
+
"glob": "^10.0.0",
|
|
48
|
+
"prism-react-renderer": "^2.4.1",
|
|
49
|
+
"react": "^18.3.1",
|
|
50
|
+
"react-dom": "^18.3.1",
|
|
38
51
|
"yargs": "^17.7.2"
|
|
39
52
|
},
|
|
40
53
|
"devDependencies": {
|
|
54
|
+
"@docusaurus/types": "^3.9.0",
|
|
41
55
|
"@metamask/auto-changelog": "^3.4.4",
|
|
42
56
|
"@ts-bridge/cli": "^0.6.4",
|
|
43
57
|
"@types/jest": "^29.5.14",
|
|
58
|
+
"@types/node": "^16.18.54",
|
|
59
|
+
"@types/react": "^18.3.0",
|
|
44
60
|
"@types/yargs": "^17.0.32",
|
|
45
61
|
"deepmerge": "^4.2.2",
|
|
46
62
|
"eslint": "^9.39.1",
|
|
47
|
-
"execa": "^5.0.0",
|
|
48
63
|
"jest": "^29.7.0",
|
|
49
64
|
"ts-jest": "^29.2.5",
|
|
50
65
|
"typescript": "~5.3.3"
|
|
@@ -53,6 +68,11 @@
|
|
|
53
68
|
"eslint": ">=8",
|
|
54
69
|
"typescript": ">=5.0.0"
|
|
55
70
|
},
|
|
71
|
+
"peerDependenciesMeta": {
|
|
72
|
+
"eslint": {
|
|
73
|
+
"optional": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
56
76
|
"engines": {
|
|
57
77
|
"node": "^18.18 || >=20"
|
|
58
78
|
},
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
|
|
4
|
+
import type * as Preset from '@docusaurus/preset-classic';
|
|
5
|
+
import type { Config } from '@docusaurus/types';
|
|
6
|
+
import { themes } from 'prism-react-renderer';
|
|
7
|
+
|
|
8
|
+
const codeTheme = themes.dracula;
|
|
9
|
+
|
|
10
|
+
// When running inside a host project (e.g. metamask-extension) whose React
|
|
11
|
+
// version differs from Docusaurus's, we alias react/react-dom to the copies
|
|
12
|
+
// installed alongside this package. Only create aliases for packages that
|
|
13
|
+
// actually exist at the NODE_PATH location (they may be hoisted when the host
|
|
14
|
+
// already has a compatible version).
|
|
15
|
+
const extraNodeModules = process.env.NODE_PATH; // eslint-disable-line no-process-env
|
|
16
|
+
const reactAlias: Record<string, string> = {};
|
|
17
|
+
if (extraNodeModules) {
|
|
18
|
+
for (const pkg of ['react', 'react-dom', '@mdx-js/react']) {
|
|
19
|
+
const pkgPath = path.join(extraNodeModules, pkg);
|
|
20
|
+
if (fs.existsSync(pkgPath)) {
|
|
21
|
+
reactAlias[pkg] = pkgPath;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const config: Config = {
|
|
27
|
+
title: 'Messenger API',
|
|
28
|
+
tagline: 'Action and event reference for MetaMask controller messengers',
|
|
29
|
+
url: process.env.DOCS_URL || 'https://metamask.github.io', // eslint-disable-line no-process-env
|
|
30
|
+
baseUrl: process.env.DOCS_BASE_URL || '/', // eslint-disable-line no-process-env
|
|
31
|
+
favicon: 'img/favicons/favicon-96x96.png',
|
|
32
|
+
|
|
33
|
+
onBrokenLinks: 'warn',
|
|
34
|
+
|
|
35
|
+
markdown: {
|
|
36
|
+
hooks: {
|
|
37
|
+
onBrokenMarkdownLinks: 'warn',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
i18n: {
|
|
42
|
+
defaultLocale: 'en',
|
|
43
|
+
locales: ['en'],
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
plugins: [
|
|
47
|
+
function resolvePlugin() {
|
|
48
|
+
return {
|
|
49
|
+
name: 'resolve-deps',
|
|
50
|
+
configureWebpack() {
|
|
51
|
+
if (Object.keys(reactAlias).length === 0) {
|
|
52
|
+
return {};
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
resolve: { alias: reactAlias },
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
|
|
62
|
+
themes: [
|
|
63
|
+
[
|
|
64
|
+
'@easyops-cn/docusaurus-search-local',
|
|
65
|
+
{
|
|
66
|
+
docsRouteBasePath: '/',
|
|
67
|
+
hashed: true,
|
|
68
|
+
indexBlog: false,
|
|
69
|
+
highlightSearchTermsOnTargetPage: true,
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
],
|
|
73
|
+
|
|
74
|
+
presets: [
|
|
75
|
+
[
|
|
76
|
+
'classic',
|
|
77
|
+
{
|
|
78
|
+
docs: {
|
|
79
|
+
routeBasePath: '/',
|
|
80
|
+
sidebarPath: './sidebars.ts',
|
|
81
|
+
breadcrumbs: false,
|
|
82
|
+
},
|
|
83
|
+
blog: false,
|
|
84
|
+
theme: {
|
|
85
|
+
customCss: './src/css/custom.css',
|
|
86
|
+
},
|
|
87
|
+
} satisfies Preset.Options,
|
|
88
|
+
],
|
|
89
|
+
],
|
|
90
|
+
|
|
91
|
+
themeConfig: {
|
|
92
|
+
colorMode: {
|
|
93
|
+
respectPrefersColorScheme: true,
|
|
94
|
+
},
|
|
95
|
+
navbar: {
|
|
96
|
+
logo: {
|
|
97
|
+
alt: 'MetaMask logo',
|
|
98
|
+
src: 'img/metamask-logo.svg',
|
|
99
|
+
srcDark: 'img/metamask-logo-dark.svg',
|
|
100
|
+
},
|
|
101
|
+
hideOnScroll: false,
|
|
102
|
+
items: [
|
|
103
|
+
{
|
|
104
|
+
href: 'https://github.com/MetaMask/core',
|
|
105
|
+
label: 'GitHub',
|
|
106
|
+
position: 'right',
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
docs: {
|
|
111
|
+
sidebar: {
|
|
112
|
+
autoCollapseCategories: false,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
prism: {
|
|
116
|
+
theme: codeTheme,
|
|
117
|
+
defaultLanguage: 'typescript',
|
|
118
|
+
additionalLanguages: ['bash', 'json'],
|
|
119
|
+
},
|
|
120
|
+
} satisfies Preset.ThemeConfig,
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export default config;
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MetaMask-themed Docusaurus styles.
|
|
3
|
+
* Adapted from the MetaMask developer documentation template.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* ── Fonts ──────────────────────────────────────────────────────────── */
|
|
7
|
+
|
|
8
|
+
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;700&display=swap');
|
|
9
|
+
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: 'MM Sans Mono';
|
|
12
|
+
src: url('/fonts/MM-Sans/MM_Sans_Mono-Regular.woff2') format('woff2');
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* ── MetaMask color palette ─────────────────────────────────────────── */
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
/* General */
|
|
22
|
+
--general-white: #fff;
|
|
23
|
+
--general-white-off: #f7f9fc;
|
|
24
|
+
--general-gray-light: #e9edf6;
|
|
25
|
+
--general-gray: #c8ceda;
|
|
26
|
+
--general-gray-mid: #a1a8b7;
|
|
27
|
+
--general-gray-dark: #393d46;
|
|
28
|
+
--general-black-light: #242628;
|
|
29
|
+
--general-black-mid: #1b1b1b;
|
|
30
|
+
--general-black: #0a0a0a;
|
|
31
|
+
|
|
32
|
+
/* Developer */
|
|
33
|
+
--developer-purple-light: #eac2ff;
|
|
34
|
+
--developer-purple: #d075ff;
|
|
35
|
+
--developer-purple-dark: #3d065f;
|
|
36
|
+
--developer-green-light: #e5ffc3;
|
|
37
|
+
--developer-green: #baf24a;
|
|
38
|
+
--developer-green-dark: #013330;
|
|
39
|
+
--developer-blue-light: #cce7ff;
|
|
40
|
+
--developer-blue: #89b0ff;
|
|
41
|
+
--developer-orange-light: #ffa680;
|
|
42
|
+
--developer-orange: #ff5c16;
|
|
43
|
+
--developer-orange-dark: #661800;
|
|
44
|
+
|
|
45
|
+
/* Institution */
|
|
46
|
+
--institution-purple-dark-2: #25043a;
|
|
47
|
+
--institution-green-dark: #013330;
|
|
48
|
+
--institution-green-dark-2: #012321;
|
|
49
|
+
|
|
50
|
+
/* Consumer */
|
|
51
|
+
--consumer-blue-dark: #190066;
|
|
52
|
+
--consumer-blue-light: #cce7ff;
|
|
53
|
+
--consumer-green-dark: #013330;
|
|
54
|
+
--consumer-green-light: #e5ffc3;
|
|
55
|
+
--consumer-orange-dark: #661800;
|
|
56
|
+
--consumer-orange-light: #ffa680;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* ── Light mode Infima overrides ────────────────────────────────────── */
|
|
60
|
+
|
|
61
|
+
:root {
|
|
62
|
+
/* Primary: purple */
|
|
63
|
+
--ifm-color-primary: #d075ff;
|
|
64
|
+
--ifm-color-primary-dark: #3d065f;
|
|
65
|
+
--ifm-color-primary-darker: #25043a;
|
|
66
|
+
--ifm-color-primary-darkest: #25043a;
|
|
67
|
+
--ifm-color-primary-light: #eac2ff;
|
|
68
|
+
--ifm-color-primary-lighter: #eac2ff;
|
|
69
|
+
--ifm-color-primary-lightest: #eac2ff;
|
|
70
|
+
|
|
71
|
+
--ifm-heading-color: var(--general-black);
|
|
72
|
+
--ifm-font-family-monospace: 'MM Sans Mono', 'Andale Mono', AndaleMono, monospace;
|
|
73
|
+
--ifm-heading-font-family: var(--ifm-font-family-monospace);
|
|
74
|
+
--ifm-font-family-base: 'Geist', Arial, 'Helvetica Neue', Helvetica, sans-serif;
|
|
75
|
+
--ifm-code-font-size: 90%;
|
|
76
|
+
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
|
|
77
|
+
|
|
78
|
+
/* Links */
|
|
79
|
+
--ifm-link-color: var(--general-black);
|
|
80
|
+
--ifm-link-hover-color: var(--ifm-color-primary);
|
|
81
|
+
|
|
82
|
+
/* Sidebar */
|
|
83
|
+
--ifm-hover-overlay: var(--general-gray-light);
|
|
84
|
+
--ifm-menu-color-active: var(--general-black);
|
|
85
|
+
--ifm-menu-color: var(--general-gray-dark);
|
|
86
|
+
|
|
87
|
+
/* TOC */
|
|
88
|
+
--ifm-toc-border-color: var(--general-gray-light);
|
|
89
|
+
--ifm-toc-link-color: var(--general-gray-dark);
|
|
90
|
+
--ifm-code-background: #e6e6e6;
|
|
91
|
+
|
|
92
|
+
/* Admonitions */
|
|
93
|
+
--ifm-color-success: var(--developer-green-light);
|
|
94
|
+
--ifm-color-info: var(--developer-blue-light);
|
|
95
|
+
--ifm-color-warning: var(--developer-purple-light);
|
|
96
|
+
--ifm-color-danger: var(--developer-orange-light);
|
|
97
|
+
|
|
98
|
+
--ifm-color-secondary-contrast-background: var(--general-gray-light);
|
|
99
|
+
--ifm-color-secondary-contrast-foreground: var(--general-black);
|
|
100
|
+
--ifm-color-info-contrast-background: var(--developer-blue-light);
|
|
101
|
+
--ifm-color-info-contrast-foreground: var(--consumer-blue-dark);
|
|
102
|
+
--ifm-color-success-contrast-background: var(--developer-green-light);
|
|
103
|
+
--ifm-color-success-contrast-foreground: var(--consumer-green-dark);
|
|
104
|
+
--ifm-color-warning-contrast-background: var(--developer-orange-light);
|
|
105
|
+
--ifm-color-warning-contrast-foreground: var(--consumer-orange-dark);
|
|
106
|
+
--ifm-color-danger-contrast-background: var(--developer-orange-light);
|
|
107
|
+
--ifm-color-danger-contrast-foreground: var(--consumer-orange-dark);
|
|
108
|
+
|
|
109
|
+
--ifm-color-white: var(--general-white);
|
|
110
|
+
--ifm-color-black: var(--general-black);
|
|
111
|
+
--ifm-background-color: var(--general-white);
|
|
112
|
+
|
|
113
|
+
/* Buttons */
|
|
114
|
+
--ifm-button-border-radius: 10rem;
|
|
115
|
+
|
|
116
|
+
/* Header */
|
|
117
|
+
--ifm-navbar-link-hover-color: var(--developer-purple);
|
|
118
|
+
|
|
119
|
+
/* Footer */
|
|
120
|
+
--ifm-footer-background-color: var(--general-white);
|
|
121
|
+
|
|
122
|
+
/* Code Block */
|
|
123
|
+
--ifm-code-border-radius: 0;
|
|
124
|
+
--prism-background-color: var(--general-black-light);
|
|
125
|
+
|
|
126
|
+
/* Tables */
|
|
127
|
+
--ifm-table-border-color: var(--general-gray-light);
|
|
128
|
+
--ifm-table-head-background: var(--general-white-off);
|
|
129
|
+
--ifm-table-stripe-background: var(--general-white-off);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* ── Dark mode Infima overrides ─────────────────────────────────────── */
|
|
133
|
+
|
|
134
|
+
[data-theme='dark'] {
|
|
135
|
+
/* Primary: green */
|
|
136
|
+
--ifm-color-primary: #baf24a;
|
|
137
|
+
--ifm-color-primary-dark: #013330;
|
|
138
|
+
--ifm-color-primary-darker: #012321;
|
|
139
|
+
--ifm-color-primary-darkest: #012321;
|
|
140
|
+
--ifm-color-primary-light: #e5ffc3;
|
|
141
|
+
--ifm-color-primary-lighter: #e5ffc3;
|
|
142
|
+
--ifm-color-primary-lightest: #e5ffc3;
|
|
143
|
+
|
|
144
|
+
--ifm-background-surface-color: var(--general-black-light) !important;
|
|
145
|
+
|
|
146
|
+
/* Links */
|
|
147
|
+
--ifm-link-color: var(--general-white);
|
|
148
|
+
--ifm-link-hover-color: var(--ifm-color-primary);
|
|
149
|
+
|
|
150
|
+
/* Sidebar */
|
|
151
|
+
--ifm-hover-overlay: var(--general-black-light) !important;
|
|
152
|
+
--ifm-menu-color-active: var(--general-white) !important;
|
|
153
|
+
--ifm-menu-color: var(--general-white) !important;
|
|
154
|
+
|
|
155
|
+
/* TOC */
|
|
156
|
+
--ifm-toc-border-color: var(--general-gray) !important;
|
|
157
|
+
--ifm-code-background: #4d5059;
|
|
158
|
+
--ifm-toc-link-color: var(--general-gray);
|
|
159
|
+
|
|
160
|
+
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
|
161
|
+
|
|
162
|
+
/* Admonitions */
|
|
163
|
+
--ifm-color-success: var(--developer-green);
|
|
164
|
+
--ifm-color-info: var(--developer-blue);
|
|
165
|
+
--ifm-color-warning: var(--developer-purple);
|
|
166
|
+
--ifm-color-danger: var(--developer-orange);
|
|
167
|
+
|
|
168
|
+
--ifm-color-secondary-contrast-background: var(--general-black-light) !important;
|
|
169
|
+
--ifm-color-info-contrast-background: var(--consumer-blue-dark) !important;
|
|
170
|
+
--ifm-color-info-contrast-foreground: var(--consumer-blue-light) !important;
|
|
171
|
+
--ifm-color-success-contrast-background: var(--consumer-green-dark) !important;
|
|
172
|
+
--ifm-color-success-contrast-foreground: var(--consumer-green-light) !important;
|
|
173
|
+
--ifm-color-warning-contrast-background: var(--consumer-orange-dark) !important;
|
|
174
|
+
--ifm-color-warning-contrast-foreground: var(--consumer-orange-light) !important;
|
|
175
|
+
--ifm-color-danger-contrast-background: var(--consumer-orange-dark) !important;
|
|
176
|
+
--ifm-color-danger-contrast-foreground: var(--consumer-orange-light) !important;
|
|
177
|
+
|
|
178
|
+
--ifm-background-color: var(--general-gray-dark);
|
|
179
|
+
--ifm-heading-color: var(--general-white);
|
|
180
|
+
|
|
181
|
+
/* Header */
|
|
182
|
+
--ifm-navbar-link-hover-color: var(--developer-green);
|
|
183
|
+
|
|
184
|
+
/* Footer */
|
|
185
|
+
--ifm-footer-background-color: var(--general-black-light);
|
|
186
|
+
|
|
187
|
+
/* Tables */
|
|
188
|
+
--ifm-table-border-color: var(--general-black-light);
|
|
189
|
+
--ifm-table-head-background: var(--general-black-mid);
|
|
190
|
+
--ifm-table-stripe-background: var(--general-black-light) !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* ── Body & Dark mode ───────────────────────────────────────────────── */
|
|
194
|
+
|
|
195
|
+
body {
|
|
196
|
+
height: auto !important;
|
|
197
|
+
-webkit-text-size-adjust: 100%;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
[data-theme='dark'] body {
|
|
201
|
+
background: var(--general-gray-dark);
|
|
202
|
+
color: var(--general-white);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* ── Typography ─────────────────────────────────────────────────────── */
|
|
206
|
+
|
|
207
|
+
h1, h2, h3, h4, h5, h6 {
|
|
208
|
+
font-family: var(--ifm-font-family-base);
|
|
209
|
+
font-weight: 500;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.alert {
|
|
213
|
+
border: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* ── Navbar ──────────────────────────────────────────────────────────── */
|
|
217
|
+
|
|
218
|
+
.navbar {
|
|
219
|
+
box-shadow: none;
|
|
220
|
+
border-bottom: 1px solid var(--ifm-toc-border-color);
|
|
221
|
+
height: 5rem; /* 80px */
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.navbar > .navbar__inner {
|
|
225
|
+
height: 100%;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.navbar__brand {
|
|
229
|
+
margin-right: 4rem;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.navbar__logo {
|
|
233
|
+
height: 3.2rem;
|
|
234
|
+
width: 6.5rem;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.navbar__title {
|
|
238
|
+
display: none;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.navbar__link {
|
|
242
|
+
font-size: 1.6rem;
|
|
243
|
+
font-weight: 500;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.navbar__link:hover {
|
|
247
|
+
text-decoration: none !important;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* ── Footer ──────────────────────────────────────────────────────────── */
|
|
251
|
+
|
|
252
|
+
.footer {
|
|
253
|
+
border-top: 1px solid var(--general-gray-light);
|
|
254
|
+
padding: 4.6rem 3rem 3rem;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
[data-theme='dark'] .footer {
|
|
258
|
+
border-top: 1px solid transparent;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.footer__logo {
|
|
262
|
+
max-width: 6.4rem;
|
|
263
|
+
margin-bottom: 1rem;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@media screen and (min-width: 997px) {
|
|
267
|
+
.footer__logo {
|
|
268
|
+
max-width: 12.4rem;
|
|
269
|
+
margin-bottom: 2rem;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.footer__copyright {
|
|
274
|
+
font-size: 1.2rem;
|
|
275
|
+
font-style: normal;
|
|
276
|
+
font-weight: 400;
|
|
277
|
+
line-height: 1.8rem;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
[data-theme='dark'] .footer__copyright {
|
|
281
|
+
color: var(--general-gray);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* ── Sidebar ─────────────────────────────────────────────────────────── */
|
|
285
|
+
|
|
286
|
+
html {
|
|
287
|
+
scroll-padding-top: 5rem;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* ── Code blocks ─────────────────────────────────────────────────────── */
|
|
291
|
+
|
|
292
|
+
article h3 code {
|
|
293
|
+
font-size: 1rem;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* ── Search ──────────────────────────────────────────────────────────── */
|
|
297
|
+
|
|
298
|
+
:root {
|
|
299
|
+
--search-local-highlight-color: var(--developer-purple);
|
|
300
|
+
--search-local-hit-active-color: var(--general-white);
|
|
301
|
+
--search-local-hit-background: var(--general-white);
|
|
302
|
+
--search-local-modal-background: var(--general-white-off);
|
|
303
|
+
--search-local-hit-shadow: 0 1px 3px 0 var(--general-gray);
|
|
304
|
+
--search-local-muted-color: var(--general-gray-mid);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
[data-theme='dark'] {
|
|
308
|
+
--search-local-highlight-color: var(--developer-purple-light);
|
|
309
|
+
--search-local-hit-active-color: var(--general-black);
|
|
310
|
+
--search-local-hit-background: var(--general-black-light);
|
|
311
|
+
--search-local-modal-background: var(--general-gray-dark);
|
|
312
|
+
--search-local-hit-shadow: none;
|
|
313
|
+
--search-local-muted-color: var(--general-gray-mid);
|
|
314
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="417" height="400" viewBox="0 0 417 400" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M374.724 0L234.039 83.696H172.161L31.4754 0L0.23845 122.444L23.9642 199.106L0 288.644L30.9985 392.489L120.179 366.021L177.168 400H229.151L286.259 366.021L375.44 392.489L406.319 288.644L382.355 199.106L405.842 124.709L374.724 0Z" fill="#0A0A0A"/>
|
|
3
|
+
<path d="M369.704 198.869L357.186 205.665L377.454 281.373H281.12L229.973 320.121L236.769 327.632L244.16 326.679L276.47 302.118V336.217L290.301 340.27V295.084H377.216L393.669 288.288L369.585 198.631L369.704 198.869Z" fill="#D075FF"/>
|
|
4
|
+
<path d="M303.884 202.453V229.875L286.238 213.303H241.529L239.383 227.133H280.754L296.611 242.155L286.715 244.54V258.727L317.475 251.216L317.714 205.553L303.884 202.334V202.453Z" fill="#D075FF"/>
|
|
5
|
+
<path d="M274.699 232.955H243.82L235.116 255.369L233.328 267.053L241.435 270.153L286.622 259.065H286.86V244.758L274.818 232.955H274.699ZM244.178 259.185L250.497 242.851H270.646L278.753 250.72L244.178 259.185Z" fill="#BAF24A"/>
|
|
6
|
+
<path d="M36.2611 198.869L48.7797 205.665L28.3923 281.373H124.845L175.993 320.121L169.197 327.632L161.805 326.679L129.495 302.118V336.217L115.665 340.27V295.084H28.7499L12.2969 288.288L36.3803 198.631L36.2611 198.869Z" fill="#D075FF"/>
|
|
7
|
+
<path d="M102.199 202.453V229.875L119.844 213.303H164.554L166.7 227.133H125.329L109.472 242.155L119.368 244.54V258.727L88.4883 251.216V205.553L102.199 202.334V202.453Z" fill="#D075FF"/>
|
|
8
|
+
<path d="M377.343 295.331L357.909 360.547L244.168 326.806L236.776 327.76L233.915 338.133L266.344 347.79L221.873 374.258H184.079L139.608 347.79L172.037 338.133L169.176 327.76L161.784 326.806L48.043 360.547L28.6093 295.331L12.1562 288.654L38.7434 377.835L121.486 353.274L180.144 388.207H225.569L284.347 353.274L367.089 377.835L393.676 288.654L377.343 295.331Z" fill="#89B0FF"/>
|
|
9
|
+
<path d="M393.459 122.095L366.991 18.4883L237.275 95.6269H168.839L39.1225 18.4883L12.6546 122.095L12.2969 123.168L12.6546 124.241L36.2611 198.757L48.6605 205.552H88.124L101.954 202.333L156.798 164.777L180.166 315.239L184.458 310.47H193.4L168.959 152.616L173.251 109.219H232.744L237.036 152.616L212.595 310.47H221.537L225.829 315.239L249.197 164.777L304.041 202.333L317.871 205.552H357.334L369.734 198.757L393.34 124.241L393.698 123.168L393.34 122.095H393.459ZM93.0122 191.841H48.4221L26.4847 122.81L46.9914 42.8102L151.313 151.782L92.893 191.722L93.0122 191.841ZM156.559 137.356L83.5935 61.0516L159.659 106.238L156.678 137.236L156.559 137.356ZM246.216 106.357L322.282 61.1708L249.316 137.475L246.336 106.476L246.216 106.357ZM357.334 191.961H312.863L254.443 152.02L359.003 42.9294L379.51 122.929L357.573 191.961H357.334Z" fill="#FF5C16"/>
|
|
10
|
+
<path d="M221.398 310.707H184.558L169.059 327.756L176.808 356.013H228.91L236.659 327.756L221.16 310.707H221.398ZM218.537 342.182H187.419L184.439 331.452L190.519 324.656H215.318L221.398 331.452L218.418 342.182H218.537Z" fill="#BAF24A"/>
|
|
11
|
+
<path d="M119.363 244.641V258.829H119.602L164.788 270.036L172.895 266.936L171.107 255.252L162.404 232.838H131.524L119.482 244.641H119.363ZM127.351 250.602L135.459 242.734H155.608L161.927 259.067L127.351 250.602Z" fill="#BAF24A"/>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 66 34">
|
|
2
|
+
<path fill="#BAF24A" d="M37.173 25.901v7.1952h-3.6845v-4.985l-4.1988.4924c-.9222.1072-1.328.4114-1.328.9716 0 .8206.7703 1.1664 2.4216 1.1664 1.0069 0 2.1222-.151 3.1074-.4114l-1.9074 2.7223c-.7703.1728-1.5211.2582-2.3131.2582-3.3417 0-5.2491-1.3393-5.2491-3.7158 0-2.0964 1.4994-3.1971 4.9062-3.5866l4.5004-.5274c-.243-1.3196-1.2303-1.8929-3.1941-1.8929-1.8423 0-3.8777.4749-5.6982 1.3611l.5793-3.219c1.6926-.7134 3.6217-1.081 5.5703-1.081 4.2856 0 6.4924 1.7944 6.4924 5.2498l-.0044.0021ZM4.02739 16.8917 0 33.0962h4.02739l1.9985-8.1427 3.46538 4.1884h4.19883l3.4654-4.1884 1.9985 8.1427h4.0273L19.154 16.8896l-7.5644 9.0596-7.56438-9.0596.00217.0021ZM19.154.685059 11.5896 9.74469 4.02739.685059 0 16.8917h4.02739l1.9985-8.14269 3.46538 4.18839h4.19883l3.4654-4.18839 1.9985 8.14269h4.0273L19.154.685059ZM46.8574 25.75l-3.257-.4748c-.8138-.1291-1.1349-.3895-1.1349-.8425 0-.7353.792-1.0592 2.4216-1.0592 1.8857 0 3.5782.3896 5.3576 1.2321l-.4492-3.1753c-1.4365-.5186-3.0856-.7768-4.7999-.7768-4.0057 0-6.1929 1.4049-6.1929 3.9324 0 1.9673 1.1999 3.068 3.7496 3.4575l3.3005.4968c.8354.1291 1.1782.4529 1.1782.9716 0 .7352-.7703 1.081-2.3348 1.081-2.0571 0-4.2856-.4968-6.1062-1.383l.3646 3.1752c1.5645.5843 3.5999.9301 5.5072.9301 4.1142 0 6.2559-1.4487 6.2559-4.02 0-2.0526-1.1999-3.1555-3.8559-3.5429l-.0044-.0022Zm5.2925-7.4118v14.758h3.6845v-14.758h-3.6845Zm7.9897 8.1252 5.1232-5.5977h-4.5851l-4.8433 5.7903 5.1644 6.438h4.6502l-5.5094-6.6327v.0021Zm-8.504-13.073c0 2.3765 1.9074 3.7158 5.2491 3.7158.792 0 1.5428-.0875 2.3131-.2582l1.9074-2.7223c-.9852.2582-2.1005.4114-3.1074.4114-1.6491 0-2.4216-.3457-2.4216-1.1664 0-.5624.4079-.8644 1.328-.9716l4.1988-.4923v4.9849h3.6845V9.69655c0-3.45754-2.2068-5.24977-6.4924-5.24977-1.9507 0-3.8776.36763-5.5702 1.08102l-.5794 3.21902c1.8206-.88627 3.856-1.36113 5.6983-1.36113 1.9638 0 2.9511.57334 3.1941 1.89289l-4.5004.52739c-3.4068.38953-4.9062 1.49023-4.9062 3.58663l.0043-.0022Zm-10.305-.7768c0 2.9827 1.7143 4.4948 5.0994 4.4948 1.3497 0 2.465-.2167 3.5348-.7134l.4708-3.2628c-1.0285.6259-2.0788.9497-3.129.9497-1.5862 0-2.2936-.6477-2.2936-2.0964V7.6636h5.5919V4.66123H45.013V2.11184l-7.0067 3.73765V7.6636h3.32v4.9478l.0043.0022Zm-3.6216-1.3612v.7353h-9.9578c.4492 1.4968 1.7837 2.1818 4.1533 2.1818 1.8856 0 3.6433-.3895 5.2056-1.1445l-.4492 3.1555c-1.4365.604-3.257.9301-5.121.9301-4.9496 0-7.649-2.2037-7.649-6.2871 0-4.08337 2.7428-6.37454 6.985-6.37454s6.8353 2.48593 6.8353 6.80564l-.0022-.0022ZM27.7035 9.47991h6.2971c-.332-1.43335-1.4235-2.18176-3.1681-2.18176s-2.7797.72871-3.129 2.18176Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 66 34">
|
|
2
|
+
<path fill="#0A0A0A" d="M37.173 25.901v7.1952h-3.6845v-4.985l-4.1988.4924c-.9222.1072-1.328.4114-1.328.9716 0 .8206.7703 1.1664 2.4216 1.1664 1.0069 0 2.1222-.151 3.1074-.4114l-1.9074 2.7223c-.7703.1728-1.5211.2582-2.3131.2582-3.3417 0-5.2491-1.3393-5.2491-3.7158 0-2.0964 1.4994-3.1971 4.9062-3.5866l4.5004-.5274c-.243-1.3196-1.2303-1.8929-3.1941-1.8929-1.8423 0-3.8777.4749-5.6982 1.3611l.5793-3.219c1.6926-.7134 3.6217-1.081 5.5703-1.081 4.2856 0 6.4924 1.7944 6.4924 5.2498l-.0044.0021ZM4.02739 16.8917 0 33.0962h4.02739l1.9985-8.1427 3.46538 4.1884h4.19883l3.4654-4.1884 1.9985 8.1427h4.0273L19.154 16.8896l-7.5644 9.0596-7.56438-9.0596.00217.0021ZM19.154.685059 11.5896 9.74469 4.02739.685059 0 16.8917h4.02739l1.9985-8.14269 3.46538 4.18839h4.19883l3.4654-4.18839 1.9985 8.14269h4.0273L19.154.685059ZM46.8574 25.75l-3.257-.4748c-.8138-.1291-1.1349-.3895-1.1349-.8425 0-.7353.792-1.0592 2.4216-1.0592 1.8857 0 3.5782.3896 5.3576 1.2321l-.4492-3.1753c-1.4365-.5186-3.0856-.7768-4.7999-.7768-4.0057 0-6.1929 1.4049-6.1929 3.9324 0 1.9673 1.1999 3.068 3.7496 3.4575l3.3005.4968c.8354.1291 1.1782.4529 1.1782.9716 0 .7352-.7703 1.081-2.3348 1.081-2.0571 0-4.2856-.4968-6.1062-1.383l.3646 3.1752c1.5645.5843 3.5999.9301 5.5072.9301 4.1142 0 6.2559-1.4487 6.2559-4.02 0-2.0526-1.1999-3.1555-3.8559-3.5429l-.0044-.0022Zm5.2925-7.4118v14.758h3.6845v-14.758h-3.6845Zm7.9897 8.1252 5.1232-5.5977h-4.5851l-4.8433 5.7903 5.1644 6.438h4.6502l-5.5094-6.6327v.0021Zm-8.504-13.073c0 2.3765 1.9074 3.7158 5.2491 3.7158.792 0 1.5428-.0875 2.3131-.2582l1.9074-2.7223c-.9852.2582-2.1005.4114-3.1074.4114-1.6491 0-2.4216-.3457-2.4216-1.1664 0-.5624.4079-.8644 1.328-.9716l4.1988-.4923v4.9849h3.6845V9.69655c0-3.45754-2.2068-5.24977-6.4924-5.24977-1.9507 0-3.8776.36763-5.5702 1.08102l-.5794 3.21902c1.8206-.88627 3.856-1.36113 5.6983-1.36113 1.9638 0 2.9511.57334 3.1941 1.89289l-4.5004.52739c-3.4068.38953-4.9062 1.49023-4.9062 3.58663l.0043-.0022Zm-10.305-.7768c0 2.9827 1.7143 4.4948 5.0994 4.4948 1.3497 0 2.465-.2167 3.5348-.7134l.4708-3.2628c-1.0285.6259-2.0788.9497-3.129.9497-1.5862 0-2.2936-.6477-2.2936-2.0964V7.6636h5.5919V4.66123H45.013V2.11184l-7.0067 3.73765V7.6636h3.32v4.9478l.0043.0022Zm-3.6216-1.3612v.7353h-9.9578c.4492 1.4968 1.7837 2.1818 4.1533 2.1818 1.8856 0 3.6433-.3895 5.2056-1.1445l-.4492 3.1555c-1.4365.604-3.257.9301-5.121.9301-4.9496 0-7.649-2.2037-7.649-6.2871 0-4.08337 2.7428-6.37454 6.985-6.37454s6.8353 2.48593 6.8353 6.80564l-.0022-.0022ZM27.7035 9.47991h6.2971c-.332-1.43335-1.4235-2.18176-3.1681-2.18176s-2.7797.72871-3.129 2.18176Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": false,
|
|
4
|
+
"noEmit": true,
|
|
5
|
+
"jsx": "react-jsx",
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "Bundler",
|
|
8
|
+
"target": "ES2020",
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"strict": true
|
|
11
|
+
},
|
|
12
|
+
"include": ["./**/*.ts", "./**/*.tsx"]
|
|
13
|
+
}
|