Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up project pages as subpages of GitHub personal webpage?

My github personal webpage is davidrpugh.github.io. I have set up a subpage for my software projects at davidrpugh.github.io/software and created stub subpages for each of my software projects. Example would be davidrpugh.io/software/pypwt.

Question: How do I set up the project webpage, which would by default live at davidrpugh.io/pypwt, so that it lives instead at davidrpugh.io/software/pypwt? I also want any updates to the project webpage to automatically render on my personal webpage as well.

I am guessing that this is a solved problem, and I am not using the correct set of search terms.

like image 966
davidrpugh Avatar asked Aug 29 '14 18:08

davidrpugh


People also ask

Can I use GitHub Pages for a personal website?

If this is your first time using GitHub, you'll need to create an account. GitHub Pages are public web pages hosted for free through GitHub. GitHub users can create and host both personal websites (one allowed per user) and websites related to specific GitHub projects.

Can you use GitHub Pages on a private repository?

GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.

What is the difference between GitHub user page and GitHub project page?

The main difference between a User Page and Project Pages: Project Pages are kept in the same repository as the project, except the gh-pages branch is used for Project Pages and the master branch is used for a User Page.

Does GitHub Pages have to be public?

As part of this release, we are introducing the following capabilities: Repo admins can select whether GitHub Pages sites are publicly visible or limited to users who have access to the repository. Both private and internal repositories support private visibility.


1 Answers

Concerning you project web site hosted at https://github.com/davidrpugh/penn-world-tables in gh-pages branch.

#Jekyll config
url : http://davidrpugh.github.io 
baseurl: /penn-world-tables

The complete site url will be http://davidrpugh.github.io/penn-world-tables. You will not be able to change this at all. If you try to set a permalink: software/pypwt/ on the index page it will give you http://davidrpugh.github.io/penn-world-tables/software/pypwt/

In order to get a http://davidrpugh.github.io/software/pypwt/ url you can

  • host you pypwt doc on you user site, as it is done actually
  • create a https://github.com/davidrpugh/software repository that will have a http://davidrpugh.github.io/software/ url
  • leave the idea to have a /software/pypwt url and logically host pypwt doc in penn-world-tables repository. The http://davidrpugh.github.io/penn-world-tables/ is not so bad after all, although it breaks the correlation between navigating in software/pypwt and getting the http://davidrpugh.github.io/penn-world-tables/ url. I think that it's not a great ergonomy / accessibility problem.

Just use the same template over all you repositories, this will make user fills like it's the same site when navigating.

like image 148
David Jacquel Avatar answered Oct 16 '22 11:10

David Jacquel