Skip to content

Example of implementing a custom directive #701

Answered by choldgraf
ronpandolfi asked this question in Q&A
Discussion options

You must be logged in to vote

Here is one writeup in the EBP forum on defining custom admonitions (e.g. {goodidea}), does that help (cc @felixchenier)?

You could also implement a much more complex directive by creating your own Sphinx extension. This is definitely non-trivial but would give you total flexibility over the document structure etc. In that case, I'd look at the extensions defined in the EBP ecosystem to get inspiration for what is possible.

Replies: 2 comments 3 replies

Comment options

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

Comment options

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

@felixchenier
Comment options

Answer selected by ronpandolfi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants