Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Should be generated on build by the plugin
/static/llms.txt

# Typedoc generated folder
/docs/api-reference

# Generated files
.docusaurus
.cache-loader
Expand Down
226 changes: 0 additions & 226 deletions docs/docs/api-reference.md

This file was deleted.

39 changes: 39 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,45 @@ const config = {
],
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'api-hypergraph',
entryPoints: ['../packages/hypergraph/src/index.ts'],
tsconfig: '../packages/hypergraph/tsconfig.json',
out: 'docs/api-reference/hypergraph',
readme: 'none',
name: 'Hypergraph',
categorizeByGroup: false,
excludeExternals: true,
excludePrivate: true,
excludeProtected: true,
sidebar: {
autoConfiguration: true,
pretty: true,
},
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'api-hypergraph-react',
entryPoints: ['../packages/hypergraph-react/src/index.ts'],
tsconfig: '../packages/hypergraph-react/tsconfig.json',
out: 'docs/api-reference/hypergraph-react',
readme: 'none',
name: 'Hypergraph React',
categorizeByGroup: false,
excludeExternals: true,
excludePrivate: true,
excludeProtected: true,
skipErrorChecking: true,
sidebar: {
autoConfiguration: true,
pretty: true,
},
},
],
],

presets: [
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"devDependencies": {
"@docusaurus/module-type-aliases": "3.8.1",
"@docusaurus/types": "3.8.1",
"docusaurus-plugin-llms": "^0.1.5"
"docusaurus-plugin-llms": "^0.1.5",
"docusaurus-plugin-typedoc": "^1.4.2"
},
"browserslist": {
"production": [
Expand Down
22 changes: 21 additions & 1 deletion docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

@type {import('@docusaurus/plugin-content-docs').SidebarsConfig}
*/
import typedocSidebarHypergraph from './docs/api-reference/hypergraph/typedoc-sidebar.cjs';
import typedocSidebarHypergraphReact from './docs/api-reference/hypergraph-react/typedoc-sidebar.cjs';

const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
docs: [
Expand All @@ -34,7 +37,24 @@ const sidebars = {
{ type: 'doc', id: 'filtering-query-results', label: '🔍 Filtering Query Results' },
{ type: 'doc', id: 'space-invitations', label: '🔗 Space Invitations' },
{ type: 'doc', id: 'inboxes', label: '🔍 Inboxes' },
// { type: 'doc', id: 'api-reference', label: '📚 API Reference' },
{
type: 'category',
label: '📚 API Reference',
items: [
{
type: 'category',
label: 'Hypergraph',
link: { type: 'doc', id: 'api-reference/hypergraph/index' },
items: typedocSidebarHypergraph,
},
{
type: 'category',
label: 'Hypergraph React',
link: { type: 'doc', id: 'api-reference/hypergraph-react/index' },
items: typedocSidebarHypergraphReact,
},
],
},
{ type: 'doc', id: 'troubleshooting', label: '🛠️ Troubleshooting' },
{ type: 'doc', id: 'faq', label: '❓ FAQ' },
{
Expand Down
Loading
Loading