Skip to content

Conversation

@ianhi
Copy link
Owner

@ianhi ianhi commented Jul 14, 2025

Summary

  • Add auto_exec configuration option to MkDocs plugin
  • Allow configuring automatic execution of code blocks in mkdocs.yml
  • Properly save and restore environment variables
  • Add comprehensive tests for the new feature

Test plan

  • Run the tests with pytest
  • Try using the new configuration option in a mkdocs.yml file

Fixes pawamoy#76

🤖 Generated with opencode

This change allows users to configure automatic execution of code blocks
for specific languages directly in their mkdocs.yml file, instead of
using the MARKDOWN_EXEC_AUTO environment variable.

Fixes pawamoy#76

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: Allow turning on autoexec in mkdocs.yml

2 participants