But Confluence crucially isn’t source-controlled within the same repo. It’s not source controlled at all.
I find this a terrible workflow problem. As often a change to code requires a small or large change to documentation that is best bundled in alongside.