HiDeoo / starlight-blog

Starlight plugin to add a blog to your documentation
https://starlight-blog-docs.vercel.app
MIT License
106 stars 10 forks source link

Remove /blog, and make everything under / #38

Closed CallMeMarcellino closed 1 month ago

CallMeMarcellino commented 1 month ago

Is your feature request related to a problem?

My website works heavily with sub-domain, so as you can assume, my blog site is my domain with blog in front of it. The /blog that always comes after just looks werid

Describe the solution you'd like

Maybe make it so that we can set prefix to an empty string, and if it is, then just put everything in root.

Describe alternatives you've considered

I already tried the above solution, and it didn't work. I would also like the /blog page, which shows all the posts to be my main site, that is found when you visit the plain URL of blog..

Additional Context

No response

HiDeoo commented 1 month ago

Thanks for your feedback.

My website works heavily with sub-domain

Just to clarify, this means:

Is that correct?

CallMeMarcellino commented 1 month ago

Yep!

HiDeoo commented 1 month ago

I see. In this case, I'm wondering if this plugin is even the proper tool. It's designed as a small Starlight companion to quickly add timestamped articles/post/news that lives alongside a Starlight documentation, e.g. docs.example.com/blog, docs.example.com/changelog or docs.example.com/news.

Trying to support the scenario you're describing on an entirely different domain for just this specific part feels like it would just be easier to setup something on blog.example.com directly vs handling domain redirection, content redirection, managing canonicals, etc.

CallMeMarcellino commented 1 month ago

Alright, I'll just setup smth on blog.mywebsite.com directly.

Thanks for your help!