Skip to content

How does docusaurus sync with the source code? #3722

Answered by slorber
iamnewton asked this question in General
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iamnewton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants