From 3627e45dae321e5f69a9da0a2e3ed497ad4fed2c Mon Sep 17 00:00:00 2001 From: zhanghuan Date: Tue, 24 Sep 2024 22:18:54 +0800 Subject: [PATCH] docs: remove steps --- content/docs/en/configuration/config-files.md | 6 +--- content/docs/en/configuration/database.md | 10 ++---- content/docs/en/configuration/email.md | 36 ++++++------------- .../docs/en/configuration/markdown-files.md | 6 +--- .../docs/en/configuration/subscriptions.md | 14 ++------ content/docs/en/installation.md | 14 +++----- .../docs/zh/configuration/authentification.md | 30 +++------------- content/docs/zh/configuration/config-files.md | 6 +--- content/docs/zh/configuration/database.md | 4 --- content/docs/zh/configuration/email.md | 28 ++++----------- .../docs/zh/configuration/markdown-files.md | 4 --- content/docs/zh/installation.md | 8 +---- 12 files changed, 34 insertions(+), 132 deletions(-) diff --git a/content/docs/en/configuration/config-files.md b/content/docs/en/configuration/config-files.md index 5a8d67751..65e857f1b 100644 --- a/content/docs/en/configuration/config-files.md +++ b/content/docs/en/configuration/config-files.md @@ -9,8 +9,6 @@ The `config` folder houses various files ready for customization to suit your ne Here's the list of config files available: - - ### Landing Within `landing.ts`, discover data configurations for different sections on the homepage. @@ -55,6 +53,4 @@ Here's the structure for a pricing card: yearly: env.NEXT_PUBLIC_STRIPE_PRO_YEARLY_PLAN_ID, }, }, -``` - - +``` \ No newline at end of file diff --git a/content/docs/en/configuration/database.md b/content/docs/en/configuration/database.md index aa1cc0a2d..1a49e11b5 100644 --- a/content/docs/en/configuration/database.md +++ b/content/docs/en/configuration/database.md @@ -9,8 +9,6 @@ Currently this project use **Neon** on the free plan. Check their [pricing page] ## Steps - - ### Create Neon account If don't have an account on Neon, just follow their steps [here](https://neon.tech/docs/get-started-with-neon/signing-up) for create one. @@ -19,10 +17,8 @@ If don't have an account on Neon, just follow their steps [here](https://neon.te After create a project on Neon, you can copy the database url. Select `Prisma` from the list then the `env` tab. - - Don't forget to reveal the information hidden behind the stars using - the eye icon. It's not very visible in dark mode. - +Don't forget to reveal the information hidden behind the stars using +the eye icon. It's not very visible in dark mode. Paste in your `.env` file. @@ -37,5 +33,3 @@ You can push the migrations on your database with the cli. ```bash npx prisma db push ``` - - diff --git a/content/docs/en/configuration/email.md b/content/docs/en/configuration/email.md index 13161ce21..254188ee4 100644 --- a/content/docs/en/configuration/email.md +++ b/content/docs/en/configuration/email.md @@ -3,26 +3,19 @@ title: Email description: How to manage emails in this project. --- - - The magic-link feature with Resend works with Auth.js v5!
- You can use it in your local environment and in your own production setup. -
+The magic-link feature with Resend works with Auth.js v5!
+You can use it in your local environment and in your own production setup. - - However, you can't test it on this demo app because I don't want to use the - premium Resend plan for this demo. - -## Steps +However, you can't test it on this demo app because I don't want to use the +premium Resend plan for this demo. - - The email part is similar at the [resend](https://resend.com/) documentation. - You can find the official documentation - [here](https://authjs.dev/getting-started/installation#setup-environment) if - you want. - +## Steps - +The email part is similar at the [resend](https://resend.com/) documentation. +You can find the official documentation +[here](https://authjs.dev/getting-started/installation#setup-environment) if +you want. ### Create an account @@ -36,13 +29,4 @@ Copy/paste in your `.env` file. ```js RESEND_API_KEY = re_your_resend_api_key; -``` - - - -{/* -react-email -> [!WARNING] -> You need update `.react-email` folder before use `pnpm run email`. Check the link [here](https://github.com/resend/react-email/issues/868#issuecomment-1828411325) if you have the error : `renderToReadableStream not found` - -*/} \ No newline at end of file +``` \ No newline at end of file diff --git a/content/docs/en/configuration/markdown-files.md b/content/docs/en/configuration/markdown-files.md index 167aaeba8..5f49e3296 100644 --- a/content/docs/en/configuration/markdown-files.md +++ b/content/docs/en/configuration/markdown-files.md @@ -144,8 +144,6 @@ You can customize this file according to your project's needs by adding new docu Here's the list of all frontmatters available for each parts: - - ### Authors ```md @@ -195,6 +193,4 @@ date: 2022-11-18 title: Privacy description: The Privacy Policy for your app. --- -``` - - +``` \ No newline at end of file diff --git a/content/docs/en/configuration/subscriptions.md b/content/docs/en/configuration/subscriptions.md index 360301363..2a39fcb17 100644 --- a/content/docs/en/configuration/subscriptions.md +++ b/content/docs/en/configuration/subscriptions.md @@ -3,15 +3,11 @@ title: Subscriptions description: How to manage subscriptions with Stripe. --- - - To complete this guide, you'll need to create an account on - [Stripe](https://stripe.com/). - +To complete this guide, you'll need to create an account on +[Stripe](https://stripe.com/). ## Configuration - - ### Create a Project After logging in, create a project on Stripe. @@ -62,8 +58,4 @@ NEXT_PUBLIC_STRIPE_BUSINESS_YEARLY_PLAN_ID = price_FaKeId Ensure that you replace `price_FaKeId` with the actual price IDs generated by Stripe for your pricing plans. - - Don't forget to change the prices in `config/subscriptions.ts`. - - - +Don't forget to change the prices in `config/subscriptions.ts`. diff --git a/content/docs/en/installation.md b/content/docs/en/installation.md index fa480bddd..84cf67883 100644 --- a/content/docs/en/installation.md +++ b/content/docs/en/installation.md @@ -3,8 +3,6 @@ title: Installation description: How to install the project. --- - - ### Create project Start by creating a new Next.js project using `create-next-app`: @@ -17,11 +15,9 @@ Or deploy with Vercel : [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhunterzhang86%2Ffflow-next) - - A good way to create your repository, but the deployment will fail because you - need to add your environment variables locally in your project. Follow the - documentation for that. - +A good way to create your repository, but the deployment will fail because you +need to add your environment variables locally in your project. Follow the +documentation for that. ### Install dependencies @@ -60,6 +56,4 @@ NEXT_PUBLIC_STRIPE_BUSINESS_YEARLY_PLAN_ID= ### Configuration part -Let's check the configuration part for update all environment variables before use `pnpm run dev`. - - +Let's check the configuration part for update all environment variables before use `pnpm run dev`. \ No newline at end of file diff --git a/content/docs/zh/configuration/authentification.md b/content/docs/zh/configuration/authentification.md index 5c554c4ac..4206e1ca6 100644 --- a/content/docs/zh/configuration/authentification.md +++ b/content/docs/zh/configuration/authentification.md @@ -3,15 +3,11 @@ title: 身份验证 description: 如何配置身份验证。 --- - - 身份验证部分与 [authjs](https://authjs.dev/) 文档类似。 - 如果您愿意,可以参考官方文档 - [这里](https://authjs.dev/getting-started/installation#setup-environment)。 - +身份验证部分与 [authjs](https://authjs.dev/) 文档类似。 +如果您愿意,可以参考官方文档 +[这里](https://authjs.dev/getting-started/installation#setup-environment)。 - - 升级到 Auth.js v5 后: `NEXTAUTH_URL` 已从 `.env` 文件中移除。在**生产环境**中也是如此。 - +升级到 Auth.js v5 后: `NEXTAUTH_URL` 已从 `.env` 文件中移除。在**生产环境**中也是如此。 ## 更新 auth_secret 变量 @@ -44,21 +40,5 @@ GOOGLE_CLIENT_SECRET = your_secret_client; 观看来自 [CodeWithAntonio](https://www.youtube.com/@codewithantonio) 的 YouTube 视频,了解如何为 NextAuth 配置 Google 身份验证的环境变量。 - - - GoogleAuth **本地**配置在 [3:24:30](https://www.youtube.com/watch?v=1MTyCvS05V4&t=12270s) -- **部署后**更新 GoogleAuth 在 [7:52:31](https://www.youtube.com/watch?v=1MTyCvS05V4&t=12270s) - -### 本仓库的 Google 配置 - - +- **部署后**更新 GoogleAuth 在 [7:52:31](https://www.youtube.com/watch?v=1MTyCvS05V4&t=12270s) \ No newline at end of file diff --git a/content/docs/zh/configuration/config-files.md b/content/docs/zh/configuration/config-files.md index 40e54bb6a..0c815f185 100644 --- a/content/docs/zh/configuration/config-files.md +++ b/content/docs/zh/configuration/config-files.md @@ -9,8 +9,6 @@ description: 通过配置文件来个性化定制。 以下是可用的配置文件列表: - - ### 首页 在 `landing.ts` 中,您可以找到首页不同部分的数据配置。 @@ -55,6 +53,4 @@ description: 通过配置文件来个性化定制。 yearly: env.NEXT_PUBLIC_STRIPE_PRO_YEARLY_PLAN_ID, }, }, -``` - - +``` \ No newline at end of file diff --git a/content/docs/zh/configuration/database.md b/content/docs/zh/configuration/database.md index 37b21616a..0c16376eb 100644 --- a/content/docs/zh/configuration/database.md +++ b/content/docs/zh/configuration/database.md @@ -9,8 +9,6 @@ description: 如何配置你的 Neon 数据库。 ## 步骤 - - ### 创建 Neon 账户 如果你还没有 Neon 账户,只需按照[这里](https://neon.tech/docs/get-started-with-neon/signing-up)的步骤创建一个。 @@ -36,5 +34,3 @@ DATABASE_URL = "postgres://alex:AbC123dEf@ep-cool-darkness-123456.us-east-2.aws. ```bash npx prisma db push ``` - - diff --git a/content/docs/zh/configuration/email.md b/content/docs/zh/configuration/email.md index c308244ef..a06148cc8 100644 --- a/content/docs/zh/configuration/email.md +++ b/content/docs/zh/configuration/email.md @@ -3,23 +3,15 @@ title: 电子邮件 description: 如何在此项目中管理电子邮件。 --- - - Resend的魔法链接功能与Auth.js v5兼容!
- 您可以在本地环境和自己的生产设置中使用它。 -
+Resend的魔法链接功能与Auth.js v5兼容!
+您可以在本地环境和自己的生产设置中使用它。 - - 然而,您无法在这个演示应用中测试它,因为我不想为这个演示使用Resend的高级计划。 - +然而,您无法在这个演示应用中测试它,因为我不想为这个演示使用Resend的高级计划。 ## 步骤 - - 电子邮件部分与[resend](https://resend.com/)文档类似。 - 如果您需要,可以在[这里](https://authjs.dev/getting-started/installation#setup-environment)找到官方文档。 - - - +电子邮件部分与[resend](https://resend.com/)文档类似。 +如果您需要,可以在[这里](https://authjs.dev/getting-started/installation#setup-environment)找到官方文档。 ### 创建账户 @@ -33,12 +25,4 @@ description: 如何在此项目中管理电子邮件。 ```js RESEND_API_KEY = re_your_resend_api_key; -``` - - - -{/* -react-email -> [!WARNING] -> 在使用`pnpm run email`之前,您需要更新`.react-email`文件夹。如果遇到错误:`renderToReadableStream not found`,请查看[此链接](https://github.com/resend/react-email/issues/868#issuecomment-1828411325) -*/} \ No newline at end of file +``` \ No newline at end of file diff --git a/content/docs/zh/configuration/markdown-files.md b/content/docs/zh/configuration/markdown-files.md index efc2bc4a8..acc1bd595 100644 --- a/content/docs/zh/configuration/markdown-files.md +++ b/content/docs/zh/configuration/markdown-files.md @@ -144,8 +144,6 @@ export default makeSource({ 以下是每个部分可用的所有 frontmatters 列表: - - ### 作者 ```md @@ -194,5 +192,3 @@ date: 2022-11-18 --- title ``` - - diff --git a/content/docs/zh/installation.md b/content/docs/zh/installation.md index 9133c9f6f..0a07a1eec 100644 --- a/content/docs/zh/installation.md +++ b/content/docs/zh/installation.md @@ -3,8 +3,6 @@ title: 安装 description: 如何安装项目。 --- - - ### 创建项目 首先使用 `create-next-app` 创建一个新的 Next.js 项目: @@ -17,9 +15,7 @@ npx create-next-app my-saas-project --example "https://github.com/hunterzhang86/ [![使用 Vercel 部署](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhunterzhang86%2Ffflow-next) - - 这是创建你的仓库的好方法,但部署会失败,因为你需要在项目中本地添加环境变量。请按照文档进行操作。 - +这是创建你的仓库的好方法,但部署会失败,因为你需要在项目中本地添加环境变量。请按照文档进行操作。 ### 安装依赖 @@ -59,5 +55,3 @@ NEXT_PUBLIC_STRIPE_BUSINESS_YEARLY_PLAN_ID= ### 配置部分 在使用 `pnpm run dev` 之前,让我们检查配置部分以更新所有环境变量。 - -