souporserious / renoun

Documentation that matches the quality of your product.
https://renoun.dev
GNU Affero General Public License v3.0
403 stars 7 forks source link

how mdxts support remote content? #72

Open arvinxx opened 6 months ago

arvinxx commented 6 months ago

I really need a method to combine with remote mdx content.

souporserious commented 6 months ago

I have plans to expand the createSource utility for this. Right now it accepts a file path for local files on disk, but if it accepts a function it could resolve to any set of files, thinking something like this:

const remoteDocs = createSource(() => fetch(...))

Is there a particular remote source you're looking to use or would something like above work for you?

arvinxx commented 6 months ago

yes, github content like https://github.com/lobehub/lobe-chat/tree/main/docs/usage