pages-gem icon indicating copy to clipboard operation
pages-gem copied to clipboard

Support for multiple pages from the same repo

Open stsrki opened this issue 3 years ago • 15 comments

Hi, sorry if this is not the right repository for this ticket.

The problem:

Currently, I'm using GitHub pages for the documentation of my project. It is served from the docs folder on master branch. And this part works well.

My problem is that most of the time I'm developing on dev branches. While developing a new release of my project I also update documentation and release previews from time to time. This all happens on the dev branch. People regularly use the preview if their own project depends on some new features. Since each milestone can take a month or two, which is a long time, the live documentation is not in sync with the documentation in preview.

Proposal

If possible, add support to choose one or more branches or folders from where the GitHub pages will be served. eg

image

Where each GitHub page will have its own domain name.

** I know there are CMSs out there that can support versioning, but if possible I would prefer it like this because often I don't need to have an option to choose an older version of the documentation. Just, what is currently supported on my project.

stsrki avatar Oct 21 '20 12:10 stsrki

Yes that would be really nice. Also an option for each branch all together would be uber cool.

MAGICCC avatar Apr 28 '21 19:04 MAGICCC

I hope they implement that feature...

motherchucker avatar Oct 22 '21 10:10 motherchucker

With the lack of any response from the GH team, it seems like this will never be done. Shame really.

stsrki avatar Oct 22 '21 10:10 stsrki

Hello, Pages team here!

Sorry for missing this issue. We have more people monitoring the community forum for product related questions/support.

I can shade a bit of light on this ask though! While this is not something we support today, we do have plans for something related. We want to introduce Pages previews/drafts as a way to get ephemeral Pages deployments from the context of a pull request (or potentially a branch). These previews/drafts would get a different URL and would not support things such as custom domains.

I hope that clarifies few things. Happy to collect feedback/suggestions. I don't have an ETA to share around that but I do hope we can start that work in the first quarter of 2022.

yoannchaudet avatar Oct 22 '21 16:10 yoannchaudet

@yoannchaudet Any updates on this? Did find this post on the forum about the issue but it doesn't give much answers. Also couldn't find anything about it on the roadmap board either.

felhag avatar Mar 27 '22 07:03 felhag

@felhag We made internal progress on Pages preview support (= the ability to publish a preview site for an individual pull request). This is not ready for prime time just yet but is something we will continue to flesh out (internal teams at GitHub are starting to use it as I write). Still too early to end up on our committed roadmap while we figure out some product aspects.

yoannchaudet avatar Mar 29 '22 01:03 yoannchaudet

Thanks for the quick response, looking forward to it!

felhag avatar Mar 29 '22 07:03 felhag

@felhag We made internal progress on Pages preview support (= the ability to publish a preview site for an individual pull request). This is not ready for prime time just yet but is something we will continue to flesh out (internal teams at GitHub are starting to use it as I write). Still too early to end up on our committed roadmap while we figure out some product aspects.

@felhag what would be the chances of being added to beta test that feature? I don't care if it isn't ready for prime time, but would love to be building out some of my work with that setup in mind. Even if it is buggy :)

erob123 avatar May 12 '22 05:05 erob123

@erob123 Think this was supposed to be mentioned to @yoannchaudet :)

felhag avatar May 12 '22 12:05 felhag

@erob123 Think this was supposed to be mentioned to @yoannchaudet :)

@felhag lol yep thx. @yoannchaudet , thoughts? What would be the chances of being added to beta test the pages preview feature? I don't care if it isn't ready for prime time, but would love to be building out some of my work with that setup in mind. Even if it is buggy :)

erob123 avatar May 12 '22 13:05 erob123

same as @erob123, I'd like to be beta testing this feature for @genicsblog :D

gouravkhunger avatar May 19 '22 16:05 gouravkhunger

@yoannchaudet +1 for beta testing!

wildone avatar Jul 29 '22 02:07 wildone

Would love this feature also

pwolanin avatar Aug 02 '22 23:08 pwolanin

@yoannchaudet update on this? And my organisation would also be interested in beta testing 👍🏾

taylorjdawson avatar Aug 24 '22 21:08 taylorjdawson

This is not going to happen for some time I am afraid. The team is focusing on different priorities for a few quarters at least.

yoannchaudet avatar Aug 24 '22 22:08 yoannchaudet

+1

This is becoming a more common use case with the rise of monorepos. I have several repos that have multiple packages/workspaces within them, two of which output a static site (one is a front-facing website, whereas the other one is a docs site).

Currently, only one can be shipped to Github Pages, so I have to use another service (Cloudflare Pages, Netlify, etc.) to meet my needs.

orvn avatar Dec 01 '22 02:12 orvn

@yoannchaudet +1 for beta testing

mathulbrich avatar Dec 20 '22 21:12 mathulbrich

Any progress on this?

MoMannn avatar Feb 09 '23 15:02 MoMannn

Would also love to see this

trajan0x avatar Feb 13 '23 00:02 trajan0x

Would be really ncie feature!

lukasmittag avatar Feb 15 '23 09:02 lukasmittag

https://github.com/orgs/community/discussions/categories/pages would be a better place for this feature request.

yoannchaudet avatar Feb 15 '23 21:02 yoannchaudet

@yoannchaudet Created a feature request over there :)

felhag avatar Feb 18 '23 14:02 felhag