jatlasd / gitchess

0 stars 0 forks source link

Site contents should be housed in a directory, not root #3

Closed StoneCypher closed 10 months ago

StoneCypher commented 10 months ago

Because of #4, you want your viewable site to be housed in a directory, not in project root like it currently is. That way, things that shouldn't be on the site won't also go up.

You can pick the directory, but traditionally it's /docs/, and a lot of things will be a lot easier if you do that.

You can choose to sequester it in a branch if you want, but ... don't.

Go to your repo settings' pages subpage

Normal setup is "source: deploy from branch" (means it'll take something it found where you told it to look, and deploy that to the webserver; you can do other things for more complicated setups) and "directory: main branch" "docs"

Once you do that, it won't work, because you don't have a docs directory yet

After that, move everything you want to be on the website (your html, your js, your css, etc) into that directory, and make the subdirectories you would want the way on the web

After that commit, be patient about 90 seconds, because the deploy isn't immediate.

After that, your game should be here and it's much easier for people to try the current version in their browser

StoneCypher commented 10 months ago

fixed