Adding directive plugins #196
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey all!
Before I proceed, please keep in mind that this is a proof of concept/work in progress. I would like to get general feedback before finishing up the code, adding tests (including fixing the existing tests), updating the documentation, and so on.
I just want to make sure I'm heading the the correct general direction first.
There are a couple of high level parts to this:
--directive-plugin|-D [DIRECTIVE_PLUGIN_MODULE]argument to thehovercraftcommand to make it easier to add third-party Docutils directives.hovercraft/directive/null.pyin the PR.I started implementing a PlantUML plugin which can be found at pedrohdz/muextensions. The documentation on how to use it with Hovercraft! is in the README. Here is the general idea:
python3.7 -m venv .venv source .venv/bin/activate pip install -U pip pip install muextensions \ https://github.com/pedrohdz/hovercraft/archive/directives.zip hovercraft --directive-plugin muextensions.contrib.hovercraft demo.rstPlease let me know what you all think. I can add the finishing touches if this is looking good so far, along with implementing any recommendations.
Thanks!