-
I’m not sure that its the intention of Docusaurus, but is there a way to maintain any sort of synchronization with the source code that is intended to be documented? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's not clear to me what you mean by synchronization. If the code and the doc site live in the same git repo, they remain in sync automatically. If it's not the case, then you have the responsibility to maintain sync and I don't have any specific solution to suggest, as this problem is not really related to Docusaurus If you want to show a code block of an actual code file, here's an example: https://v2.docusaurus.io/examples/markdownpageexample/#import-code-block-from-source-code-file |
Beta Was this translation helpful? Give feedback.
It's not clear to me what you mean by synchronization.
If the code and the doc site live in the same git repo, they remain in sync automatically.
If it's not the case, then you have the responsibility to maintain sync and I don't have any specific solution to suggest, as this problem is not really related to Docusaurus
If you want to show a code block of an actual code file, here's an example: https://v2.docusaurus.io/examples/markdownpageexample/#import-code-block-from-source-code-file