Snippet not rendering after build #1903
-
I've been running a dev env of my site and using the snippet renders when I use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I know nothing about your system nor how you are using Snippets. Snippets is run the same way in both I would need far more information about your project and the environment under which you are building your project than I currently have. Better yet, I would advice constructed a minimal, reproducible example. You post a link to a zip or a repo containing this minimal example if you like. |
Beta Was this translation helpful? Give feedback.
-
Here is the markdown portion that corresponds to this.
|
Beta Was this translation helpful? Give feedback.
I know nothing about your system nor how you are using Snippets.
Snippets is run the same way in both
mkdocs serve
andmkdocs build
. When the page is being rendered, the snippet is first injected, then the page is rendered. The only difference betweenserve
andbuild
is thatserve
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…