Replies: 1 comment
-
Hi @lovestaco, How to add custom JS or modify the And you need a server that would serve the data, it could be a VPS with a FastAPI / Flask / Django runtime or some kind of public NoSQL database service like Firebase. [EDIT: I believe Django does support Jinja templates, so maybe it could be possible to reuse the templates from the theme to serve compatible HTML tags with proper CSS classes. However, the templates do have some MkDocs specific stuff in them, so they surely need some adjustments preprocessing.] Overall I consider this a "complex" customization, highly specific to somebody's wants, needs, available options etc., so you're mostly on your own. There was a question about HTMX integration in the past, but no answer or progress update from the user, so you could maybe ask them with context 🤔: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folks,
I’m using MkDocs Material to generate documentation sites. I understand that MkDocs builds static sites by converting Markdown files, and normally, any data changes require running mkdocs build again.
Is there any way to serve or fetch data dynamically from a database at runtime within MkDocs Material, without having to rebuild the entire site every time the data changes?
If that’s not possible, could someone share pointers or best practices on how I might modify or extend MkDocs (or its Material theme) code to support dynamic content loading?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions