@fra
I think I've found a good stack to build documentation as part of a wider website.
Previously I was using contentlayer but it's sort of deprecated now.
docs live in a separate public repo and synced to S3 on push
RSC to generate pages at build time
next-mdx-remote to fetch pages from S3 and render them
shiki for code