

Plenty of people use git hosting to host non-code, like documentation, books written in markdown/LaTeX, etc. I personally use git to maintain a few personal wikis.
Different git forges will have different rules about what content they allow. GitHub definitely allows non-code. I’ve seen Codeberg repos be used for non-code too. Codeberg’s only requirement is that you only host free (as in freedom) content, so I suppose for non-code that means using an appropriate CC licence for example. I can’t imagine any of the popular git hosting sites taking issue with someone hosting their book, unless you’re hosting, like, the whole of Wikipedia or something.
















If you want to learn more then do LFS. I don’t think Gentoo teaches you much more than a manual Arch install. But very few daily drive LFS. It’s hardly practical. Gentoo is daily drivable but if you don’t care about compiling all your own packages then I don’t think it’s for you.
I’d say just do LFS on an old laptop or a VM.