OpenTabletDriver / opentabletdriver.github.io

The next version of OpenTabletDriver.Web
http://opentabletdriver.net/
GNU Affero General Public License v3.0
1 stars 6 forks source link

Wiki url paths should be case-insensitive #202

Open Joehuu opened 1 month ago

Joehuu commented 1 month ago

https://opentabletdriver.net/Wiki/FAQ/MacOS and https://opentabletdriver.net/Wiki/FAQ/macOS

The correct casing of macOS 404s. Should be corrected, but making paths case-insensitive and redirect to the desired casing has to happen too (to prevent the first link from not working). Wikipedia and the osu! wiki does case-insensitive.

Noticed that on lazer, there was no faq listed on macOS because it was outdated. I wanted to update it, but had to resort to this:

$@"https://opentabletdriver.net/Wiki/FAQ/{(RuntimeInfo.OS == RuntimeInfo.Platform.macOS ? @"MacOS" : RuntimeInfo.OS)}"

because RuntimeInfo.OS returns macOS.

gonX commented 1 month ago

I think this is a limitation of GitHub pages. We could workaround this by duplicating filenames to some desired paths (e.g. MacOS -> macOS) but I can also foresee this becoming cumbersome to keep up.

InfinityGhost commented 1 month ago

I think this is a limitation of GitHub pages. We could workaround this by duplicating filenames to some desired paths (e.g. MacOS -> macOS) but I can also foresee this becoming cumbersome to keep up.

It can be symlinked as git does support symbolic links