Skip to content

Snippet not rendering after build #1903

Answered by facelessuser
DarksideVT asked this question in Q&A
Discussion options

You must be logged in to vote

I know nothing about your system nor how you are using Snippets.

Snippets is run the same way in both mkdocs serve and mkdocs build. When the page is being rendered, the snippet is first injected, then the page is rendered. The only difference between serve and build is that serve runs a local dev sever for live viewing. They should be built in the exact same way. As a matter of fact, Snippets is completely agnostic about what MkDocs is doing as it is not specifically tied to MkDocs in any way. It is a Python Markdown extension, not a MkDocs plugin, so it doesn't care whether you are building or serving your docs.

I would need far more information about your project and the environment un…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by facelessuser
Comment options

You must be logged in to vote
3 replies
@facelessuser
Comment options

@DarksideVT
Comment options

@facelessuser
Comment options

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