aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:44 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:44 +0800
commitdd84b9d64fb98746a230cd24233ff50a562c39c9 (patch)
treeb583261ef00b3afe72ec4d6dacb31e57779a6faf /docs
parent0b46fcd72ac34382387b2bcf9095233efbcc52f4 (diff)
downloadHydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.tar.gz
HydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.zip
Diffstat (limited to 'docs')
-rw-r--r--docs/next.config.js306
-rw-r--r--docs/package.json5
2 files changed, 156 insertions, 155 deletions
diff --git a/docs/next.config.js b/docs/next.config.js
index 2d6cc4e..eb56c65 100644
--- a/docs/next.config.js
+++ b/docs/next.config.js
@@ -81,159 +81,159 @@ const nextConfig = withNextra({
},
],
};
- // },
- // async redirects() {
- // return [
- // ...OLD_TURBOREPO_ROUTES.map((route) => ({
- // source: route,
- // destination: `/repo${route}`,
- // permanent: true,
- // })),
- // {
- // source: "/docs/getting-started",
- // destination: "/repo/docs",
- // permanent: true,
- // },
- // {
- // source: "/usage",
- // destination: "/repo/docs/reference/command-line-reference",
- // permanent: true,
- // },
- // {
- // source: "/docs/core-concepts/running-tasks",
- // destination: "/repo/docs/core-concepts/monorepos/running-tasks",
- // permanent: true,
- // },
- // {
- // source: "/docs/core-concepts/why-turborepo",
- // destination: "/repo/docs/core-concepts/monorepos",
- // permanent: true,
- // },
- // {
- // source: "/docs/core-concepts/filtering",
- // destination: "/repo/docs/core-concepts/monorepos/filtering",
- // permanent: true,
- // },
- // {
- // source: "/docs/guides/workspaces",
- // destination: "/repo/docs/handbook/workspaces",
- // permanent: true,
- // },
- // {
- // source: "/docs/core-concepts/workspaces",
- // destination: "/repo/docs/handbook/workspaces",
- // permanent: true,
- // },
- // {
- // source: "/docs/core-concepts/pipelines",
- // destination: "/repo/docs/core-concepts/monorepos/running-tasks",
- // permanent: true,
- // },
- // {
- // source: "/docs/guides/migrate-from-lerna",
- // destination: "/repo/docs/handbook/migrating-to-a-monorepo",
- // permanent: true,
- // },
- // {
- // source: "/discord{/}?",
- // permanent: true,
- // destination: "https://discord.gg/sSzyjxvbf5",
- // },
- // {
- // source: "/docs/changelog",
- // permanent: true,
- // destination: "https://github.com/vercel/turbo/releases",
- // },
- // {
- // source: "/docs/guides/complimentary-tools",
- // permanent: true,
- // destination: "/repo/docs/handbook",
- // },
- // {
- // source: "/docs/guides/monorepo-tools",
- // permanent: true,
- // destination: "/repo/docs/handbook",
- // },
- // {
- // source: "/docs/glossary",
- // permanent: true,
- // destination: "/repo/docs/handbook",
- // },
- // {
- // source: "/docs/guides/continuous-integration",
- // permanent: true,
- // destination: "/repo/docs/ci",
- // },
- // {
- // source: "/repo/docs/handbook/prisma",
- // permanent: true,
- // destination: "/repo/docs/handbook/tools/prisma",
- // },
- // {
- // source: "/pack/docs/comparisons/turbopack-vs-vite",
- // permanent: true,
- // destination: "/pack/docs/comparisons/vite",
- // },
- // {
- // source: "/pack/docs/comparisons/turbopack-vs-webpack",
- // permanent: true,
- // destination: "/pack/docs/comparisons/webpack",
- // },
- // {
- // // Accidentally created, eventually removable. See below.
- // source: "/repo/docs/core-concepts/running-tasks",
- // destination: "/repo/docs/core-concepts/monorepos/running-tasks",
- // permanent: true,
- // },
- // {
- // // Accidentally created, eventually removable. See below.
- // source: "/repo/docs/core-concepts/why-turborepo",
- // destination: "/repo/docs/core-concepts/monorepos",
- // permanent: true,
- // },
- // {
- // // Accidentally created, eventually removable. See below.
- // source: "/repo/docs/core-concepts/filtering",
- // destination: "/repo/docs/core-concepts/monorepos/filtering",
- // permanent: true,
- // },
- // {
- // // Accidentally created, eventually removable. See below.
- // source: "/repo/docs/core-concepts/pipelines",
- // destination: "/repo/docs/core-concepts/monorepos/running-tasks",
- // permanent: true,
- // },
- // {
- // // This rule accidentally created a bunch of URLs.
- // //
- // // They've _never_ resolved, so _eventually_ we should be able to remove the
- // // redirects we added above to fix them.
- // source: "/docs/features/:path*",
- // permanent: true,
- // destination: "/repo/docs/core-concepts/:path*",
- // },
- // {
- // // Accidentally created, eventually removable. See below.
- // source: "/repo/docs/getting-started",
- // destination: "/repo/docs",
- // permanent: true,
- // },
- // {
- // // Accidentally created, eventually removable. See below.
- // source: "/repo/docs/guides/workspaces",
- // destination: "/repo/docs/handbook/workspaces",
- // permanent: true,
- // },
- // {
- // // This rule accidentally created a bunch of URLs.
- // //
- // // They've _never_ resolved, so _eventually_ we should be able to remove the
- // // redirects we added above to fix them.
- // source: "/docs/:path*",
- // permanent: true,
- // destination: "/repo/docs/:path*",
- // },
- // ];
+ },
+ async redirects() {
+ return [
+ ...OLD_TURBOREPO_ROUTES.map((route) => ({
+ source: route,
+ destination: `/repo${route}`,
+ permanent: true,
+ })),
+ {
+ source: "/docs/getting-started",
+ destination: "/repo/docs",
+ permanent: true,
+ },
+ {
+ source: "/usage",
+ destination: "/repo/docs/reference/command-line-reference",
+ permanent: true,
+ },
+ {
+ source: "/docs/core-concepts/running-tasks",
+ destination: "/repo/docs/core-concepts/monorepos/running-tasks",
+ permanent: true,
+ },
+ {
+ source: "/docs/core-concepts/why-turborepo",
+ destination: "/repo/docs/core-concepts/monorepos",
+ permanent: true,
+ },
+ {
+ source: "/docs/core-concepts/filtering",
+ destination: "/repo/docs/core-concepts/monorepos/filtering",
+ permanent: true,
+ },
+ {
+ source: "/docs/guides/workspaces",
+ destination: "/repo/docs/handbook/workspaces",
+ permanent: true,
+ },
+ {
+ source: "/docs/core-concepts/workspaces",
+ destination: "/repo/docs/handbook/workspaces",
+ permanent: true,
+ },
+ {
+ source: "/docs/core-concepts/pipelines",
+ destination: "/repo/docs/core-concepts/monorepos/running-tasks",
+ permanent: true,
+ },
+ {
+ source: "/docs/guides/migrate-from-lerna",
+ destination: "/repo/docs/handbook/migrating-to-a-monorepo",
+ permanent: true,
+ },
+ {
+ source: "/discord{/}?",
+ permanent: true,
+ destination: "https://discord.gg/sSzyjxvbf5",
+ },
+ {
+ source: "/docs/changelog",
+ permanent: true,
+ destination: "https://github.com/vercel/turbo/releases",
+ },
+ {
+ source: "/docs/guides/complimentary-tools",
+ permanent: true,
+ destination: "/repo/docs/handbook",
+ },
+ {
+ source: "/docs/guides/monorepo-tools",
+ permanent: true,
+ destination: "/repo/docs/handbook",
+ },
+ {
+ source: "/docs/glossary",
+ permanent: true,
+ destination: "/repo/docs/handbook",
+ },
+ {
+ source: "/docs/guides/continuous-integration",
+ permanent: true,
+ destination: "/repo/docs/ci",
+ },
+ {
+ source: "/repo/docs/handbook/prisma",
+ permanent: true,
+ destination: "/repo/docs/handbook/tools/prisma",
+ },
+ {
+ source: "/pack/docs/comparisons/turbopack-vs-vite",
+ permanent: true,
+ destination: "/pack/docs/comparisons/vite",
+ },
+ {
+ source: "/pack/docs/comparisons/turbopack-vs-webpack",
+ permanent: true,
+ destination: "/pack/docs/comparisons/webpack",
+ },
+ {
+ // Accidentally created, eventually removable. See below.
+ source: "/repo/docs/core-concepts/running-tasks",
+ destination: "/repo/docs/core-concepts/monorepos/running-tasks",
+ permanent: true,
+ },
+ {
+ // Accidentally created, eventually removable. See below.
+ source: "/repo/docs/core-concepts/why-turborepo",
+ destination: "/repo/docs/core-concepts/monorepos",
+ permanent: true,
+ },
+ {
+ // Accidentally created, eventually removable. See below.
+ source: "/repo/docs/core-concepts/filtering",
+ destination: "/repo/docs/core-concepts/monorepos/filtering",
+ permanent: true,
+ },
+ {
+ // Accidentally created, eventually removable. See below.
+ source: "/repo/docs/core-concepts/pipelines",
+ destination: "/repo/docs/core-concepts/monorepos/running-tasks",
+ permanent: true,
+ },
+ {
+ // This rule accidentally created a bunch of URLs.
+ //
+ // They've _never_ resolved, so _eventually_ we should be able to remove the
+ // redirects we added above to fix them.
+ source: "/docs/features/:path*",
+ permanent: true,
+ destination: "/repo/docs/core-concepts/:path*",
+ },
+ {
+ // Accidentally created, eventually removable. See below.
+ source: "/repo/docs/getting-started",
+ destination: "/repo/docs",
+ permanent: true,
+ },
+ {
+ // Accidentally created, eventually removable. See below.
+ source: "/repo/docs/guides/workspaces",
+ destination: "/repo/docs/handbook/workspaces",
+ permanent: true,
+ },
+ {
+ // This rule accidentally created a bunch of URLs.
+ //
+ // They've _never_ resolved, so _eventually_ we should be able to remove the
+ // redirects we added above to fix them.
+ source: "/docs/:path*",
+ permanent: true,
+ destination: "/repo/docs/:path*",
+ },
+ ];
},
});
diff --git a/docs/package.json b/docs/package.json
index 8e9e3e7..4abfc5c 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -1,7 +1,7 @@
{
"name": "docs",
"version": "1.0.0",
- "private": false,
+ "private": true,
"description": "turbo.build",
"scripts": {
"dev": "next",
@@ -11,7 +11,7 @@
"rss": "node scripts/generate-rss.js",
"schema": "turbo-types-generate ./public/schema.json"
},
- "author": "简律纯",
+ "author": "Jared Palmer",
"license": "MPL-2.0",
"dependencies": {
"@headlessui/react": "^1.7.3",
@@ -36,6 +36,7 @@
},
"devDependencies": {
"@babel/core": "7.20.12",
+ "@turbo/types": "workspace:*",
"@types/node": "^16.11.12",
"@types/react": "18.0.21",
"autoprefixer": "10.4.14",