docs: general improvements and additions (#12296)

This commit is contained in:
Shahed Nasser
2025-04-25 19:00:45 +03:00
committed by GitHub
parent e2a7dbb61b
commit 43d282da8b
32 changed files with 17403 additions and 16544 deletions
@@ -112,7 +112,7 @@ module.exports = defineConfig({
`,
`## 5. Test it Out
To test out your Authentication Module Provider, use any of the [Authentication Routes](https://docs.medusajs.com/v2/resources/commerce-modules/auth/authentication-route), using your provider's ID as a path parameter.
To test out your Authentication Module Provider, use any of the [Authentication Routes](https://docs.medusajs.com/resources/commerce-modules/auth/authentication-route), using your provider's ID as a path parameter.
For example, to get a registration token for an admin user, send a \`POST\` request to \`/auth/user/my-auth/register\` replacing \`my-auth\` with your Authentication Module Provider's ID:
@@ -1,11 +1,29 @@
import Handlebars from "handlebars"
import { SignatureReflection } from "typedoc"
import {
Reflection,
ReflectionKind,
SignatureReflection,
SourceReference,
} from "typedoc"
export default function () {
Handlebars.registerHelper(
"sourceCodeLink",
function (this: SignatureReflection): string {
const source = this.parent.sources?.[0]
function (this: Reflection): string {
let source: SourceReference | undefined
switch (this.kind) {
case ReflectionKind.GetSignature:
if (this.parent instanceof SignatureReflection) {
source = this.parent.sources?.[0]
}
break
default:
if ("sources" in this) {
source = (this.sources as SourceReference[])?.[0]
}
break
}
if (!source?.url) {
return ""
@@ -4,4 +4,6 @@
{{/if}}
{{{sourceCodeLink}}}
{{{dmlProperties}}}