Skip to content

Commit 78fa10d

Browse files
committed
WIP: docs on reactive engine
1 parent b2f5a1a commit 78fa10d

File tree

5 files changed

+117
-2
lines changed

5 files changed

+117
-2
lines changed

apps/virtuoso.dev/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/build
66
docs/virtuoso-api/*
77
docs/virtuoso-message-list-api/*
8+
docs/virtuoso-reactive-engine-api/*
89

910
# Generated files
1011
.docusaurus

apps/virtuoso.dev/docusaurus.config.ts

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,67 @@ const config: Config = {
158158
sort: 'kind',
159159
},
160160
],
161+
[
162+
'docusaurus-plugin-typedoc',
163+
{
164+
id: '@virtuoso.dev/reactive-engine',
165+
sidebar: {
166+
autoConfiguration: true,
167+
typescript: true,
168+
pretty: true,
169+
},
170+
projectDocuments: ['../../packages/reactive-engine/docs/*.md'],
171+
// TypeDoc options
172+
entryPoints: ['../../packages/reactive-engine/src/index.ts'],
173+
tsconfig: 'tsconfig.reactive-engine.json',
174+
175+
// Plugin options
176+
out: 'docs/virtuoso-reactive-engine-api',
177+
plugin: ['typedoc-plugin-no-inherit'],
178+
179+
excludeExternals: false,
180+
excludePrivate: true,
181+
excludeInternal: true,
182+
useHTMLEncodedBrackets: false,
183+
184+
categoryOrder: ['Guides', 'API Reference', 'Nodes', 'Hooks', 'Operators', 'Combinators', '*', 'Logging', 'Misc'],
185+
groupOrder: ['Functions', 'Variables', 'Interfaces', 'Type Aliases', '*'],
186+
sort: 'kind',
187+
kindSortOrder: [
188+
'Function',
189+
'Reference',
190+
'Project',
191+
'Module',
192+
'Namespace',
193+
'Enum',
194+
'EnumMember',
195+
'Class',
196+
'Interface',
197+
'TypeAlias',
198+
'Constructor',
199+
'Property',
200+
'Variable',
201+
'Accessor',
202+
'Method',
203+
'Parameter',
204+
'TypeParameter',
205+
'TypeLiteral',
206+
'CallSignature',
207+
'ConstructorSignature',
208+
'IndexSignature',
209+
'GetSignature',
210+
'SetSignature',
211+
],
212+
213+
disableSources: true,
214+
// allReflectionsHaveOwnDocument: true,
215+
hideBreadcrumbs: true,
216+
parametersFormat: 'table',
217+
watch: true,
218+
router: 'module',
219+
},
220+
],
221+
161222
[
162223
'@docusaurus/plugin-client-redirects',
163224
{
@@ -245,13 +306,19 @@ const config: Config = {
245306
type: 'docSidebar',
246307
sidebarId: 'messageListApiSidebar',
247308
position: 'left',
248-
label: 'Virtuoso Message List API',
309+
label: 'Message List API',
249310
},
250311
{
251312
type: 'docSidebar',
252313
sidebarId: 'masonryApiSidebar',
253314
position: 'left',
254-
label: 'Virtuoso Masonry API',
315+
label: ' Masonry API',
316+
},
317+
{
318+
type: 'docSidebar',
319+
sidebarId: 'reactiveEngineSidebar',
320+
position: 'left',
321+
label: 'Reactive Engine',
255322
},
256323
{
257324
to: '/pricing',

apps/virtuoso.dev/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@radix-ui/themes": "^3.2.0",
3333
"@tanstack/react-table": "^8.15.0",
3434
"@virtuoso.dev/masonry": "*",
35+
"@virtuoso.dev/reactive-engine": "*",
3536
"@virtuoso.dev/message-list": "^1.13.1",
3637
"@virtuoso.dev/react-monaco-editor": "^0.60.0",
3738
"clsx": "^2.0.0",

apps/virtuoso.dev/sidebars.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs'
2+
import engineSidebar from './docs/virtuoso-reactive-engine-api/typedoc-sidebar'
3+
import { SidebarItemConfig } from '@docusaurus/plugin-content-docs/src/sidebars/types.js'
24

5+
const engineSidebarItems = engineSidebar.items as SidebarItemConfig[]
36
/**
47
* Creating a sidebar enables you to:
58
- create an ordered group of docs
@@ -49,6 +52,27 @@ const sidebars: SidebarsConfig = {
4952
items: require('./docs/virtuoso-masonry-api/typedoc-sidebar.cjs'),
5053
},
5154
],
55+
reactiveEngineSidebar: [
56+
{
57+
type: 'category',
58+
collapsible: false,
59+
label: 'Reactive Engine',
60+
link: {
61+
type: 'doc',
62+
id: 'virtuoso-reactive-engine-api/index',
63+
},
64+
items: [
65+
...engineSidebarItems.slice(0, -1),
66+
67+
{
68+
type: 'doc',
69+
// @ts-ignore
70+
id: engineSidebarItems.at(-1).items[0].id,
71+
label: 'API Reference',
72+
},
73+
],
74+
},
75+
],
5276
/*
5377
messageListApiSidebar: [
5478
{ type: "autogenerated", dirName: "virtuoso-message-list-api" },
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2020",
4+
"useDefineForClassFields": true,
5+
"lib": ["ES2023", "DOM", "DOM.Iterable"],
6+
"module": "ESNext",
7+
"skipLibCheck": true,
8+
/* Bundler mode */
9+
"moduleResolution": "bundler",
10+
"allowImportingTsExtensions": true,
11+
"resolveJsonModule": true,
12+
"isolatedModules": true,
13+
"noEmit": true,
14+
"jsx": "react-jsx",
15+
/* Linting */
16+
"strict": true,
17+
"noUnusedLocals": true,
18+
"noUnusedParameters": true,
19+
"noFallthroughCasesInSwitch": true
20+
},
21+
"include": ["../../packages//reactive-engine/src/index.ts"]
22+
}

0 commit comments

Comments
 (0)