Importantly, we are using Cloudflare Pages instead of GitHub Pages. Two major benefits:
- redirects supported - as a plain text file
- preview URLs, we can preview changes on a PR before deplopy
I’m not happy with how internal links are structured right now. We went with sites-friendly URLs such as “
https://cldr.unicode.org/somepage” which turns into “docs/site/somepage.md”. Currently, relative links within the site MUST be site relative ( so, “/somepage” not “./someotherpage” nor “../parentpage” etc. ). This also has a major downside in that the links
are not navigable from Github preview., but it makes them line up with the old sites url. Yes there’s a ticket for this, it’ll require munging every page including some scary blobs of extracted HTML from sites. (The less said there the better.)
What I need to do is change how the resolver works, probably to use ALL relative links ( no “/“ just “../“ or “./“ ) - focus it around Github’s preview (for ease of local editing/viewing), and fixup the links (which i’m already doing..) at generation time to just deal with it.
We have a mechanism that does a local preview via docker (with automatic regeneration of the site), plus the preview on PRs as i mentioned.
happy to walk someone through how this works.
-s
--
Steven R. Loomis
Code Hive Tx, LLC