sphinx-book-theme
sphinx-book-theme copied to clipboard
ERROR: Unknown directive type "margin"
Describe the bug
context
When I do sphinx-build -b latex source build\latex\, followed by .\make latexpdf.
expectation I expect to build my PDF without any warnings.
bug But instead, Sphinx throws the following error:
ERROR: Unknown directive type "margin"
Sphinx generates the output anyway. But the warning seems to indicate a buggy behavior.
Reproduce the bug
- Run:
sphinx-build -b latex source build\latex\ - Next, type the command:
.\make latexpdf
List your environment
Python v3.10.5
Sphinx v4.5.0
sphinx-book-theme v0.3.2
Windows 11 OS
Maybe unrelated, but how can we use the margin directive with rst files?
.. margin:: Some title here
Some margin note here.
This doesn't work either with the same error:
ERROR: Content block expected for the "margin" directive; none found.