-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(v1.x): update configuration to add /v1 path prefix (#9731)
* docs(v1.x): update configuration to add /v1 path prefix * fix build error * add trailing slash * force docusaurus version * update yarn lock * updated docusaurus to latest version * change build script * added build:prod turbo command * fix turbo script * remove redirect
- Loading branch information
1 parent
778cb15
commit 9a4e805
Showing
266 changed files
with
2,973 additions
and
1,375 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
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
8 changes: 4 additions & 4 deletions
8
...ps/api-reference/app/api/algolia/route.ts → www/apps/api-reference/app/algolia/route.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
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...s/api-reference/app/api/[area]/layout.tsx → www/apps/api-reference/app/layout.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import AreaProvider from "@/providers/area" | ||
import StoreDescription from "../_mdx/store.mdx" | ||
import ClientLibraries from "../_mdx/client-libraries.mdx" | ||
import Section from "@/components/Section" | ||
import Tags from "@/components/Tags" | ||
import type { Area } from "@/types/openapi" | ||
import DividedLayout from "@/layouts/Divided" | ||
import { capitalize } from "docs-ui" | ||
import PageTitleProvider from "../../providers/page-title" | ||
|
||
const ReferencePage = async () => { | ||
const area: Area = "store" | ||
|
||
return ( | ||
<AreaProvider area={area}> | ||
<PageTitleProvider> | ||
<h1 className="!text-h2 block lg:hidden"> | ||
Medusa V1 {capitalize(area)} API Reference | ||
</h1> | ||
<DividedLayout | ||
mainContent={ | ||
<Section> | ||
<h1 className="!text-h2 hidden lg:block"> | ||
Medusa V1 {capitalize(area)} API Reference | ||
</h1> | ||
<StoreDescription /> | ||
</Section> | ||
} | ||
codeContent={<ClientLibraries />} | ||
className="flex-col-reverse" | ||
/> | ||
<Tags /> | ||
</PageTitleProvider> | ||
</AreaProvider> | ||
) | ||
} | ||
|
||
export default ReferencePage | ||
|
||
export function generateMetadata() { | ||
const area: Area = "store" | ||
|
||
return { | ||
title: `Medusa ${capitalize(area)} API Reference`, | ||
description: `REST API reference for the Medusa ${area} API. This reference includes code snippets and examples for Medusa JS Client and cURL.`, | ||
metadataBase: process.env.NEXT_PUBLIC_BASE_URL, | ||
} | ||
} |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function getBasePathUrl(path: string): string { | ||
return `${process.env.NEXT_PUBLIC_BASE_PATH}${path}` | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { config } from "../config" | ||
|
||
export default function getUrl(area: string, tagName?: string): string { | ||
return `${config.baseUrl}/api/${area}#${tagName}` | ||
return `${config.baseUrl}${process.env.NEXT_PUBLIC_BASE_PATH}/${area}#${tagName}` | ||
} |
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 |
---|---|---|
@@ -1,17 +1,10 @@ | ||
{ | ||
"crons": [{ | ||
"path": "/api/algolia", | ||
"path": "/v1/api/algolia", | ||
"schedule": "0 0 * * 4" | ||
}], | ||
"framework": "nextjs", | ||
"installCommand": "yarn install", | ||
"buildCommand": "turbo run build", | ||
"outputDirectory": ".next", | ||
"redirects": [ | ||
{ | ||
"source": "/", | ||
"destination": "/v2", | ||
"permanent": false | ||
} | ||
] | ||
"outputDirectory": ".next" | ||
} |
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 |
---|---|---|
|
@@ -24,4 +24,5 @@ yarn-error.log* | |
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
!.yarn/versions | ||
.vercel |
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
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.