-
Notifications
You must be signed in to change notification settings - Fork 10
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
Using this with markdown remark #8
Comments
Sorry for the late reply. Busy with work. You understand. you need many markdown files. I am not entirely sure how to do that, and I also would love to know. |
Closing this ticket mostly because we never found out how to do this. However, anyone is free to open a new issue similar to this one, or to make further comments on this issue. |
I have the same problem. I would like to be able to import multiple files from a GitHub repo as posts. Also I need them to be processed by allMdx, not allMarkdownRemark, as files are written in MDX |
So now there are 2 people interested in that feature. I won't make any promises, but I'll take a look at it again. It seems worth exploring. |
Hi there, |
So, I went ahead and finally got to investigate this issue. The gist of it is that this plugin , right now, only generates one Node. Ideally, we'd want something like this: Once you have multiple Nodes, it is possible to mark some of them as having Sadly, I consider these changes to be non-trivial. And at the moment, I don't have the time to work on them. But! PRs are welcome, and this issue will remain open. I guess you can also try to contact the author of gatsby-source-hacker-news or similar plugins to provide some guidance. Finally, I am not saying that this is outside the scope of this project or that it cannot be fixed. In fact, this issue makes 100% sense. All that I am saying is that I cannot work on it right now. :( |
@ldd Thanks for the plugin! Late to the party here, but if anyone is looking for more details on how to do this, here's a summary:
For MDX files, you can set For reference, feel free to look at gatsby-node.ts and github-data-node-transformer.ts in one of my projects. I am basically fetching a list of repos and parsing the README of each one using gatsby-transformer-remark. |
Hey and at first thanks for this amazin plugin. What i want to achieve is to point gatsby to the repo and reading markdown files out of this and use with remark for generating the graphql schema. is there a way to do that ? Or maybe some pointings in the right direction
The text was updated successfully, but these errors were encountered: