Skip to content

How do we contribute to the docs by updating snippets? #2698

Answered by eonarheim
ryaino asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ryaino! Good question!

Some of the snippets are linked in from a separate repo into the doc via a special comment that the docs repo looks for in the submodule. Others are just inlined to the mdx, slightly arbitrary unfortunately. But the end goal is to know when the Excalibur API breaks something in the docs automatically because the submodules will start failing builds from the latest excalibur.

The special comment in the submodules looks like this // start-snippet{some-label} with code in between // end-snippet{some-label}

Here is an example of the docs using that label to embed the snippet from the submodule https://github.com/excaliburjs/excaliburjs.github.io/blob/site/docs/02-ge…

Replies: 1 comment

Comment options

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