docusaurus文档部署

docusaurus文档部署

官网:https://docusaurus.io/

GitHub:https://github.com/facebook/docusaurus

在windows环境,用vs+codex优化自定义网站内容

docs目录下,新增文章以及分类

_category_.json中的label是最终显示的分组的组名

调整完后,将除node_modules以外的其他目录文件打包放入ubuntu中

Ubuntu运行网站

screen -S note      //创建note守护进程
cd note             //进入网站目录
npm run build       //每次变更新增文档都要重新build
npm run serve -- --host 0.0.0.0 --port 3333 --no-open     //运行在3333端口


后续维护
screen -r note