Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 15 additions & 10 deletions docs-gen/hook.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const ROOT_SDK_NAME_REPLACEMENTS = [
['@monocloud/auth-nextjs', 'Next.js'],
['@monocloud/auth-node-core', 'Node.js Core'],
['@monocloud/auth-core', 'Node.js'],
['@monocloud/auth-js-core', 'js-core'],
];

const Type = {
Expand Down Expand Up @@ -113,17 +114,21 @@ export const load = app => {
if (type === Type.Types_Enums) {
const typesLen = page.model.type.types.length;
const items = [];

for (let i = 0; i < typesLen; i++) {
const item = {
value: page.model.type.types[i].value,
type: page.model.type.types[i].type,
description: page.model.type.elementSummaries[i][0].text.replace(
/\n\n/g,
' '
),
};

items.push(item);
const summary = page.model.type.elementSummaries?.[i];

if (summary) {
const text = summary.map(x => x.text).join('');

const item = {
value: page.model.type.types[i].value,
type: page.model.type.types[i].type,
description: text.replace(/\n\n/g, ' '),
};

items.push(item);
}
}

const str = items
Expand Down
1 change: 1 addition & 0 deletions docs-gen/post-generate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const SDK_SLUGS = {
'_monocloud_auth-nextjs': 'nextjs',
'_monocloud_auth-node-core': 'nodejs-core',
'_monocloud_auth-core': 'nodejs',
'_monocloud_auth-js-core': 'js-core',
};

const CATEGORY_MAP = {
Expand Down
1 change: 1 addition & 0 deletions docs-gen/typedoc.html.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const config = {
'../packages/core',
'../packages/node-core',
'../packages/nextjs',
'../packages/js-core',
],
exclude: [
'**/dist/**',
Expand Down
1 change: 1 addition & 0 deletions docs-gen/typedoc.markdown.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const config = {
'../packages/core',
'../packages/node-core',
'../packages/nextjs',
'../packages/js-core',
],
exclude: [
'**/dist/**',
Expand Down
2 changes: 1 addition & 1 deletion docs/html/assets/hierarchy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/html/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/html/assets/search.js

Large diffs are not rendered by default.

Loading