Skip to content

Commit

Permalink
Apply style
Browse files Browse the repository at this point in the history
  • Loading branch information
RDIL authored Apr 12, 2020
1 parent 327962b commit 5d18e72
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/docusaurus/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,11 @@ export async function deploy(
// The commit might return a non-zero value when site is up to date.
let websiteURL = '';
if (githubHost === 'github.com') {
// github.io hosting
if (projectName.includes('.github.io')) {
// domain root gh-pages hosted repo
websiteURL = `https://${organizationName}.github.io/`;
} else {
websiteURL = `https://${organizationName}.github.io/${projectName}/`;
}
websiteURL = projectName.includes('.github.io')
?
`https://${organizationName}.github.io/`;
:
`https://${organizationName}.github.io/${projectName}/`;
} else {
// GitHub enterprise hosting.
websiteURL = `https://${githubHost}/pages/${organizationName}/${projectName}/`;
Expand Down

0 comments on commit 5d18e72

Please sign in to comment.