Home > Article > Web Front-end > What happens when a project on github is published as a static web page?
After the code is uploaded successfully, you can publish the static web page. Careful children should have seen that the code I uploaded has an html file in the root directory (I have not tried publishing in other situations, so if you are interested, try it yourself). It will be automatically recognized when you select the warehouse.
Step 1: Click setting
Step 2: Set
The warehouse name is consistent with the accessed second-level domain name
Scroll the mouse and you will see the GitHub Pages column below
The entire release is now complete.
After the settings are completed, go back to the code interface, and there will be an additional configuration file in it
Release reference, but I don’t know if it is due to GiuHub revision , there is always something different.
Common errors: Web page not found: That’s because there is no index.html file in your root directory. This is an error I encountered only after a year.
The above is the detailed content of What happens when a project on github is published as a static web page?. For more information, please follow other related articles on the PHP Chinese website!