-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate configurations guide to reference
- Loading branch information
1 parent
5305dab
commit 5dc2813
Showing
435 changed files
with
12,756 additions
and
10,934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const getConfig = require("./utils/get-config") | ||
|
||
module.exports = getConfig({ | ||
entryPointPath: "packages/types/src/common/config-module.ts", | ||
tsConfigName: "types.json", | ||
name: "medusa-config", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...packages/typedoc-plugin-markdown-medusa/src/resources/helpers/get-declaration-children.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import * as Handlebars from "handlebars" | ||
import { DeclarationReflection } from "typedoc" | ||
import { getTypeChildren } from "utils" | ||
import { MarkdownTheme } from "../../theme" | ||
|
||
export default function (theme: MarkdownTheme) { | ||
Handlebars.registerHelper( | ||
"getDeclarationChildren", | ||
function (this: DeclarationReflection) { | ||
const { maxLevel } = theme.getFormattingOptionsForLocation() | ||
|
||
if (!this.children && !this.type) { | ||
return [] | ||
} | ||
|
||
return ( | ||
this.children || | ||
getTypeChildren({ | ||
reflectionType: this.type!, | ||
project: this.project, | ||
maxLevel, | ||
}) | ||
) | ||
} | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
...typedoc-plugin-markdown-medusa/src/resources/helpers/if-show-separator-for-title-level.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as Handlebars from "handlebars" | ||
import { MarkdownTheme } from "../../theme" | ||
|
||
export default function (theme: MarkdownTheme) { | ||
Handlebars.registerHelper( | ||
"ifShowSeparatorForTitleLevel", | ||
function (this: unknown, options: Handlebars.HelperOptions) { | ||
const { currentTitleLevel } = theme | ||
|
||
return currentTitleLevel <= 2 ? options.fn(this) : options.inverse(this) | ||
} | ||
) | ||
} |
11 changes: 11 additions & 0 deletions
11
...ypedoc-plugin-markdown-medusa/src/resources/helpers/should-expand-declaration-children.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import * as Handlebars from "handlebars" | ||
import { MarkdownTheme } from "../../theme" | ||
|
||
export default function (theme: MarkdownTheme) { | ||
Handlebars.registerHelper("shouldExpandDeclarationChildren", function () { | ||
const { currentTitleLevel } = theme | ||
const { expandMembers } = theme.getFormattingOptionsForLocation() | ||
|
||
return expandMembers && currentTitleLevel <= 3 | ||
}) | ||
} |
11 changes: 11 additions & 0 deletions
11
...packages/typedoc-plugin-markdown-medusa/src/resources/helpers/should-expand-properties.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import * as Handlebars from "handlebars" | ||
import { MarkdownTheme } from "../../theme" | ||
|
||
export default function (theme: MarkdownTheme) { | ||
Handlebars.registerHelper("shouldExpandProperties", function (title: string) { | ||
const { currentTitleLevel } = theme | ||
const { expandProperties = false } = theme.getFormattingOptionsForLocation() | ||
|
||
return title === "Properties" && expandProperties && currentTitleLevel <= 3 | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.