You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a scenario with multiple documentation and some articles are in more than one documentation. Instead of rewriting the same article for each documentation, can I create one globally and show it in the article I want?
Although I'm not the developer of this service, I'd be happy to assist you as much as I can.
As you rightly pointed out, it can be cumbersome to write the same article repeatedly across different documents. In such cases, exporting and importing Markdown files can be quite helpful.
For example, you can write the common content in a file named task-list.mdx and then import it into other MDX pages. Specifically, the content of task-list.mdx could look like this:
-[x] Code
-[x] Sleep
-[ ] Eat
To import this file into another page (for example, index.mdx), you would write the following:
importTaskListfrom'./task-list.mdx'
<TaskList />
By doing this, the content defined in task-list.mdx will be displayed in other pages.
If you have any questions, please feel free to ask. I'd be happy to help if I can.
Hello, I have a scenario with multiple documentation and some articles are in more than one documentation. Instead of rewriting the same article for each documentation, can I create one globally and show it in the article I want?
The text was updated successfully, but these errors were encountered: