diff --git a/packages/docusaurus/src/commands/deploy.ts b/packages/docusaurus/src/commands/deploy.ts index 352765a4b924..87db8f33ac5b 100644 --- a/packages/docusaurus/src/commands/deploy.ts +++ b/packages/docusaurus/src/commands/deploy.ts @@ -170,10 +170,8 @@ export async function deploy( let websiteURL = ''; if (githubHost === 'github.com') { websiteURL = projectName.includes('.github.io') - ? - `https://${organizationName}.github.io/`; - : - `https://${organizationName}.github.io/${projectName}/`; + ? `https://${organizationName}.github.io/` + : `https://${organizationName}.github.io/${projectName}/`; } else { // GitHub enterprise hosting. websiteURL = `https://${githubHost}/pages/${organizationName}/${projectName}/`;