发布到github pages
· One min read
第一步,修改docusaurus.config.js
js
1
2
3
4
5
6
7
8
9
10
11
12
module.exports = {title: 'My Site',tagline: 'The tagline of my site',url: 'https://ikuokuo.github.io',baseUrl: '/start-docusaurus2/',onBrokenLinks: 'throw',favicon: 'img/favicon.ico',organizationName: 'ikuokuo',projectName: 'start-docusaurus2',...};
第二步: GIT_USER=ibiancheng361 USE_SSH=true yarn deploy
For GitHub pages organization deployments, 'docusaurus deploy' does not assume anymore that 'master' is your default Git branch. Please provide the branch name to deploy to as an environment variable, for example DEPLOYMENT_BRANCH=main or DEPLOYMENT_BRANCH=master .