Skip to content

Process non markdown files #3251

Answered by oprypin
redtide asked this question in Q&A
Jun 10, 2023 · 5 comments · 17 replies
Discussion options

You must be logged in to vote

could create the files from a python script

That is properly supported, you could use an on_files event in hooks, but https://github.com/oprypin/mkdocs-gen-files is an even easier-to-use integration, where the script really does look like just a script but is properly integrated into a top-level mkdocs build command.

Other than that, yes, it's true that MkDocs only converts Markdown files to HTML and that's it. And I think you've also been implicitly mentioning the 'macros' plugin which apparently adds Jinja templating to Markdown files but not other files. But that's not something that can be solved here.

Replies: 5 comments 17 replies

Comment options

You must be logged in to vote
1 reply
@redtide
Comment options

Answer selected by redtide
Comment options

You must be logged in to vote
5 replies
@redtide
Comment options

@fralau
Comment options

@redtide
Comment options

@fralau
Comment options

@redtide
Comment options

Comment options

You must be logged in to vote
5 replies
@oprypin
Comment options

@redtide
Comment options

@oprypin
Comment options

@redtide
Comment options

@redtide
Comment options

Comment options

You must be logged in to vote
2 replies
@redtide
Comment options

@fralau
Comment options

Comment options

You must be logged in to vote
4 replies
@fralau
Comment options

@redtide
Comment options

@oprypin
Comment options

@fralau
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
3 participants