创建属于自己的github Page主页

安装手册

安装手册

环境要求

Node.js version 18.0 安装 Node.js 时,建议勾选所有和依赖相关的选项。

安装步骤

安装 Docusaurus 最简单的方法是使用 create-docusaurus 命令行工具,它可以帮助你快速搭建一个 Docusaurus 网站的基础框架。 你可以在空仓库或现有仓库的任何地方运行这个命令,它会创建一个包含模板文件的新目录。

java 复制代码
npx create-docusaurus@latest my-website classic

如果网络原因无法下载可以直接通过下面地址下载我网盘里纯净未修改的内容https://pan.quark.cn/s/6433dcc9542a,解压后npm install直接可以运行(前提需要有npm环境哦)。

复制代码
javahttps://pan.quark.cn/s/6433dcc9542a   
java 复制代码
 Inside that directory, you can run several commands:

  `npm start`
    Starts the development server.

  `npm run build`
    Bundles your website into static files for production.

  `npm run serve`
    Serves the built website locally.

  `npm run deploy`
    Publishes the website to GitHub pages.

本地启动

启动后根据页面的提示,边看边修改。

修改配置文件

修改文件docusaurus.config.js,修改成自己的内容,Ctrl+S可以看网页端的效果。

内容编辑

在模版内部查看我们发表内容的格式,按照模板学习下,很好入手。

相关推荐
崔庆才丨静觅19 小时前
Claude Code GitHub Actions 使用教程
github·api·claude
砖厂小工2 天前
用 GLM + OpenClaw 打造你的 AI PR Review Agent — 让龙虾帮你审代码
android·github
程序员鱼皮2 天前
又一个新项目完结,我要出海了!
ai·github·开源项目
徐小夕2 天前
pxcharts-vue:一款专为 Vue3 打造的开源多维表格解决方案
前端·vue.js·github
Moment2 天前
想要长期陪伴你的助理?先从部署一个 OpenClaw 开始 😍😍😍
前端·后端·github
我叫黑大帅2 天前
前端如何利用 GitHub Actions 自动构建并发布到 GitHub Pages?
前端·面试·github
HelloGitHub2 天前
这个年轻的开源项目,想让每个人都能拥有自己的专业级 AI 智能体
开源·github·agent
刘发财2 天前
弃用html2pdf.js,这个html转pdf方案能力是它的几十倍
前端·javascript·github