docs: preparations for preview (#7267)
* configured base paths + added development banner * fix typelist site url * added navbar and sidebar badges * configure algolia filters * remove AI assistant * remove unused imports * change navbar text and badge * lint fixes * fix build error * add to api reference rewrites * fix build error * fix build errors in user-guide * fix feedback component * add parent title to pagination * added breadcrumbs component * remove user-guide links * resolve todos * fix details about authentication * change documentation title * lint content
This commit is contained in:
1 parent
3e3b8a483f
commit
728c5ee53c
62 files changed
+855
-506
No files matched your search
@@ -14,7 +14,6 @@ const withMDX = mdx({
|
||||
extension: /\.mdx?$/,
|
||||
options: {
|
||||
rehypePlugins: [
|
||||
// TODO add V2 to path if necessary
|
||||
[
|
||||
crossProjectLinksPlugin,
|
||||
{
|
||||
@@ -25,13 +24,14 @@ const withMDX = mdx({
|
||||
process.env.VERCEL_ENV !== "production"
|
||||
? process.env.NEXT_PUBLIC_RESOURCES_URL
|
||||
: undefined,
|
||||
path: "resources",
|
||||
path: "v2/resources",
|
||||
},
|
||||
"user-guide": {
|
||||
url:
|
||||
process.env.VERCEL_ENV !== "production"
|
||||
? process.env.NEXT_PUBLIC_USER_GUIDE_URL
|
||||
: undefined,
|
||||
path: "v2/user-guide",
|
||||
},
|
||||
ui: {
|
||||
url:
|
||||
@@ -90,31 +90,7 @@ const nextConfig = {
|
||||
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
|
||||
|
||||
transpilePackages: ["docs-ui"],
|
||||
// TODO uncomment if we decide on baes path
|
||||
// basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/v2",
|
||||
async rewrites() {
|
||||
return {
|
||||
fallback: [
|
||||
{
|
||||
source: "/resources",
|
||||
destination: `${process.env.NEXT_PUBLIC_RESOURCES_URL}/resources`,
|
||||
},
|
||||
{
|
||||
source: "/resources/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_RESOURCES_URL}/resources/:path*`,
|
||||
},
|
||||
// TODO comment out once we have the user guide published
|
||||
// {
|
||||
// source: "/user-guide",
|
||||
// destination: `${process.env.NEXT_PUBLIC_USER_GUIDE_URL}/user-guide`,
|
||||
// },
|
||||
// {
|
||||
// source: "/user-guide/:path*",
|
||||
// destination: `${process.env.NEXT_PUBLIC_USER_GUIDE_URL}/user-guide/:path*`,
|
||||
// },
|
||||
],
|
||||
}
|
||||
},
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/v2",
|
||||
}
|
||||
|
||||
export default withMDX(nextConfig)
|
||||
Reference in new issue
Block a user