rosscdh/mkdocs-markdownextradata-plugin

How to export all the MD files

Closed this issue · 2 comments

Hi there,

I have started to learn Mkdocs and got to know that we can inject variables in .md using this plugin.

So with the help of this plugin, we can configure the documentation better.

I was wondering if we can export all the modified markdown files (markdown files after injection of variables defined in extra)

I wonder what the use-case for that would be.. as you are already exporting the HTML files.

Technically you would write a small plugin that saves markdown pages to disk during the on_page_markdown() event.

If what you're looking for is something to dynamically insert variables into text (like a markdown file), you should have a look at https://jinja.palletsprojects.com/en/3.0.x/ .

Either way, I'd say this is out of scope for this plugin (but I'm not the maintainer)

wget \
     --recursive \
     --no-clobber \
     --page-requisites \
     --html-extension \
     --convert-links \
     --no-parent \
         localhost:8000