一个用 Docusaurus 2 静态网站框架源码仓库。
master分支存放源代码,gh_pages分支存放构建完后的静态HTML等静态文件使用
Docusaurus 2作为框架,GitHub的Actions实现git推送后自动化部署到Pages以下内容由框架生成
This website is built using Docusaurus 2, a modern static website generator.
这个网站是用 Docusaurus 2 建立的,一款现代静态网站生成器。
$ yarn$ yarn startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
此命令启动本地开发服务器并打开浏览器窗口。大多数更改都是实时反映的,无需重新启动服务器。
$ yarn buildThis command generates static content into the build directory and can be served using any static contents hosting
service.
此命令将静态内容生成到“build”目录中,并可以使用任何静态内容托管服务提供服务。
Using SSH:
$ USE_SSH=true yarn deployNot using SSH:
$ GIT_USER=<Your GitHub username> yarn deployIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to
the gh-pages branch.
如果您使用GitHub页面进行托管,则此命令是一种方便的方法,可以构建网站并推送到“gh pages”分支。