Skip to content

Commit

Permalink
Fixing import for Margin directive
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed Sep 2, 2021
1 parent 8b7f5b4 commit 48b7556
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
# "linkify",
# "substitution",
]
myst_url_schemes = ("http", "https", "mailto")
myst_url_schemes = ["http", "https", "mailto"]

# -- Options for HTML output -------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions sphinx_book_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import importlib_resources as resources

from bs4 import BeautifulSoup as bs
from docutils.parsers.rst import directives
from docutils.parsers.rst.directives.body import Sidebar
from docutils import nodes
from sphinx.application import Sphinx
from sphinx.locale import get_translation
Expand Down Expand Up @@ -254,7 +254,7 @@ def _string_or_bool(var):
return var is None


class Margin(directives.body.Sidebar):
class Margin(Sidebar):
"""Goes in the margin to the right of the page."""

optional_arguments = 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_build/test_build_book.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1 class="site-logo" id="site-title">
</form>
<nav aria-label="Main" class="bd-links" id="bd-docs-nav">
<div class="bd-toc-item active">
<p class="caption">
<p class="caption" role="heading">
<span class="caption-text">
My caption
</span>
Expand Down

0 comments on commit 48b7556

Please sign in to comment.