I
I
IFramex2020-07-26 11:55:36
GitHub
IFramex, 2020-07-26 11:55:36

How to put a site on the Internet using GitHub pages if index.html is inside a folder?

There is such a structure

5f1d44acba6c9261899941.png

index.html located inside the public folder

5f1d44d74d9fe075107326.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2020-07-26
@IFraim

Create a gh-pages branch, install the npm install gh-pages --save-dev package into the project and run gh-pages -d public The branch will contain the site with index.html at the root

A
Artyom, 2020-07-26
@airman66

Well, there you can do this https://nickname.github.io/project/public , where nickname is your nickname on github, and project is the name of the repository, then the public folder, everything should be displayed at this url

N
Nik, 2020-07-27
@RuslanAbdurakhmanov

https://nickname.github.io/public.index.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question