I have used docfx, sphinx (rst) and tried vite press.
I picked sphinx at old job because we had very good infra for it. Even though I found it slow (due to it being python based and my company’s idiosyncrasies)
For my current job, I picked docfx because other people used them and have set up infra for them. I preferred vite press because editing experience was way better with its HMR. However, I couldn’t change the company infra, so docfx it is.
Using vitepress (for writing)and docfx (for publishing) didn’t work due to their subtle differences.
My recommendation would be using vitepress, as it makes editing easier and you really want this part to be as much frictionless as possible.
And do not go with sphinx as it requires restructuredText. Rst is good, but it introduces a learning curve.