Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how mdxts support remote content? #72

Open
arvinxx opened this issue Mar 8, 2024 · 2 comments
Open

how mdxts support remote content? #72

arvinxx opened this issue Mar 8, 2024 · 2 comments

Comments

@arvinxx
Copy link

arvinxx commented Mar 8, 2024

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

@souporserious
Copy link
Owner

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
Copy link
Author

arvinxx commented Mar 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants