pinout-xyz / Pinout.xyz

Source files for the Raspberry Pi Pinout documentation website.
http://pinout.xyz/
Creative Commons Attribution Share Alike 4.0 International
680 stars 197 forks source link

Missing non-English subdomains #472

Closed Gadgetoid closed 2 weeks ago

Gadgetoid commented 8 months ago

I had to do an emergency migration from AWS to GitHub pages a while back, and decided to stick with pages since it drastically simplifies my stack and workflow.

However, all of the non-English subdomains have been broken.

I'm not really sure how to fix this in GitHub pages, but I think in practice the only solution is to have individual GitHub (pages content only) repositories for each language which can be populated by the CI in #462 ... somehow.

lurch commented 8 months ago

Possibly via some cunning usage of https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions ?

ali1234 commented 8 months ago

I looked in to this in #448. If you want subdomains on GH Pages then you do have to have a repository for each one.

I would instead recommend refactoring the whole site so everything is served from subdirectories instead. Then set up the subdomains to send 301 Permanently Moved. That will need to be hosted off github. DNS providers usually have a way to set it up for free.

Gadgetoid commented 4 months ago

Subdirectories makes a lot of sense, I'll have to look into that. Would definitely prefer the whole thing to be automatic and uncomplicated.

lurch commented 4 months ago

You can always use the BASE HREF trick to make the usage of subdirectories easier.

Gadgetoid commented 2 weeks ago

As per https://github.com/pinout-xyz/pinout-2024/issues/1 and unless we figure out otherwise, translations will not be a going concern of Pinout in future.