Repository navigation
|
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? |
Answered by
slorber
Nov 12, 2020
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 |
0 replies
Answer selected by
iamnewton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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