docs: show latest version in docs + update automatically (#9753)
This commit is contained in:
1 parent
669adbcdc9
commit
04cec64fa1
14 files changed
+232
-1
No files matched your search
@@ -1,8 +1,10 @@
|
||||
import { globalConfig } from "docs-ui"
|
||||
import { DocsConfig } from "types"
|
||||
|
||||
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
|
||||
|
||||
export const config: DocsConfig = {
|
||||
...globalConfig,
|
||||
baseUrl,
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
|
||||
// sidebar is auto generated
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { DocsConfig } from "types"
|
||||
import { sidebarConfig } from "./sidebar"
|
||||
import { globalConfig } from "docs-ui"
|
||||
|
||||
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
|
||||
|
||||
export const config: DocsConfig = {
|
||||
...globalConfig,
|
||||
titleSuffix: "Medusa v2 Documentation",
|
||||
baseUrl,
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { DocsConfig, SidebarItem } from "types"
|
||||
import { generatedSidebar } from "../generated/sidebar.mjs"
|
||||
import { globalConfig } from "docs-ui"
|
||||
|
||||
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
|
||||
|
||||
export const config: DocsConfig = {
|
||||
...globalConfig,
|
||||
titleSuffix: "Medusa Development Resources",
|
||||
baseUrl,
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { globalConfig } from "docs-ui"
|
||||
import { DocsConfig } from "types"
|
||||
|
||||
type SiteConfig = {
|
||||
@@ -9,6 +10,7 @@ type SiteConfig = {
|
||||
const baseUrl = process.env.NEXT_PUBLIC_DOCS_URL || "http://localhost:3000"
|
||||
|
||||
export const siteConfig: SiteConfig = {
|
||||
...globalConfig,
|
||||
name: "Medusa UI",
|
||||
baseUrl,
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { DocsConfig, SidebarItem } from "types"
|
||||
import { generatedSidebar as sidebar } from "@/generated/sidebar.mjs"
|
||||
import { globalConfig } from "docs-ui"
|
||||
|
||||
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
|
||||
|
||||
export const config: DocsConfig = {
|
||||
...globalConfig,
|
||||
titleSuffix: "Medusa Admin User Guide",
|
||||
baseUrl,
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
|
||||
|
||||
Reference in new issue
Block a user