I'm trying to set up documentation for my recording studio using starlight, but I need auth to separate documentation for different groups of users with different access. All creds are in my mysql database.
I struggle sooo much.. chatgpt4 can't help me anymore 😦
I tried this template (starlight auth starter) with github auth implemented and rewrited it to use mysql2, and I tried to build my own from base starlight - no luck, there's always some wall that hold me down.
I did 20 approaches, most of them with nextra in nextjs, where I'm always arriving at the point where all login functionalities are working, and even contents of single documentation page are reacting to that, but menu/nav is showing all available docs for not logged users. I put the correct logic for that in right place but nextra is always falling back to reading menu items names from directory names instead - when there's not other configuration specified in config file.
Changing css display:hidden also couln't get to work :/
So I tried starlight, currently still working out the auth, cause the template is adjusted for oauth, I need just simple mysql credential for now (I consider hosting supabase or other tings for that) but it's quite painfull.
Just wanted to ask community, maybe someone have some idea, what would be best approach to implement functioning login for locally hosted documentation project/site (the creds are for now in mariadb database), with different access to particular docs for different class of users/public (which I already have stored in same database). Preferably decent looking from the box, with fast searchbar and edit functionalities for other "admin" users.
is it too much for a template to ask right?