Skip to content

Commit 105243b

Browse files
committed
chore: seperate ui constants
1 parent 9b03c22 commit 105243b

3 files changed

Lines changed: 122 additions & 123 deletions

File tree

src/generators/web/constants.mjs

Lines changed: 0 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -81,125 +81,3 @@ export const SPECULATION_RULES = JSON.stringify({
8181
{ where: { selector_matches: '[rel~=prefetch]' }, eagerness: 'moderate' },
8282
],
8383
});
84-
85-
/**
86-
* @deprecated This is being exported temporarily during the transition period.
87-
* For a more general solution, category information should be added to pages in
88-
* YAML format, and this array should be removed.
89-
*
90-
* Defines the sidebar navigation groups and their associated page URLs.
91-
* @type {Array<{ groupName: string, items: Array<string> }>}
92-
*/
93-
export const SIDEBAR_GROUPS = [
94-
{
95-
groupName: 'Getting Started',
96-
items: [
97-
'documentation.html',
98-
'synopsis.html',
99-
'cli.html',
100-
'environment_variables.html',
101-
'globals.html',
102-
],
103-
},
104-
{
105-
groupName: 'Module System',
106-
items: [
107-
'modules.html',
108-
'esm.html',
109-
'module.html',
110-
'packages.html',
111-
'typescript.html',
112-
],
113-
},
114-
{
115-
groupName: 'Networking & Protocols',
116-
items: [
117-
'http.html',
118-
'http2.html',
119-
'https.html',
120-
'net.html',
121-
'dns.html',
122-
'dgram.html',
123-
'quic.html',
124-
],
125-
},
126-
{
127-
groupName: 'File System & I/O',
128-
items: [
129-
'fs.html',
130-
'path.html',
131-
'buffer.html',
132-
'stream.html',
133-
'string_decoder.html',
134-
'zlib.html',
135-
'readline.html',
136-
'tty.html',
137-
],
138-
},
139-
{
140-
groupName: 'Asynchronous Programming',
141-
items: [
142-
'async_context.html',
143-
'async_hooks.html',
144-
'events.html',
145-
'timers.html',
146-
'webstreams.html',
147-
],
148-
},
149-
{
150-
groupName: 'Process & Concurrency',
151-
items: [
152-
'process.html',
153-
'child_process.html',
154-
'cluster.html',
155-
'worker_threads.html',
156-
'os.html',
157-
],
158-
},
159-
{
160-
groupName: 'Security & Cryptography',
161-
items: ['crypto.html', 'webcrypto.html', 'permissions.html', 'tls.html'],
162-
},
163-
{
164-
groupName: 'Data & URL Utilities',
165-
items: ['url.html', 'querystring.html', 'punycode.html', 'util.html'],
166-
},
167-
{
168-
groupName: 'Debugging & Diagnostics',
169-
items: [
170-
'debugger.html',
171-
'inspector.html',
172-
'console.html',
173-
'report.html',
174-
'tracing.html',
175-
'diagnostics_channel.html',
176-
'errors.html',
177-
],
178-
},
179-
{
180-
groupName: 'Testing & Assertion',
181-
items: ['test.html', 'assert.html', 'repl.html'],
182-
},
183-
{
184-
groupName: 'Performance & Observability',
185-
items: ['perf_hooks.html', 'v8.html'],
186-
},
187-
{
188-
groupName: 'Runtime & Advanced APIs',
189-
items: [
190-
'vm.html',
191-
'wasi.html',
192-
'sqlite.html',
193-
'single-executable-applications.html',
194-
'intl.html',
195-
],
196-
},
197-
{
198-
groupName: 'Native & Low-level Extensions',
199-
items: ['addons.html', 'n-api.html', 'embedding.html'],
200-
},
201-
{
202-
groupName: 'Legacy & Deprecated',
203-
items: ['deprecations.html', 'domain.html'],
204-
},
205-
];
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
/**
2+
* @deprecated This is being exported temporarily during the transition period.
3+
* For a more general solution, category information should be added to pages in
4+
* YAML format, and this array should be removed.
5+
*
6+
* Defines the sidebar navigation groups and their associated page URLs.
7+
* @type {Array<{ groupName: string, items: Array<string> }>}
8+
*/
9+
export const SIDEBAR_GROUPS = [
10+
{
11+
groupName: 'Getting Started',
12+
items: [
13+
'documentation.html',
14+
'synopsis.html',
15+
'cli.html',
16+
'environment_variables.html',
17+
'globals.html',
18+
],
19+
},
20+
{
21+
groupName: 'Module System',
22+
items: [
23+
'modules.html',
24+
'esm.html',
25+
'module.html',
26+
'packages.html',
27+
'typescript.html',
28+
],
29+
},
30+
{
31+
groupName: 'Networking & Protocols',
32+
items: [
33+
'http.html',
34+
'http2.html',
35+
'https.html',
36+
'net.html',
37+
'dns.html',
38+
'dgram.html',
39+
'quic.html',
40+
],
41+
},
42+
{
43+
groupName: 'File System & I/O',
44+
items: [
45+
'fs.html',
46+
'path.html',
47+
'buffer.html',
48+
'stream.html',
49+
'string_decoder.html',
50+
'zlib.html',
51+
'readline.html',
52+
'tty.html',
53+
],
54+
},
55+
{
56+
groupName: 'Asynchronous Programming',
57+
items: [
58+
'async_context.html',
59+
'async_hooks.html',
60+
'events.html',
61+
'timers.html',
62+
'webstreams.html',
63+
],
64+
},
65+
{
66+
groupName: 'Process & Concurrency',
67+
items: [
68+
'process.html',
69+
'child_process.html',
70+
'cluster.html',
71+
'worker_threads.html',
72+
'os.html',
73+
],
74+
},
75+
{
76+
groupName: 'Security & Cryptography',
77+
items: ['crypto.html', 'webcrypto.html', 'permissions.html', 'tls.html'],
78+
},
79+
{
80+
groupName: 'Data & URL Utilities',
81+
items: ['url.html', 'querystring.html', 'punycode.html', 'util.html'],
82+
},
83+
{
84+
groupName: 'Debugging & Diagnostics',
85+
items: [
86+
'debugger.html',
87+
'inspector.html',
88+
'console.html',
89+
'report.html',
90+
'tracing.html',
91+
'diagnostics_channel.html',
92+
'errors.html',
93+
],
94+
},
95+
{
96+
groupName: 'Testing & Assertion',
97+
items: ['test.html', 'assert.html', 'repl.html'],
98+
},
99+
{
100+
groupName: 'Performance & Observability',
101+
items: ['perf_hooks.html', 'v8.html'],
102+
},
103+
{
104+
groupName: 'Runtime & Advanced APIs',
105+
items: [
106+
'vm.html',
107+
'wasi.html',
108+
'sqlite.html',
109+
'single-executable-applications.html',
110+
'intl.html',
111+
],
112+
},
113+
{
114+
groupName: 'Native & Low-level Extensions',
115+
items: ['addons.html', 'n-api.html', 'embedding.html'],
116+
},
117+
{
118+
groupName: 'Legacy & Deprecated',
119+
items: ['deprecations.html', 'domain.html'],
120+
},
121+
];

src/generators/web/ui/utils/sidebar.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SIDEBAR_GROUPS } from '../../constants.mjs';
1+
import { SIDEBAR_GROUPS } from '../constants.mjs';
22

33
/**
44
* @deprecated This is being exported temporarily during the transition period.

0 commit comments

Comments
 (0)