-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Comments
I have plans to expand the const remoteDocs = createSource(() => fetch(...)) Is there a particular remote source you're looking to use or would something like above work for you? |
yes, github content like https://github.com/lobehub/lobe-chat/tree/main/docs/usage |
Remote content is now supported through the import { Directory, MemoryFileSystem } from 'renoun/file-system'
const filesFromGitHubRepo = await fetchFilesFromGitHubRepo('user', 'repo') // implement yourself for now
const fileSystem = new MemoryFileSystem(filesFromGitHubRepo)
const directory = new Directory({ fileSystem })
const file = directory.getFile(...) // use file system methods |
I really need a method to combine with remote mdx content.
The text was updated successfully, but these errors were encountered: