Total Pageviews

Saturday, 19 September 2026

搭建基于nextjs的文档网站程序ixd

 首先fork此项目https://github.com/iambabyninja/xtls-docs ,我fork后,得到的项目地址是

 https://github.com/brightmann/ixd

 编辑https://github.com/brightmann/ixd/blob/main/package.json,把next的版本改为最新版16.3.5

 在这里https://github.com/brightmann/ixd/tree/main/content/docs ,新建源帖fh.mdx,内容为:

---
title: 战马
description: 这是一篇文章
---

此处写正文或html codes.

(详见 https://github.com/brightmann/ixd/blob/main/content/docs/fh.mdx?plain=1)

 然后,访问vercel.com/new ,导入项目 https://github.com/brightmann/ixd ,

 在Build Command栏填入npm run build
 在Install Command栏填入npm install --force

 点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:

 https://ixd-nine.vercel.app/docs

项目地址:

 https://github.com/iambabyninja/xtls-docs 

  https://github.com/brightmann/ixd

 演示网站地址: https://ixd-nine.vercel.app/docs 。在网站的左侧,可以看到同一天发表的帖子是按字母顺序,从上到下排列的:

 https://ixd-nine.vercel.app/docs/ce

 https://ixd-nine.vercel.app/docs/fh  (能显示视频)

 https://ixd-nine.vercel.app/docs/life-advice

 https://ixd-nine.vercel.app/docs/test

 

 

No comments:

Post a Comment