How can I add custom sub domain for GitHub Pages.

I created one orginization in my github account with the name of “Octabytes”.

In this org. I have three github pages repositories.

1 - octabytes.github.io

2 - foxy-theme

3 - octodoc

And I have two domains

1 - octabyte.io

2 - doc.octabyte.io

I want to assign github pages like this. (Required Action)

1 - octabyte.github.io —> octabyte.io

2 - foxy-theme --> doc.octabyte.io/foxy

3 - octodoc --> doc.octabyte.io/octodoc

Currently this is working like this

1 - octabyte.github.io —> octabyte.io

2 - foxy-theme --> octabyte.io/foxy-theme

3 - octodoc --> octabyte.io/octodoc

How can I assing github page like (Required Action) is it possible or not if yes please let me know how can I do that. I have a google domain.

Thanks

Did you read the docs ?  Try adding a CNAME file with your “doc.octabyte.io” domain to the foxy-theme and octadoc repositories?

If I add “doc.octabyte.io” in foxy-theme CNAME then I can access foxy-theme directly as “doc.octabyte.io” just open this URL and it will point to “foxy-theme” But I’m looking something like this “doc.octabyte.io/foxy” for “foxy-theme”

and for “octodoc” something like “doc.octabyte.io/octodoc