I have read https://confluence.atlassian.com/bitbucket/publishing-a-website-on-bitbucket-cloud-221449776.htmland look like it's only 1 repository can have that index.htmwhat if I have 2 repository and this use pages on this 2 repository.
if my workspace was helloworldso I have to create repository name helloworld.bitbucket.orgwhat if have another repository that name hellworld2 how do i make index.html pages for that one?
Hi @CENSOR_1337 ,
You can only publish 1 website per Bitbucket account. If you may have multiple files that you'd like to host from the same Bitbucket account, you can do that by placing each file in a repository subdirectory, like this:
<span><a href="https://workspace_ID.bitbucket.io/subdirl" target="_blank" rel="nofollow noopener noreferrer">https://workspace_ID.bitbucket.io/subdirl</a></span>
<span><a href="https://workspace_ID.bitbucket.io/subdir2" target="_blank" rel="nofollow noopener noreferrer">https://workspace_ID.bitbucket.io/subdir2</a></span>
<span><a href="https://workspace_ID.bitbucket.io/subdir3" target="_blank" rel="nofollow noopener noreferrer">https://workspace_ID.bitbucket.io/subdir3</a></span>
Other than that, if you want a completely separate website, you'll need to create a new bitbucket account for your second website. For more info you can read Publishing a website on Bitbucket Cloud.
Hope that helps!
Ana
Thanks for your support!
@Ana Retamal Can the subdirectories be submodules?
It looks like you're new here. Sign in or register to get started.